n/a – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix style attribute) |
Lou Montana (talk | contribs) m (Fix Source) |
||
Line 43: | Line 43: | ||
== Source == | == Source == | ||
<syntaxhighlight lang="html"> | <syntaxhighlight lang="html"> | ||
class="na-cell" style="{{{style | class="na-cell"{{#if:{{{style|}}}|<nowiki/> style="{{{style}}}"}} | {{{1|N/A}}} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 15:35, 16 March 2022
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"{{#if:{{{style|}}}|<nowiki/> style="{{{style}}}"}} | {{{1|N/A}}}