Template:Unknown

From Official Kodi Wiki
Revision as of 23:06, 18 January 2020 by RogueScholar (talk | contribs) (Minor documentation improvements)
Jump to navigation Jump to search
 ??? 
Template documentation

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
or    
No
or    
Partial

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 

Custom cell text

The question marks as the cell's content 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, calling this template with either {{Unknown|TBD}} or {{Unknown|1=TBD}} formatting, as both produce the following table cell when transcluded and parsed:

 TBD 

Parameters

All available template parameters
|1= overrides default  ???  contents (may also be provided as only unnamed parameter)
|align= values of left or right align the cell contents to that horizontal edge, overriding the default center alignment
|bgcolor= changes the background color, always terminated with a semicolon — values may be:
  • named CSS colors like moccasin;
  • short RGB hexadecimals like #ccc; or long ones like #ffe228;
  • a keyword like transparent or none to either inherit/disable the background
|style= for any other CSS style elements desired beyond the standard formatting

Default style

This template uses the following CSS elements as its defaults. Those without an explicit override parameter above can still be changed if necessary by adding them as a value for the |style= parameter with a space and !important placed before the terminating semicolon.

style="background: #d3d3d3; color: #000; vertical-align: middle; text-align: center; font-weight: 800; font-size: 108%;" class="table-unknown"


An example of such an override (in this instance changing the font-weight parameter which controls the level of typeface boldness to the unbolded value of 500) would look like:

{{Unknown|style=font-weight: 500 !important;}}  which then appears as    
 ??? 

See also