Minecraft Wiki
Majr (diskuse | příspěvky)
m (naimportována 1 revize: Import EN templates)
mBez shrnutí editace
Řádek 1: Řádek 1:
 
<includeonly> style="background-color: #{{
 
<includeonly> style="background-color: #{{
 
#switch: {{#if: {{{1|}}} | {{lc: {{{1}}} }} | n/a }}
 
#switch: {{#if: {{{1|}}} | {{lc: {{{1}}} }} | n/a }}
  +
| ano
 
| yes = C6EFCE; color: #006100;{{{style|}}}" {{!}} {{ucfirst: {{{2|Yes}}} }}
 
| yes = C6EFCE; color: #006100;{{{style|}}}" {{!}} {{ucfirst: {{{2|Yes}}} }}
 
| always = 5DCC5D; color: #004100;{{{style|}}}" {{!}} {{ucfirst: {{{2|Always}}} }}
 
| always = 5DCC5D; color: #004100;{{{style|}}}" {{!}} {{ucfirst: {{{2|Always}}} }}
  +
| ne
 
| no = FFC7CE; color: #9C0006;{{{style|}}}" {{!}} {{ucfirst: {{{2|No}}} }}
 
| no = FFC7CE; color: #9C0006;{{{style|}}}" {{!}} {{ucfirst: {{{2|No}}} }}
 
| - = FFC7CE; color: #9C0006;{{{style|}}}" {{!}} {{ucfirst: {{{2|—}}} }}
 
| - = FFC7CE; color: #9C0006;{{{style|}}}" {{!}} {{ucfirst: {{{2|—}}} }}

Verze z 8. 8. 2017, 10:41

[view | edit | history | purge]Documentation
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 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:

Yes
{| class="wikitable" style="margin: 0px"
| {{tc|unknown|not sure|style=text-decoration:underline}}
|}

Will output:

Not sure

Available parameters

Parameter Example
yes Yes
always Always
no No
never Never
rarely Rarely
neutral Neutral
partial Partial
planned Planned
unknown Unknown
in off
in! ON
out off
out! ON
n/a N/A
-
[view | edit | history | purge]The above documentation is transcluded from Šablona:Table Choice/doc.