Template:Unknown: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(Create template to complement the Yes and No templates for colored table cells when no verifiable information is available)
(No difference)

Revision as of 12:35, 17 January 2020

 ??? 
Template documentation

Usage

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

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:

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

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)

See also