Template:Table cell templates/doc
Lua error: Internal error: The interpreter exited with status 1. The templates in this series are designed to be used in a table to make a cell with text in that cell, with an appropriately colored background. They are commonly used in comparison tables.
For example, {{yes}} makes a cell with a green background. The text in the cell is taken from the first parameter; {{yes|Sure}} would output "Sure" otherwise it defaults to "Yes". Most templates allow authors to override the default text in this way, some require text put after the template call and some also need a vertical bar in between: {{table cell template}} text or {{table cell template}} | text. This information, the colors and default texts are found in the table below.
Important: If you want to use other attributes for the table cells, e.g.
colspan, rowspan, or style, they need to be put before the template call, and there must be no vertical bar (aka pipe) | in-between them:
| Yes | No | — |
|---|---|---|
| Yes/No | ||
...
!{{Yes}} ||{{No}} ||rowspan=2 {{n/a}}
|-
|colspan=2 style="border:solid 3px Maroon" {{Yes-No}}
...
Templates
| Class[1] | Default syntax | Preview (default) | Customized syntax | Preview (customized) |
|---|---|---|---|---|
table-rh
|
{{rh}} | Row header[2] | Row header | Row header | Row header |
| {{rh2}} | Row header[2] | Row header | Row header | Row header | |
table-yes
|
{{yes}} | Yes | Lua error: Internal error: The interpreter exited with status 1. | customized text |
| {{yes C}} | Lua error: Internal error: The interpreter exited with status 1. | |||
| {{yes O}} | Lua error: Internal error: The interpreter exited with status 1. | |||
| {{yes N}} | Yes | Lua error: Internal error: The interpreter exited with status 1. | customized text | |
table-maybe
|
{{maybe}} | Maybe | Lua error: Internal error: The interpreter exited with status 1. | customized text |
table-no
|
{{no}} | No | Lua error: Internal error: The interpreter exited with status 1. | customized text |
| {{no O}} | Lua error: Internal error: The interpreter exited with status 1. | |||
| {{no X}} | Lua error: Internal error: The interpreter exited with status 1. | |||
| {{eliminated}} | Eliminated | Lua error: Internal error: The interpreter exited with status 1. | dropped out | |
| Lua error: Internal error: The interpreter exited with status 1. | Active (12%) | |||
| {{lost}} | Lost | Lua error: Internal error: The interpreter exited with status 1. | missing | |
| {{safe}} | Safe | Lua error: Internal error: The interpreter exited with status 1. | protected | |
| {{no Y}} | No | Lua error: Internal error: The interpreter exited with status 1. | customized text | |
table-active
|
{{active}} | Active | Lua error: Internal error: The interpreter exited with status 1. | live |
table-siteactive
|
{{site active}} | Active | Lua error: Internal error: The interpreter exited with status 1. | up |
| {{coming soon}} | Coming soon | Lua error: Internal error: The interpreter exited with status 1. | second half of the year | |
table-siteinactive
|
{{site inactive}} | Inactive | Lua error: Internal error: The interpreter exited with status 1. | down |
table-yes2
|
{{good}} | Good | Lua error: Internal error: The interpreter exited with status 1. | A |
| {{yes2}} | Lua error: Internal error: The interpreter exited with status 1. | text | ||
| {{ya}} | Lua error: Internal error: The interpreter exited with status 1. | ya | ||
| Lua error: Internal error: The interpreter exited with status 1. | Lua error: Internal error: The interpreter exited with status 1. | |||
| {{won}} | Won | Lua error: Internal error: The interpreter exited with status 1. | winner | |
| Lua error: Internal error: The interpreter exited with status 1. | 1 | Lua error: Internal error: The interpreter exited with status 1. | gold | |
| Lua error: Internal error: The interpreter exited with status 1. | 2 | Lua error: Internal error: The interpreter exited with status 1. | silver | |
| Lua error: Internal error: The interpreter exited with status 1. | 3 | Lua error: Internal error: The interpreter exited with status 1. | bronze | |
| {{WinDL}} | W | Lua error: Internal error: The interpreter exited with status 1. | win | |
| Lua error: Internal error: The interpreter exited with status 1. | D | Lua error: Internal error: The interpreter exited with status 1. | draw | |
| Lua error: Internal error: The interpreter exited with status 1. | L | Lua error: Internal error: The interpreter exited with status 1. | loss | |
table-no2
|
{{no2}} | Lua error: Internal error: The interpreter exited with status 1. | text | |
| {{na}} | Lua error: Internal error: The interpreter exited with status 1. | na | ||
| Lua error: Internal error: The interpreter exited with status 1. | Lua error: Internal error: The interpreter exited with status 1. | |||
| {{nom}} | Nominated | Lua error: Internal error: The interpreter exited with status 1. | 5 | |
| {{sho}} | Shortlisted | Lua error: Internal error: The interpreter exited with status 1. | proposed | |
| {{longlisted}} | Longlisted | Lua error: Internal error: The interpreter exited with status 1. | rejected | |
| {{TBA}} | TBA | Lua error: Internal error: The interpreter exited with status 1. | to be announced | |
table-success
|
{{success}} | Success | Lua error: Internal error: The interpreter exited with status 1. | mission complete |
| {{operational}} | Operational | Lua error: Internal error: The interpreter exited with status 1. | returning data | |
| {{Intentionally destroyed}} | Intentionally destroyed | Lua error: Internal error: The interpreter exited with status 1. | deliberately exploded | |
table-failure
|
{{failure}} | Failure | Lua error: Internal error: The interpreter exited with status 1. | wrong orbit |
table-partial
|
{{partial}} | Partial | Lua error: Internal error: The interpreter exited with status 1. | almost done |
| {{Regional}} | Regional | Lua error: Internal error: The interpreter exited with status 1. | Uyghur | |
| {{MaybeCheck}} | Lua error: Internal error: The interpreter exited with status 1. | possibly | ||
| Lua error: Internal error: The interpreter exited with status 1. | Lua error: Internal error: The interpreter exited with status 1. | |||
| {{main mission failure}} | Main mission failure | Lua error: Internal error: The interpreter exited with status 1. | Primary objective failed, but secondary objective succeed | |
| {{scrapped}} | Not expected | Lua error: Internal error: The interpreter exited with status 1. | unfinished | |
| {{partial success}} | Partial success | Lua error: Internal error: The interpreter exited with status 1. | reached orbit and returned pictures | |
| {{partial failure}} | Partial failure | Lua error: Internal error: The interpreter exited with status 1. | Cubesat not deployed | |
| {{okay}} | Neutral | Lua error: Internal error: The interpreter exited with status 1. | C | |
| {{Yes-No}} | Yes/No | Lua error: Internal error: The interpreter exited with status 1. | yes with an if; no with a but | |
| {{some}} | Some | Lua error: Internal error: The interpreter exited with status 1. | many | |
| {{nonpartisan}} | Nonpartisan | Lua error: Internal error: The interpreter exited with status 1. | impartial | |
| {{pending}} | Pending | Lua error: Internal error: The interpreter exited with status 1. | awaiting | |
| {{unofficial}} | Unofficial | Lua error: Internal error: The interpreter exited with status 1. | de facto | |
| {{unofficial2}} | Unofficial | Lua error: Internal error: The interpreter exited with status 1. | de facto | |
| {{usually}} | Usually | Lua error: Internal error: The interpreter exited with status 1. | commonly | |
| {{rarely}} | Rarely | Lua error: Internal error: The interpreter exited with status 1. | seldom | |
| {{sometimes}} | Sometimes | Lua error: Internal error: The interpreter exited with status 1. | occasionally | |
table-noAttempt
|
{{No attempt}} | No attempt | Lua error: Internal error: The interpreter exited with status 1. | No landing attempted |
table-any
|
{{any}} | Any | Lua error: Internal error: The interpreter exited with status 1. | anyone |
table-na
|
{{n/a}} | — | Lua error: Internal error: The interpreter exited with status 1. | unavailable |
| {{varies}} | Varies | Lua error: Internal error: The interpreter exited with status 1. | differs | |
| {{sdash}} | — | Lua error: Internal error: The interpreter exited with status 1. | ||
| {{BLACK}} | N/A | Lua error: Internal error: The interpreter exited with status 1. | banned | |
| {{non-album single}} | Non-album single | Lua error: Internal error: The interpreter exited with status 1. | Non-album single | |
| {{unreleased}} | Unreleased | Lua error: Internal error: The interpreter exited with status 1. | shelved | |
| {{vacant}} | Vacant | Lua error: Internal error: The interpreter exited with status 1. | missing | |
table-unknown
|
{{unknown}} | Unknown | Lua error: Internal error: The interpreter exited with status 1. | ? |
| {{dunno}} | ? | Lua error: Internal error: The interpreter exited with status 1. | not sure | |
table-automatic
|
{{perhaps}} | Perhaps | Lua error: Internal error: The interpreter exited with status 1. | maybe |
table-depends
|
{{depends}} | Depends | Lua error: Internal error: The interpreter exited with status 1. | vendor-defined |
table-included
|
{{included}} | Included | Lua error: Internal error: The interpreter exited with status 1. | incorporated |
table-dropped
|
{{dropped}} | Dropped | Lua error: Internal error: The interpreter exited with status 1. | discontinued |
| {{terminated}} | Terminated | Lua error: Internal error: The interpreter exited with status 1. | fired | |
table-software
|
{{beta}} | Beta | Lua error: Internal error: The interpreter exited with status 1. | preview |
| {{table-experimental}} | Experimental | Lua error: Internal error: The interpreter exited with status 1. | lab | |
| {{open source}} | Open source | Lua error: Internal error: The interpreter exited with status 1. | software libre | |
| {{free}} | Free | Lua error: Internal error: The interpreter exited with status 1. | empty | |
| {{proprietary}} | Proprietary | Lua error: Internal error: The interpreter exited with status 1. | custom extension | |
| {{nonfree}} | Non-free | Lua error: Internal error: The interpreter exited with status 1. | paid | |
| {{needs}} | Needs | Lua error: Internal error: The interpreter exited with status 1. | req. | |
| {{nightly}} | Nightly build | Lua error: Internal error: The interpreter exited with status 1. | dev | |
| {{release-candidate}} | Release candidate | Lua error: Internal error: The interpreter exited with status 1. | RC | |
table-draw
|
{{draw}} | Lua error: Internal error: The interpreter exited with status 1. | 1:1 | |
table-planned
|
{{planned}} | Planned | Lua error: Internal error: The interpreter exited with status 1. | July 2028 |
table-scheduled
|
{{scheduled}} | Scheduled | Lua error: Internal error: The interpreter exited with status 1. | 3 March 2027 |
incorrect
|
{{incorrect}} | Incorrect | Lua error: Internal error: The interpreter exited with status 1. | wrong |
noresult
|
{{no result}} | No result | Lua error: Internal error: The interpreter exited with status 1. | NR |
table-debate
|
{{D-P}} | P | Lua error: Internal error: The interpreter exited with status 1. | present |
| {{D-A}} | A | Lua error: Internal error: The interpreter exited with status 1. | absent | |
| {{D-I}} | I | Lua error: Internal error: The interpreter exited with status 1. | invited | |
| {{D-O}} | O | Lua error: Internal error: The interpreter exited with status 1. | invited to other debate | |
| {{D-N}} | N | Lua error: Internal error: The interpreter exited with status 1. | not invited | |
| {{D-Nv}} | NV | Lua error: Internal error: The interpreter exited with status 1. | not voting | |
| {{D-W}} | W | Lua error: Internal error: The interpreter exited with status 1. | withdrawn | |
| {{D-Out}} | Out | Lua error: Internal error: The interpreter exited with status 1. | out of race | |
table-cast
|
{{CMain}} | Main | Lua error: Internal error: The interpreter exited with status 1. | text |
| {{CAlso starring}} | Also starring | Lua error: Internal error: The interpreter exited with status 1. | costar | |
| {{CRecurring}} | Recurring | Lua error: Internal error: The interpreter exited with status 1. | regular guest | |
| {{CGuest}} | Guest | Lua error: Internal error: The interpreter exited with status 1. | victim | |
| {{COther}} | Lua error: Internal error: The interpreter exited with status 1. | ensemble | ||
| {{CNone}} | Lua error: Internal error: The interpreter exited with status 1. | cast | ||
| {{CEmpty}} | ||||
| {{CRemoved}} | removed | Lua error: Internal error: The interpreter exited with status 1. | edited | |
| {{CFinalist}} | Finalist | Lua error: Internal error: The interpreter exited with status 1. | contender | |
| Lua error: Internal error: The interpreter exited with status 1. | 3rd Place | Lua error: Internal error: The interpreter exited with status 1. | third place | |
| {{exempt}} | exempt | Lua error: Internal error: The interpreter exited with status 1. | B.Exempt | |
| {{nocontest}} | Lua error: Internal error: The interpreter exited with status 1. | rescheduled | ||
| {{Runner-up}} | Runner-up | Lua error: Internal error: The interpreter exited with status 1. | 2nd Place | |
| {{Quit}} | Quit | Lua error: Internal error: The interpreter exited with status 1. | left | |
| no class | {{not yet}} | Not yet | Lua error: Internal error: The interpreter exited with status 1. | NY |
| {{optional}} | Optional | Lua error: Internal error: The interpreter exited with status 1. | non-mandatory | |
| Lua error: Internal error: The interpreter exited with status 1.% | 100% | Lua error: Internal error: The interpreter exited with status 1.% | 100% | |
| Lua error: Internal error: The interpreter exited with status 1.% | 75% | Lua error: Internal error: The interpreter exited with status 1.% | 73–78% | |
| Lua error: Internal error: The interpreter exited with status 1.% | 25% | Lua error: Internal error: The interpreter exited with status 1. | Lua error: Internal error: The interpreter exited with status 1. | |
| Lua error: Internal error: The interpreter exited with status 1.% | 0% | Lua error: Internal error: The interpreter exited with status 1.% | 0% |
Code
Common code to most if not all the templates in this series:
style="background: #abcdef; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|text-transform: capitalize;}}}" class="automatic table-automatic"| {{{1|text}}}
Creating new templates
To make a new table cell template you can use:
{{subst:Table cell templates|text= default text |bg= background color |class= a class name without prefix |align= standard horizontal alignment}}
You should leave out the align parameter and often the class parameter is unnecessary, too.
Add the new template to the table in the common documentation afterwards. Please consider reusing one of the other templates and please choose the color sensibly.
If you find a table cell template that does not take a parameter and you want to be able to change the text in the cell, do not duplicate the template! Instead, edit the template and change the text to a default parameter substitution. For example, if a template's text is Dropped, change that to {{{1|Dropped}}}.
style="background: #abcdef; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="automatic table-automatic"| {{{1|text}}}
Color subpage
All templates should either have a /bgcolor subpage that contains nothing but a valid CSS color code, possibly wrapped in nowiki tags, e.g. #BFD, which can be included with background: {{/bgcolor}}; in the style attribute, or they should reference another template's subpage, e.g. background: {{Template:Yes2/bgcolor}};. Alternatively, the /bgcolor subpage may redirect to another color code subpage: #REDIRECT [[yes2/bgcolor]].
This way, pages that are using these templates may also use {{legend}} and similar templates which can reference the actual color: {{legend|{{yes2/bgcolor}}|supported}}
TemplateData
TemplateData for Table cell templates
Lua error: Internal error: The interpreter exited with status 1.
One of several templates for styling individual table cells with standard contents and colors.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| text | 1 | text to be displayed instead of the default; if this doesn't work put the text after the template, possibly with a vertical bar | in between
| Content | optional |
| horizontal align | align | text alignment inside the cell, either 'left', 'right', 'center' or 'justified'
| String | optional |
| style | style | a semicolon-separated list of additional CSS rules to be applied to the table cell
| String | optional |
| background color | color | a valid CSS color value or name to override the standard cell background, only available with some templates
| Line | optional |
See also
- {{Change}} – calculates, displays and color-codes changes between two values
- {{BSD-lic}} – specialized redirect for Lua error: Internal error: The interpreter exited with status 1.
- {{GPL-lic}} – specialized redirect for Lua error: Internal error: The interpreter exited with status 1.
- {{LGPL-lic}} – specialized redirect for Lua error: Internal error: The interpreter exited with status 1.
Notes
- ^ The HTML class of table cell templates may be referenced in a user stylesheet to change appearance.
- ^ a b Does not take a parameter; the content should be placed after the template call, separated by a pipe (|) character.
Lua error: Internal error: The interpreter exited with status 1.