Wiktenauer logo.png

Difference between revisions of "Template:Master begin"

From Wiktenauer
Jump to navigation Jump to search
Line 2: Line 2:
 
<div class="NavHead" style="background:#f2f2f2; border:1px solid #aaaaaa; padding:10px 10px 12px 10px; text-align:center; vertical-align:middle; width:60%;"><span style="font-size:1.17em;">{{{title|}}}</span>
 
<div class="NavHead" style="background:#f2f2f2; border:1px solid #aaaaaa; padding:10px 10px 12px 10px; text-align:center; vertical-align:middle; width:60%;"><span style="font-size:1.17em;">{{{title|}}}</span>
 
</div>
 
</div>
<div style="display:block">
+
<div class="NavContent" style="background:transparent; text-align:left; display:none; width:{{{width|28em}}};">
<div class="NavContent" style="background:transparent; text-align:left; display:none; width:{{{width|28em}}};"></includeonly><noinclude>{{documentation}}</noinclude>
+
<div style="display:block;"></includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 16:03, 21 January 2015

[edit] [history] [purge] Documentation icon Template documentation

These templates are simplified from {{hidden begin}}, with all of the parameter for use on a Master page (except {{{title|}}} and {{{width|}}}) preset so they can be controlled globally.

Usage

The {{{width|}}} parameter should be equal to 28em for each full column and 20em for each narrow column.

Example

{{master begin
| title = Lorem Ipsum
| width = 56em
}}
{| class="master"
|- 
! <p>Lorem Ipsum<br/>by Wiktenauer</p>
! <p>Lorem Ipsum<br/>by Wiktenauer</p>

|- 
| <p>{{lorem ipsum}}</p>
| <p>{{lorem ipsum}}</p>

|}
{{master end}}