Template:No/Documentation: Difference between revisions

Template page
w:c:strategywiki>Najzere
m (default value)
(Replaced content with "{|{{prettytable|notwide=1|float=right")
Line 1: Line 1:
{|{{prettytable|notwide=1|float=right|style=margin-left:1em}}
{|{{prettytable|notwide=1|float=right
!width="50%"| {{t|no}} !! {{t|no2}}
|-
| {{no}} || {{no2}}
|-
! {{t|yes}} !! {{t|yes2}}
|-
| {{yes}} || {{yes2}}
|-
! {{t|free}} !! {{t|nonfree}}
|-
| {{free}} || {{nonfree}}
|-
! {{t|n/a}} || {{t|partial}}
|-
| {{n/a}} || {{partial}}
|-
! {{t|unknown}} !! {{t|spoilercell}}
|-
| {{unknown}} || {{spoilercell}}
|}
These templates are used to add standard formatting to table cells. All templates accept one parameter: the contents of the cell. Default values are shown in the table to the right.
 
==Usage==
These templates rely on the <code>style</code> and <code>class</code> attributes of the table cell and add a pipe (|) at the end to close off the cell attributes area. Cell attributes go in the following places:
;Single line
:<code><nowiki>| normal cell ||</nowiki>'''cell attributes'''| modified cell</code>
;Multiple lines
:<code>| normal cell</code>
:<code>|'''cell attributes'''| modified cell</code>
 
If you are not already using the cell parameters, simply insert the template as you would normal content:
:<code>| normal cell <nowiki>|| {{no}}</nowiki></code>
 
If you are modifying the cell contents, i.e. with <code>colspan</code>, <code>rowspan</code>, <code>width</code>, etc., then do not add the closing pipe between your attributes and the cell content:
:<code>| normal cell <nowiki>|| colspan="2" {{no}}</nowiki></code>
 
<noinclude>[[Category:Template documentation|N]]</noinclude>

Revision as of 00:29, 14 August 2011