RogerDodger (talk | contribs) (Created page with "The templates in this series are designed to be used in a table to make a cell with appropriate text and colored background, primarily for comparison tables. These templates s...") |
RogerDodger (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
__FORCETOC__ | |||
The templates in this series are designed to be used in a table to make a cell with appropriate text and colored background, primarily for comparison tables. These templates should not be used simply to produce a background color in other contexts. Use [[Wavu:Contributing#Color|the appropriate classes]] for that instead. | The templates in this series are designed to be used in a table to make a cell with appropriate text and colored background, primarily for comparison tables. These templates should not be used simply to produce a background color in other contexts. Use [[Wavu:Contributing#Color|the appropriate classes]] for that instead. | ||
Line 22: | Line 23: | ||
|- | |- | ||
| {{tl|eh}} || {{eh}} || <nowiki>{{eh|customized text}}</nowiki> || {{eh|customized text}} | | {{tl|eh}} || {{eh}} || <nowiki>{{eh|customized text}}</nowiki> || {{eh|customized text}} | ||
|} | |||
== Usage == | |||
<syntaxhighlight lang="html"> | |||
{| class="wikitable" | |||
|- | |||
| {{Yes}} || {{No}} | |||
|- | |||
| colspan="2" {{Maybe}} | |||
|} | |||
</syntaxhighlight> | |||
== Example == | |||
{| class="wikitable" | |||
|- | |||
| {{Yes}} || {{No}} | |||
|- | |||
| colspan="2" {{Maybe}} | |||
|} | |} |
Revision as of 14:01, 7 February 2022
The templates in this series are designed to be used in a table to make a cell with appropriate text and colored background, primarily for comparison tables. These templates should not be used simply to produce a background color in other contexts. Use the appropriate classes for that instead.
As an example, {{yes}} makes a cell with a green background and the text "Yes". The text can be changed, e.g. {{yes|Sure}}
would output "Sure". Other parameters that work are align
and style
.
If you want to change other attributes, e.g. the rowspan, make sure there's no |
character before the template, e.g. write rowspan="2" {{yes}}
and not rowspan="2" | {{yes}}
.
Templates
Template | Preview (default) | Customized syntax | Preview (customized) |
---|---|---|---|
{{yes}} | Yes | {{yes|customized text}} | customized text |
{{ya}} | ✔︎ | {{ya|customized text}} | ✔︎ customized text |
{{no}} | No | {{no|customized text}} | customized text |
{{na}} | ✘︎ | {{na|customized text}} | ✘︎ customized text |
{{maybe}} | Maybe | {{maybe|customized text}} | customized text |
{{eh}} | ≈︎ | {{eh|customized text}} | ≈︎ customized text |
Usage
{| class="wikitable"
|-
| {{Yes}} || {{No}}
|-
| colspan="2" {{Maybe}}
|}
Example
Yes | No |
Maybe |