Difference between revisions of "Template:Yes/doc"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Add doc)
 
m
Line 4: Line 4:
 
The templates in this series are designed to be used in a table to make a cell with text in that cell, with an appropriately colored background.
 
The templates in this series are designed to be used in a table to make a cell with text in that cell, with an appropriately colored background.
  
For example, {{Tl|yes}} makes a cell with a green background. The text in the cell is taken from the first parameter; <code><nowiki>{{</nowiki>yes|Sure}}</code> would output "Sure" otherwise it defaults to "Yes".
+
For example, {{Tlc|yes}} makes a cell with a green background. The text in the cell is taken from the first parameter; <code><nowiki>{{</nowiki>yes|Sure}}</code> would output "Sure" otherwise it defaults to "Yes".
  
 
== Templates ==
 
== Templates ==
Line 10: Line 10:
 
{| class="wikitable" style="text-align: left; width: auto;"
 
{| class="wikitable" style="text-align: left; width: auto;"
 
|+ Table cell templates
 
|+ Table cell templates
! Class<ref name="table-cell-templates-table-css">The HTML class of table cell templates may be referenced in a [[m:help:User style|user stylesheet]] to change appearance.</ref> !! Default syntax !! Preview (default) !! Customized syntax !! Preview (customized)
+
! Class !! Default syntax !! Preview (default) !! Customized syntax !! Preview (customized)
 
|-
 
|-
 
| <code>table-yes</code> || {{tl|yes}} || {{yes}} || {{tlp|yes|<nowiki>Customized [[Plain text|text]]</nowiki>}} ||{{yes|Customized [[Plain text|text]]}}
 
| <code>table-yes</code> || {{tl|yes}} || {{yes}} || {{tlp|yes|<nowiki>Customized [[Plain text|text]]</nowiki>}} ||{{yes|Customized [[Plain text|text]]}}

Revision as of 11:05, 14 February 2020

Usage

The templates in this series are designed to be used in a table to make a cell with text in that cell, with an appropriately colored background.

For example, {{yes}} makes a cell with a green background. The text in the cell is taken from the first parameter; {{yes|Sure}} would output "Sure" otherwise it defaults to "Yes".

Templates

Table cell templates
Class Default syntax Preview (default) Customized syntax Preview (customized)
table-yes {{yes}} Yes {{yes|Customized [[Plain text|text]]}} Customized text
table-no {{no}} No {{no|Customized [[Plain text|text]]}} Customized text

See also

See w:en:Template:Table_cell_templates/doc for more information and other templates.