Diferencia entre revisiones de «Plantilla:Table Choice»
m (1 revisión) |
|||
(No se muestran 3 ediciones intermedias de 3 usuarios) | |||
Línea 1: | Línea 1: | ||
<includeonly> style="background-color: #{{ | <includeonly> style="background-color: #{{ | ||
#switch: {{#if: {{{1|}}} | {{lc: {{{1}}} }} | n/a }} | #switch: {{#if: {{{1|}}} | {{lc: {{{1}}} }} | n/a }} | ||
− | | yes | + | | yes = C6EFCE; color: #006100;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | Sí }} |
− | | always | + | | always = 5DCC5D; color: #004100;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | Siempre }} |
− | | no | + | | no = FFC7CE; color: #9C0006;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | No }} |
− | | never | + | | never = FF5757; color: #700005;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | Nunca }} |
− | | neutral = FFEB9C; color: #9C6500;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | Neutral }} | + | | neutral = FFEB9C; color: #9C6500;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | Neutral }} |
− | | partial = FFFFDD; color: #8A7600;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | | + | | partial = FFFFDD; color: #8A7600;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | Parcial }} |
− | | planned = DFDFFF; color: #0131B7;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | | + | | planned = DFDFFF; color: #0131B7;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | Planeado }} |
− | | unknown = CCCCCC; color: #000000;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | | + | | unknown = CCCCCC; color: #000000;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | Desconocido }} |
− | | in | + | | Si = C6EFCE; color: #006100;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | Sí }} |
− | | in! | + | | Sí = C6EFCE; color: #006100;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | Sí }} |
− | | out | + | | siempre = 5DCC5D; color: #004100;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | Siempre }} |
− | | out! | + | | no = FFC7CE; color: #9C0006;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | No }} |
− | | n/a | + | | nunca = FF5757; color: #700005;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | Nunca }} |
− | | #default= FFFFFF; color: #000000;{{{style|}}}" {{!}} <strong class="error">Invalid input</strong> | + | | neutral = FFEB9C; color: #9C6500;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | Neutral }} |
+ | | parcial = FFFFDD; color: #8A7600;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | Parcial }} | ||
+ | | planeado = DFDFFF; color: #0131B7;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | Planeado }} | ||
+ | | desconocido = CCCCCC; color: #000000;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | Desconocido }} | ||
+ | | in = 006600; color: #FFFFFF;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | off }} | ||
+ | | in! = 00CC00; color: #FFFFFF;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | ON }} | ||
+ | | out = 990000; color: #FFFFFF;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | off }} | ||
+ | | out! = FF0000; color: #FFFFFF;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | ON }} | ||
+ | | n/a = FFFFFF; color: #000000;{{{style|}}}" {{!}} {{#if: {{{2|}}} | {{ucfirst: {{{2}}} }} | N/A }} | ||
+ | | #default = FFFFFF; color: #000000;{{{style|}}}" {{!}} <strong class="error">Invalid input</strong> | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{/doc}} | {{/doc}} | ||
− | [[Category:Templates | + | [[Category:Templates]] |
</noinclude> | </noinclude> |
Revisión actual del 12:19 5 sep 2014
- Atajo
- 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 and optionally choose to add custom text. Note that the first letter for custom text is automatically changed to uppercase.
style= can be use to add additional styling.
Examples
{| class="wikitable" style="margin: 0px"
| {{tc|yes}}
|}
Will output:
Sí |
{| class="wikitable" style="margin: 0px"
| {{tc|unknown|not sure|style=text-decoration:underline}}
|}
Will output:
Not sure |
Available parameters
Parameter | Example |
---|---|
yes | Sí |
always | Siempre |
no | No |
never | Nunca |
neutral | Neutral |
partial | Parcial |
planned | Planeado |
unknown | Desconocido |
in | off |
in! | ON |
out | off |
out! | ON |
n/a | N/A |
La documentación anterior se transcluye de Plantilla:Table Choice/doc. (edit | history)