n/a – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix style attribute)
m (Text replacement - "<code>" to "<code style="display: block">")
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
{{{!}}
{{{!}}
{{!}}
{{!}}
<code><nowiki>{| class="wikitable"
<code style="display: block"><nowiki>{| class="wikitable"
! First Name !! Last Name
! First Name !! Last Name
|-
|-
Line 19: Line 19:
{{!}}}
{{!}}}


If put in a text paragraph, it results in <tt style{{=}}"font-size: 0.75em">{{n/a}}</tt>.}}
If put in a text paragraph, it results in {{hl|{{n/a}}}}.}}


== Usage ==
== Usage ==
<code>{{<nowiki/>n/a|'''''text'''''|'''''style'''''}}</code>
<code style="display: block">{{<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 {{hl|font-weight: bold}})
* style: (Optional, default "". Named parameter only) additional CSS (e.g {{hl|font-weight: bold}})
Line 43: Line 43:
== Source ==
== Source ==
<syntaxhighlight lang="html">
<syntaxhighlight lang="html">
class="na-cell" style="{{{style|}}}" | {{{1|N/A}}}
class="na-cell"{{#if:{{{style|}}}|<nowiki/> style="{{{style}}}"}} | {{{1|N/A}}}
</syntaxhighlight>
</syntaxhighlight>



Latest revision as of 11:53, 11 January 2023

Fills a table cell in grey, with N/A text by default.

-Text not defined-

Usage

{{n/a|text|style}}

  • text: (Optional, default "N/A")
  • style: (Optional, default "". Named parameter only) additional CSS (e.g font-weight: bold)
Examples
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}}}