Difference between revisions of "Template:Node page 1col"

From Kumu Wiki - TRU
Jump to navigation Jump to search
(Blanked the page)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<includeonly>
 +
<table border="0" width="100%" cellspacing="5" cellpadding="0" >
 +
{{#if: {{{Header box title|}}} | <tr><td colspan="2"> {{Box-header|title=<big>{{{Header box title}}}</big>
 +
|editpage={{NAMESPACE}}:{{PAGENAME}}/{{{Header box title}}}
 +
|border={{Box-theme|name={{{Box-theme}}}|property=border}}
 +
|titleforeground={{Box-theme|name={{{Box-theme}}}|property=titleforeground}}
 +
|titlebackground={{Box-theme|name={{{Box-theme}}}|property=titlebackgroundC1}}
 +
|background={{Box-theme|name={{{Box-theme}}}|property=backgroundC1}}
 +
|foreground={{Box-theme|name={{{Box-theme}}}|property=foreground}}}}
 +
{{{{NAMESPACE}}:{{PAGENAME}}/{{{Header box title}}}}}
 +
{{Box-footer|}}
 +
</td></tr> }}
 +
<tr>
 +
{{#if: {{{Left column width|}}}|<td width="{{{Left column width}}}%" height="100%" valign="top"> |<td width="50%" height="100%" valign="top" > }}
 +
<div style="float:left; width:100%;">
 +
{{Box-header|title=<big>{{{Left box 1 title}}}</big>
 +
|editpage={{NAMESPACE}}:{{PAGENAME}}/{{{Left box 1 title}}}
 +
|border={{Box-theme|name={{{Box-theme}}}|property=border}}
 +
|titleforeground={{Box-theme|name={{{Box-theme}}}|property=titleforeground}}
 +
|titlebackground={{Box-theme|name={{{Box-theme}}}|property=titlebackgroundC2}}
 +
|background={{Box-theme|name={{{Box-theme}}}|property=backgroundC2}}
 +
|foreground={{Box-theme|name={{{Box-theme}}}|property=foreground}}}}
 +
{{{{NAMESPACE}}:{{PAGENAME}}/{{{Left box 1 title}}}}}
 +
{{Box-footer|}}
 +
</div>
 +
{{#if: {{{Left box 2 title|}}} |<div style="float:left; width:100%;">{{Box-header|title=<big>{{{Left box 2 title}}}</big>|editpage={{NAMESPACE}}:{{PAGENAME}}/{{{Left box 2 title}}}
 +
|border={{Box-theme|name={{{Box-theme}}}|property=border}}
 +
|titleforeground={{Box-theme|name={{{Box-theme}}}|property=titleforeground}}
 +
|titlebackground={{Box-theme|name={{{Box-theme}}}|property=titlebackgroundC3}}
 +
|background={{Box-theme|name={{{Box-theme}}}|property=backgroundC3}}
 +
|foreground={{Box-theme|name={{{Box-theme}}}|property=foreground}}}}
 +
{{{{NAMESPACE}}:{{PAGENAME}}/{{{Left box 2 title}}}}}
 +
{{Box-footer|}}
 +
</div>| }}
 +
{{#if: {{{Left box 3 title|}}} |<div style="float:left; width:100%;">
 +
{{Box-header|title=<big>{{{Left box 3 title}}}</big>
 +
|editpage={{NAMESPACE}}:{{PAGENAME}}/{{{Left box 3 title}}}
 +
|border={{Box-theme|name={{{Box-theme}}}|property=border}}
 +
|titleforeground={{Box-theme|name={{{Box-theme}}}|property=titleforeground}}
 +
|titlebackground={{Box-theme|name={{{Box-theme}}}|property=titlebackgroundC4}}
 +
|background={{Box-theme|name={{{Box-theme}}}|property=backgroundC4}}
 +
|foreground={{Box-theme|name={{{Box-theme}}}|property=foreground}}}}
 +
{{{{NAMESPACE}}:{{PAGENAME}}/{{{Left box 3 title}}}}}
 +
{{Box-footer|}}
 +
</div>}}
 +
{{#if: {{{Left box 4 title|}}} |<div style="float:left; width:100%;">
 +
{{Box-header|title=<big>{{{Left box 4 title}}}</big>
 +
|editpage={{NAMESPACE}}:{{PAGENAME}}/{{{Left box 4 title}}}
 +
|border={{Box-theme|name={{{Box-theme}}}|property=border}}
 +
|titleforeground={{Box-theme|name={{{Box-theme}}}|property=titleforeground}}
 +
|titlebackground={{Box-theme|name={{{Box-theme}}}|property=titlebackgroundC5}}
 +
|background={{Box-theme|name={{{Box-theme}}}|property=backgroundC5}}
 +
|foreground={{Box-theme|name={{{Box-theme}}}|property=foreground}}}}
 +
{{{{NAMESPACE}}:{{PAGENAME}}/{{{Left box 4 title}}}}}
 +
{{Box-footer|}}</div>}}
 +
{{#if: {{{Left box 5 title|}}} |<div style="float:left; width:100%;">
 +
{{Box-header|title=<big>{{{Left box 5 title}}}</big>
 +
|editpage={{NAMESPACE}}:{{PAGENAME}}/{{{Left box 5 title}}}
 +
|border={{Box-theme|name={{{Box-theme}}}|property=border}}
 +
|titleforeground={{Box-theme|name={{{Box-theme}}}|property=titleforeground}}
 +
|titlebackground={{Box-theme|name={{{Box-theme}}}|property=titlebackgroundC5}}
 +
|background={{Box-theme|name={{{Box-theme}}}|property=backgroundC5}}
 +
|foreground={{Box-theme|name={{{Box-theme}}}|property=foreground}}}}
 +
{{{{NAMESPACE}}:{{PAGENAME}}/{{{Left box 5 title}}}}}
 +
{{Box-footer|}}</div>}}
 +
{{#if: {{{Left box 6 title|}}} |<div style="float:left; width:100%;">
 +
{{Box-header|title=<big>{{{Left box 6 title}}}</big>
 +
|editpage={{NAMESPACE}}:{{PAGENAME}}/{{{Left box 6 title}}}
 +
|border={{Box-theme|name={{{Box-theme}}}|property=border}}
 +
|titleforeground={{Box-theme|name={{{Box-theme}}}|property=titleforeground}}
 +
|titlebackground={{Box-theme|name={{{Box-theme}}}|property=titlebackgroundC5}}
 +
|background={{Box-theme|name={{{Box-theme}}}|property=backgroundC5}}
 +
|foreground={{Box-theme|name={{{Box-theme}}}|property=foreground}}}}
 +
{{{{NAMESPACE}}:{{PAGENAME}}/{{{Left box 6 title}}}}}
 +
{{Box-footer|}}</div>}}
 +
{{#if: {{{Left box 7 title|}}} |<div style="float:left; width:100%;">
 +
{{Box-header|title=<big>{{{Left box 7 title}}}</big>
 +
|editpage={{NAMESPACE}}:{{PAGENAME}}/{{{Left box 7 title}}}
 +
|border={{Box-theme|name={{{Box-theme}}}|property=border}}
 +
|titleforeground={{Box-theme|name={{{Box-theme}}}|property=titleforeground}}
 +
|titlebackground={{Box-theme|name={{{Box-theme}}}|property=titlebackgroundC5}}
 +
|background={{Box-theme|name={{{Box-theme}}}|property=backgroundC5}}
 +
|foreground={{Box-theme|name={{{Box-theme}}}|property=foreground}}}}
 +
{{{{NAMESPACE}}:{{PAGENAME}}/{{{Left box 7 title}}}}}
 +
{{Box-footer|}}</div>}}
 +
{{#if: {{{Left box 8 title|}}} |<div style="float:left; width:100%;">
 +
{{Box-header|title=<big>{{{Left box 8 title}}}</big>
 +
|editpage={{NAMESPACE}}:{{PAGENAME}}/{{{Left box 8 title}}}
 +
|border={{Box-theme|name={{{Box-theme}}}|property=border}}
 +
|titleforeground={{Box-theme|name={{{Box-theme}}}|property=titleforeground}}
 +
|titlebackground={{Box-theme|name={{{Box-theme}}}|property=titlebackgroundC5}}
 +
|background={{Box-theme|name={{{Box-theme}}}|property=backgroundC5}}
 +
|foreground={{Box-theme|name={{{Box-theme}}}|property=foreground}}}}
 +
{{{{NAMESPACE}}:{{PAGENAME}}/{{{Left box 8 title}}}}}
 +
{{Box-footer|}}</div>}}
  
 +
</td>
 +
</tr>
 +
</table>
 +
</includeonly>
 +
 +
<noinclude>
 +
 +
==Overview==
 +
 +
This template is designed to automate the creation of a portal node page and was adapted from a template in Wikieducator. It creates a Headerbox on top of the page which single column layout with a maximum of eight text boxes on the left-side.
 +
 +
* The headerbox is optional
 +
* The template will not work unless at least one left-hand box is specified.
 +
* The remaining 7 boxes are optional
 +
* The template will automatically create subpages corresponding with the titles/names of the text boxes specified
 +
 +
==Usage==
 +
 +
Copy the following syntax for your proposed "portal page"
 +
 +
'''<nowiki>{{</nowiki>Node_page'''
 +
 +
'''|Box-theme=default'''
 +
 +
'''|Header box title='''
 +
 +
'''|Left column width='''
 +
 +
'''|Left box 1 title='''
 +
 +
'''|Left box 2 title='''
 +
 +
'''|Left box 3 title='''
 +
 +
'''|Left box 4 title='''
 +
 +
'''|Left box 5 title='''
 +
 +
'''|Left box 6 title='''
 +
 +
'''|Left box 7 title='''
 +
 +
'''|Left box 8 title='''
 +
 +
'''<nowiki>}}</nowiki>'''
 +
 +
===Parameters===
 +
 +
* '''Box-theme''' - required or template won't work. Use "default" (case sensitive) or:
 +
**  "rainbow" (case sensitive)
 +
** "darkgreen" (case sensitive)
 +
** "teal" (case sensitive)
 +
** "sienna" (case sensitive)
 +
** "mediumaquamarine" (case sensitive)
 +
** "dehub" (case sensitive)
 +
The community may develop more supported themes and add them to this list.
 +
* '''Header box title''': Optional, type the title for the header box on the top of the page which will span the two columns. Use alpha numeric text for valid wiki page names.
 +
* '''Left column width''': Optional. Will default to 50:50. Use "40" to specify a left column width of 40% or "60" to specify a left-column width of 60%
 +
* '''Left box 1 title''': Required. Type the title for left box 1 which will appear on the top of the left-hand column. Use alpha numeric text for valid wiki page names.
 +
*  '''Left box 2 title''': Optional. Type the title for left box 2 which will appear below left box 1 in the left-hand column. Use alpha numeric text for valid wiki page names.
 +
*  '''Left box 3 title''': Optional. Type the title for left box 3 which will appear below left box 2 in the left-hand column. Use alpha numeric text for valid wiki page names.
 +
*  '''Left box 4 title''': Optional. Type the title for left box 4 which will appear below left box 3 in the left-hand column. Use alpha numeric text for valid wiki page names.
 +
* '''Left box 5 title''': Optional. Type the title for left box 5 which will appear below left box 4 in the left-hand column. Use alpha numeric text for valid wiki page names.
 +
* '''Left box 6 title''': Optional. Type the title for left box 6 which will appear below left box 5 in the left-hand column. Use alpha numeric text for valid wiki page names.
 +
* '''Left box 7 title''': Optional. Type the title for left box 7 which will appear below left box 6 in the left-hand column. Use alpha numeric text for valid wiki page names.
 +
* '''Left box 8 title''': Optional. Type the title for left box 8 which will appear below left box 7 in the left-hand column. Use alpha numeric text for valid wiki page names.
 +
 +
==Example==
 +
 +
The following syntax will produce the layout displayed below (Please do not edit the subpages by clicking on the red links as this is a demonstration page):
 +
 +
<nowiki>{{</nowiki>Node_page_1col
 +
 +
|Box-theme=rainbow
 +
 +
|Header box title=Our vision for header boxes
 +
 +
|Left column width=40
 +
 +
|Left box 1 title=My left box 1
 +
 +
|Left box 2 title=My left box 2
 +
 +
|Left box 3 title=My left box 3
 +
 +
|Left box 4 title=My left box 4
 +
 +
|Left box 5 title=My left box 5
 +
 +
|Left box 6 title=My left box 6
 +
 +
|Left box 7 title=My left box 7
 +
 +
|Left box 8 title=My left box 8
 +
 +
<nowiki>}}</nowiki>
 +
 +
'''Example'''
 +
 +
{{Node_page_1col
 +
 +
|Box-theme=rainbow
 +
 +
|Header box title=Our vision for header boxes
 +
 +
|Left column width=40
 +
 +
|Left box 1 title=My left box 1
 +
 +
|Left box 2 title=My left box 2
 +
 +
|Left box 3 title=My left box 3
 +
 +
|Left box 4 title=My left box 4
 +
 +
|Left box 5 title=My left box 5
 +
 +
|Left box 6 title=My left box 6
 +
 +
|Left box 7 title=My left box 7
 +
 +
|Left box 8 title=My left box 8
 +
 +
}}
 +
==Developing additional themes for this template==
 +
 +
People are most welcome to design and implement a wide range of different themes. This will require an intermediate to advanced level of wiki editing, knowledge of templates and parsing and general web design, Current themes are specified here: [[:Template:Box-theme]]. If you design a new theme, please add this to the list above.
 +
 +
Source: http://wikieducator.org/Template:Node_page
 +
 +
</noinclude>

Latest revision as of 14:37, 10 March 2015



Overview

This template is designed to automate the creation of a portal node page and was adapted from a template in Wikieducator. It creates a Headerbox on top of the page which single column layout with a maximum of eight text boxes on the left-side.

  • The headerbox is optional
  • The template will not work unless at least one left-hand box is specified.
  • The remaining 7 boxes are optional
  • The template will automatically create subpages corresponding with the titles/names of the text boxes specified

Usage

Copy the following syntax for your proposed "portal page"

{{Node_page

|Box-theme=default

|Header box title=

|Left column width=

|Left box 1 title=

|Left box 2 title=

|Left box 3 title=

|Left box 4 title=

|Left box 5 title=

|Left box 6 title=

|Left box 7 title=

|Left box 8 title=

}}

Parameters

  • Box-theme - required or template won't work. Use "default" (case sensitive) or:
    • "rainbow" (case sensitive)
    • "darkgreen" (case sensitive)
    • "teal" (case sensitive)
    • "sienna" (case sensitive)
    • "mediumaquamarine" (case sensitive)
    • "dehub" (case sensitive)

The community may develop more supported themes and add them to this list.

  • Header box title: Optional, type the title for the header box on the top of the page which will span the two columns. Use alpha numeric text for valid wiki page names.
  • Left column width: Optional. Will default to 50:50. Use "40" to specify a left column width of 40% or "60" to specify a left-column width of 60%
  • Left box 1 title: Required. Type the title for left box 1 which will appear on the top of the left-hand column. Use alpha numeric text for valid wiki page names.
  • Left box 2 title: Optional. Type the title for left box 2 which will appear below left box 1 in the left-hand column. Use alpha numeric text for valid wiki page names.
  • Left box 3 title: Optional. Type the title for left box 3 which will appear below left box 2 in the left-hand column. Use alpha numeric text for valid wiki page names.
  • Left box 4 title: Optional. Type the title for left box 4 which will appear below left box 3 in the left-hand column. Use alpha numeric text for valid wiki page names.
  • Left box 5 title: Optional. Type the title for left box 5 which will appear below left box 4 in the left-hand column. Use alpha numeric text for valid wiki page names.
  • Left box 6 title: Optional. Type the title for left box 6 which will appear below left box 5 in the left-hand column. Use alpha numeric text for valid wiki page names.
  • Left box 7 title: Optional. Type the title for left box 7 which will appear below left box 6 in the left-hand column. Use alpha numeric text for valid wiki page names.
  • Left box 8 title: Optional. Type the title for left box 8 which will appear below left box 7 in the left-hand column. Use alpha numeric text for valid wiki page names.

Example

The following syntax will produce the layout displayed below (Please do not edit the subpages by clicking on the red links as this is a demonstration page):

{{Node_page_1col

|Box-theme=rainbow

|Header box title=Our vision for header boxes

|Left column width=40

|Left box 1 title=My left box 1

|Left box 2 title=My left box 2

|Left box 3 title=My left box 3

|Left box 4 title=My left box 4

|Left box 5 title=My left box 5

|Left box 6 title=My left box 6

|Left box 7 title=My left box 7

|Left box 8 title=My left box 8

}}

Example


edit  

Our vision for header boxes


Developing additional themes for this template

People are most welcome to design and implement a wide range of different themes. This will require an intermediate to advanced level of wiki editing, knowledge of templates and parsing and general web design, Current themes are specified here: Template:Box-theme. If you design a new theme, please add this to the list above.

Source: http://wikieducator.org/Template:Node_page