Template:N/a: Difference between revisions

Template page
w:c:strategywiki>Najzere
m (consolidated all modifiers into one template)
w:c:strategywiki>Prod
(switching to use documentation template)
Line 1: Line 1:
class="table-na" | {{{1|N/A}}}<noinclude>
class="table-na" | {{{1|N/A}}}<noinclude>
{{cleanup|


Used in tables to show "N/A" in a cell with a nice background. This template adds a pipe (|) in the beginning, so if used in a cell with parameters modifying it, omit the pipe separating the modifiers and the cell contents. Instances where this may be a problem are in cells where you are using the <code>width</code> or <code>style</code> parameter.
{{Documentation}}
 
Normal:
<pre>| cell one || cell two || cell three || {{n/a}}</pre>
 
Cell parameter:
<pre>| cell one || cell two || cell three ||width="25%" {{n/a}}</pre>
 
{{table cell modifiers}}


[[Category:Templates|N]]</noinclude>
[[Category:Templates|N]]</noinclude>

Revision as of 04:31, 6 March 2009

class="table-na" | N/A {{cleanup|

This page has been transcluded from Template:N/a/Documentation.


{{no}} {{no2}}
No No
{{yes}} {{yes2}}
Yes Yes
{{free}} {{nonfree}}
Free $ ?
{{n/a}} {{partial}}
N/A Partial
{{unknown}} {{spoilercell}}
Unknown
{{{1}}}

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 style and class 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
| normal cell ||cell attributes| modified cell
Multiple lines
| normal cell
|cell attributes| modified cell

If you are not already using the cell parameters, simply insert the template as you would normal content:

| normal cell || {{no}}

If you are modifying the cell contents, i.e. with colspan, rowspan, width, etc., then do not add the closing pipe between your attributes and the cell content:

| normal cell || colspan="2" {{no}}