n/a – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{|class" to "{| class")
m (Text replacement - "<tt>([^ =]+)<\/tt>" to "{{hl|$1}}")
Line 24: Line 24:
<code>{{<nowiki/>n/a|'''''text'''''|'''''style'''''}}</code>
<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 {{hl|font-weight: bold}})


{| class="wikitable"
{| class="wikitable"

Revision as of 11:33, 16 November 2021

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

This template has to be inside a table cell, e.g:

{| class="wikitable" ! First Name !! Last Name |- | {{n/a}} || Miller |}

First Name Last Name
N/A Miller
If put in a text paragraph, it results in class="na-cell" style="" | N/A.

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" style="{{{style|}}}" | {{{1|N/A}}}