Cambios
m
sin resumen de edición
{{doc/start}}
{{shortcut|tc}}
This template is used to color the cell background and cell text of a table depending on what option you choose.
== Usage ==
To use the template you choose from one of the [[#Available parameters|available parameters]] and optionally choose to add custom text. Note that the first letter for custom text is automatically changed to uppercase.
<tt>style=</tt> can be use to add additional styling.
=== Examples ===
<nowiki>{|</nowiki> class="wikitable" style="margin: 0px"<br />
| <code><nowiki>{{tc|yes}}</nowiki></code><br />
|}
Will output:
{| class="wikitable" style="margin: 0px"
| {{tc|yes}}
|}
<nowiki>{|</nowiki> class="wikitable" style="margin: 0px"<br />
| <code><nowiki>{{tc|unknown|not sure|style=text-decoration:underline}}</nowiki></code><br />
|}
Will output:
{| class="wikitable" style="margin: 0px"
| {{tc|unknown|not sure|style=text-decoration:underline}}
|}
== Available parameters ==
{| class="wikitable"
! Parameter
! Example
|-
| yes || {{tc|yes}}
|-
| always || {{tc|always}}
|-
| no || {{tc|no}}
|-
| never || {{tc|never}}
|-
| neutral || {{tc|neutral}}
|-
| partial || {{tc|partial}}
|-
| planned || {{tc|planned}}
|-
| unknown || {{tc|unknown}}
|-
| in || {{tc|in}}
|-
| in! || {{tc|in!}}
|-
| out || {{tc|out}}
|-
| out! || {{tc|out!}}
|-
| n/a || {{tc|n/a}}
|}
{{doc/end}}<noinclude>
[[fr:Modèle:Choix table/doc]][[nl:Template:Table Choice/doc]]
</noinclude>
{{shortcut|tc}}
This template is used to color the cell background and cell text of a table depending on what option you choose.
== Usage ==
To use the template you choose from one of the [[#Available parameters|available parameters]] and optionally choose to add custom text. Note that the first letter for custom text is automatically changed to uppercase.
<tt>style=</tt> can be use to add additional styling.
=== Examples ===
<nowiki>{|</nowiki> class="wikitable" style="margin: 0px"<br />
| <code><nowiki>{{tc|yes}}</nowiki></code><br />
|}
Will output:
{| class="wikitable" style="margin: 0px"
| {{tc|yes}}
|}
<nowiki>{|</nowiki> class="wikitable" style="margin: 0px"<br />
| <code><nowiki>{{tc|unknown|not sure|style=text-decoration:underline}}</nowiki></code><br />
|}
Will output:
{| class="wikitable" style="margin: 0px"
| {{tc|unknown|not sure|style=text-decoration:underline}}
|}
== Available parameters ==
{| class="wikitable"
! Parameter
! Example
|-
| yes || {{tc|yes}}
|-
| always || {{tc|always}}
|-
| no || {{tc|no}}
|-
| never || {{tc|never}}
|-
| neutral || {{tc|neutral}}
|-
| partial || {{tc|partial}}
|-
| planned || {{tc|planned}}
|-
| unknown || {{tc|unknown}}
|-
| in || {{tc|in}}
|-
| in! || {{tc|in!}}
|-
| out || {{tc|out}}
|-
| out! || {{tc|out!}}
|-
| n/a || {{tc|n/a}}
|}
{{doc/end}}<noinclude>
[[fr:Modèle:Choix table/doc]][[nl:Template:Table Choice/doc]]
</noinclude>