Template:Table cell templates/doc: Difference between revisions
Appearance
Content deleted Content added
Created page with "<noinclude>{{Documentation subpage}}</noinclude>{{#switch: {{FULLPAGENAME}} | Template:BLACK = {{For|the text color template|Template:Black}} | Template:Ya = {{For|the template with a smaller tick and no green background|Template:Aye}} | Template:Maybe = {{For|the yellow tick template|Template:Mby}} | Template:To be announced = {{distinguish|Template:TBD}} | Template:Pending = {{For|the comment templates with small icons|Template:Tobedone|Template:Bug pending|Template:Pe..." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 7: | Line 7: | ||
| Template:Correct = {{distinguish|Template:Correct title}} |
| Template:Correct = {{distinguish|Template:Correct title}} |
||
}}<!-- |
}}<!-- |
||
{{#ifeq:{{#invoke:High-use|num|x|demo={{FULLPAGENAME}}}}|many||{{High-use|demo={{FULLPAGENAME}}}}}}--> |
|||
{{High-risk}} |
|||
The templates in this series, including {{tlxb|{{BASEPAGENAME}}}}, are designed to be used in a [[Help:Table|table]] to make a cell with text in that cell, with an appropriately colored background. They are commonly used in [[:Category:Comparisons|comparison tables]]. Most of these templates should not be used simply to produce a background color: use them according to their meaning. |
The templates in this series, including {{tlxb|{{BASEPAGENAME}}}}, are designed to be used in a [[Help:Table|table]] to make a cell with text in that cell, with an appropriately colored background. They are commonly used in [[:Category:Comparisons|comparison tables]]. Most of these templates should not be used simply to produce a background color: use them according to their meaning. |
||
For example, {{Tl|yes}} makes a cell with a green background. The text in the cell is taken from the first [[Help:Template#Parameters|parameter]]; <syntaxhighlight lang="wikitext" inline=yes>{{yes|Sure}}</syntaxhighlight> would give "Sure" otherwise it defaults to "Yes". Most templates allow editors to override the default text using {{para|1}} or equivalent, some require text to be placed after the template call, and others may need a vertical bar ({{char|{{!}}}}) separating the two: <syntaxhighlight lang="wikitext" inline=yes>{{table cell template}} text</syntaxhighlight> or <syntaxhighlight lang="wikitext" inline=yes>{{table cell template}} | text</syntaxhighlight>. This information, the colors, and default texts are found in the table below. |
For example, {{Tl|yes}} makes a cell with a green background. The text in the cell is taken from the first [[Help:Template#Parameters|parameter]]; <syntaxhighlight lang="wikitext" inline=yes>{{yes|Sure}}</syntaxhighlight> would give "Sure" otherwise it defaults to "Yes". Most templates allow editors to override the default text using {{para|1}} or equivalent, some require text to be placed after the template call, and others may need a vertical bar ({{char|{{!}}}}) separating the two: <syntaxhighlight lang="wikitext" inline=yes>{{table cell template}} text</syntaxhighlight> or <syntaxhighlight lang="wikitext" inline=yes>{{table cell template}} | text</syntaxhighlight>. This information, the colors, and default texts are found in the table below. |
||
{{ |
{{Warning sign|Important:}} If you want to use other attributes for the table cells that do not appear in {{slink|#Code}} below, ''e.g.'' <code>colspan</code>, <code>rowspan</code>, or <code>style</code>, they need to be put before the template call, and there must be '''no vertical bar''' ({{char|{{!}}}}) in-between them, for example: |
||
{| class=wikitable align=right style="margin-left:0.6em; margin-top:5px;" |
{| class=wikitable align=right style="margin-left:0.6em; margin-top:5px;" |
||