Template:Unknown

From Official Kodi Wiki
Revision as of 13:30, 17 January 2020 by RogueScholar (talk | contribs) (Fix display of example in documentation)
Jump to: navigation, search
 ??? 
Template documentation

1 Purpose

This template creates a table cell with a light grey background and black, larger heavy text which defaults to a triple question mark, as seen above. It is designed to generate a uniform appearance for common cell values in feature and comparison tables with minimal effort, alongside similar templates like:

Yes
and    
No

2 Usage

The template will only function properly when used inside of the standard wikicode for tables, following the | character(s) which indicate the table cell. In practice, it looks like this when editing and then when parsed:

 {| class="wikitable"
  |-
  | Template documented?
  | Template categorized?
  |-
  | {{Unknown}}
  | {{Yes}}
  |}

Template documented?Template categorized?
 ???  Yes 

2.1 Custom cell text

The question marks can be replaced with any text desired by assigning it to the value of the |1= parameter or passing it as the only unnamed parameter. For example, either {{Unknown|TBD}} or {{Unknown|1=TBD}}, as both produce the following table cell when transcluded and parsed:

 TBD 

2.2 Available named parameters

It offers the following named parameters:

|align= (values of left or right align the cell contents to that horizontal edge, overriding the default center alignment)
|bgcolor= (changes the background color and must be terminated with a semicolon — values may be named CSS colors like moccasin;, long or short RGB hexadecimals like #ccc; or a keyword like transparent to disable the background)
|style= (for any other CSS style elements desired beyond the standard formatting)

3 See also