Template:n/a

From Bohemia Interactive Community
Revision as of 22:07, 26 October 2019 by Lou Montana (talk | contribs) (Add some examples)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 style="background: #ececec; color: grey; vertical-align: middle; text-align: center; " class="table-na" | N/A.

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)
Examples
Code Result
{{n/a}} N/A
{{n/a|abc}} abc
{{n/a|align=right|style=font-size: 2em; font-weight: bold|wabbit}} wabbit

Source

style="background: #ececec; color: grey; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="table-na" <!--
-->| <small>{{#if:{{{sort|}}}|{{hs|{{{sort}}}}}}}{{{1|N/A}}}</small>