12345678910111213141516171819202122 |
- <includeonly>[[Template:#ifeq: {{{Value|]]} | yes
- | style="background: #e0ffe0; color: #006000;" [[Template:!]] [[Template:#if: {{{Text|]]} | [[Template:{Text]]} | yes}}
- [[Template:#if: {{{YesCategory]]} | [[Category:[[Template:{YesCategory]]}]]}}
- | [[Template:#ifeq: {{{Value|]]} | no
- | style="background: #ffe0e0; color: #600000;" [[Template:!]] [[Template:#if: {{{Text|]]} | [[Template:{Text]]} | no}}
- [[Template:#if: {{{NoCategory]]} | [[Category:[[Template:{NoCategory]]}]]}}
- | style="background: #e0e0e0; color: #000000;" [[Template:!]] [[Template:#if: {{{Value|]]} | [[Template:{Value]]} | ''unknown''}}
- [[Template:#if: {{{UnknownCategory]]} | [[Category:[[Template:{UnknownCategory]]}]]}}
- }}
- }}</includeonly><noinclude>Adds a colored table cell. The color of the cell depends on the ''Value'' argument which can be either "yes" or "no". If it is neither, "unknown" is assumed. This template is meant to be used in more specialized templates.
- == Usage ==
- <nowiki>{{TableCell YesNoUnknown</nowiki>
- | Value=yes
- | Text=this is true
- | YesCategory=Pages which are true
- | NoCategory=Pages which are false
- | UnknownCategory=Schroedinger's pages
- <nowiki>}}</nowiki>
- </noinclude>
|