n/a – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Use CSS class) |
Lou Montana (talk | contribs) m (Fix template) |
||
Line 1: | Line 1: | ||
<includeonly>class="na-cell" style="{{{style|}}}" | <includeonly>class="na-cell" style="{{{style|}}}" | {{{1|N/A}}}</includeonly><noinclude> | ||
Fills ''a table '''cell''''' in grey, with N/A text by default. | Fills ''a table '''cell''''' in grey, with N/A text by default. | ||
{{Important | This template has to be ''inside'' a table cell, e.g: | {{Important | This template has to be ''inside'' a table cell, e.g: | ||
Line 23: | Line 22: | ||
== Usage == | == Usage == | ||
<code>{{<nowiki/>n/a|'''''text | <code>{{<nowiki/>n/a|'''''text'''''|'''''style'''''}}</code> | ||
* text: (Optional, default "N/A") | * text: (Optional, default "N/A") | ||
* style: (Optional, default "". Named parameter only) additional CSS (e.g <tt>font-weight: bold</tt>) | * style: (Optional, default "". Named parameter only) additional CSS (e.g <tt>font-weight: bold</tt>) | ||
Line 39: | Line 37: | ||
| {{n/a|abc}} | | {{n/a|abc}} | ||
|- | |- | ||
| <nowiki>{{n/a | | <nowiki>{{n/a|style=font-size: 2em; font-weight: bold;text-align: right|wabbit}}</nowiki> | ||
| {{n/a|align=right|style=font-size: 2em; font-weight: bold|wabbit}} | | {{n/a|align=right|style=font-size: 2em; font-weight: bold; text-align: right|wabbit}} | ||
|} | |} | ||
== Source == | == Source == | ||
<syntaxhighlight lang="html"> | <syntaxhighlight lang="html"> | ||
class="na-cell" style="{{{style|}}}" | class="na-cell" style="{{{style|}}}" | {{{1|N/A}}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 19:56, 29 October 2020
Fills a table cell in grey, with N/A text by default.
Usage
{{n/a|text|style}}
- text: (Optional, default "N/A")
- style: (Optional, default "". Named parameter only) additional CSS (e.g font-weight: bold)
Code | Result |
---|---|
{{n/a}} | N/A |
{{n/a|abc}} | abc |
{{n/a|style=font-size: 2em; font-weight: bold;text-align: right|wabbit}} | wabbit |
Source
class="na-cell" style="{{{style|}}}" | {{{1|N/A}}}