Difference between revisions of "Template:No/doc"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Add doc)
 
m
 
Line 7: Line 7:
  
 
== Templates ==
 
== Templates ==
<div style="overflow:auto;">
+
{{Table cell templates/doc}}
{| class="wikitable" style="text-align: left; width: auto;"
 
|+ Table cell templates
 
! 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-no</code> || {{tl|no}} || {{no}} || {{tlp|no|<nowiki>Customized [[Plain text|text]]</nowiki>}} || {{no|Customized [[Plain text|text]]}}
 
|}</div>
 
  
 
== See also ==
 
== See also ==
Line 22: Line 14:
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Templates]]
 
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 11:13, 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, {{no}} makes a cell with a green background. The text in the cell is taken from the first parameter; {{no|Nope}} would output "Nope" otherwise it defaults to "No".

Templates

More coming soon

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

See also

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