n/a – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Add some examples) |
Lou Montana (talk | contribs) m (Use CSS class) |
||
Line 1: | Line 1: | ||
<includeonly>style=" | <includeonly>class="na-cell" style="{{{style|}}}" <!-- | ||
-->| <small>{{#if:{{{sort|}}}|{{hs|{{{sort}}}}}}}{{{1|N/A}}}</small></includeonly><noinclude> | -->| <small>{{#if:{{{sort|}}}|{{hs|{{{sort}}}}}}}{{{1|N/A}}}</small></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. | ||
Line 45: | Line 45: | ||
== Source == | == Source == | ||
<syntaxhighlight lang="html"> | <syntaxhighlight lang="html"> | ||
style=" | class="na-cell" style="{{{style|}}}" <!-- | ||
-->| <small>{{#if:{{{sort|}}}|{{hs|{{{sort}}}}}}}{{{1|N/A}}}</small> | -->| <small>{{#if:{{{sort|}}}|{{hs|{{{sort}}}}}}}{{{1|N/A}}}</small> | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 19:45, 29 October 2020
Fills a table cell in grey, with N/A text by default.
Usage
{{n/a|text|align|style}}
- text: (Optional, default "N/A")
- align: (Optional, default "center". Named parameter only) text alignment. can be left, center or right
- 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|align=right|style=font-size: 2em; font-weight: bold|wabbit}} | wabbit |
Source
class="na-cell" style="{{{style|}}}" <!--
-->| <small>{{#if:{{{sort|}}}|{{hs|{{{sort}}}}}}}{{{1|N/A}}}</small>