Template:Sometimes: Difference between revisions
m (1 revision imported) |
|
(No difference)
|
Latest revision as of 01:09, 6 August 2023
Sometimes |
Template:Documentation/start box2 Lua error: Internal error: The interpreter has terminated with signal "-129". 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. Most of these templates should not be used simply to produce a background color, use them according to their meaning.
For example, Lua error: Internal error: The interpreter has terminated with signal "-129". 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.
File:Ambox warning pn.svg 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 | Customized | ||
---|---|---|---|---|
Syntax | Preview | Syntax | Preview | |
table-rh
|
Row header[2] | Row header | Row header | Row header |
Row header[2] | Row header | Row header | Row header | |
table-yes
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Yes | Lua error: Internal error: The interpreter has terminated with signal "-129". | customized text |
Lua error: Internal error: The interpreter has terminated with signal "-129". | File:Green check.svg Yes | Lua error: Internal error: The interpreter has terminated with signal "-129". | File:Green check.svg customized text | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Yes | Lua error: Internal error: The interpreter has terminated with signal "-129". | customized text | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Yes | Lua error: Internal error: The interpreter has terminated with signal "-129". | customized text | |
table-maybe
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Maybe | Lua error: Internal error: The interpreter has terminated with signal "-129". | customized text |
table-no
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | No | Lua error: Internal error: The interpreter has terminated with signal "-129". | customized text |
Lua error: Internal error: The interpreter has terminated with signal "-129". | No | Lua error: Internal error: The interpreter has terminated with signal "-129". | customized text | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | No | Lua error: Internal error: The interpreter has terminated with signal "-129". | customized text | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Eliminated | Lua error: Internal error: The interpreter has terminated with signal "-129". | dropped out | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Lost | Lua error: Internal error: The interpreter has terminated with signal "-129". | missing | |
Lua error: Internal error: The interpreter has terminated with signal "-129".[3] | Active (12%) | |||
Lua error: Internal error: The interpreter has terminated with signal "-129". | Safe | Lua error: Internal error: The interpreter has terminated with signal "-129". | protected | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | No | Lua error: Internal error: The interpreter has terminated with signal "-129". | customized text | |
table-active
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Active | Lua error: Internal error: The interpreter has terminated with signal "-129". | live |
table-siteactive
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Active | Lua error: Internal error: The interpreter has terminated with signal "-129". | up |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Coming soon | Lua error: Internal error: The interpreter has terminated with signal "-129". | second half of the year | |
table-siteinactive
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Inactive | Lua error: Internal error: The interpreter has terminated with signal "-129". | down |
table-success
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Success | Lua error: Internal error: The interpreter has terminated with signal "-129". | mission complete |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Operational | Lua error: Internal error: The interpreter has terminated with signal "-129". | returning data | |
table-failure
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Failure | Lua error: Internal error: The interpreter has terminated with signal "-129". | wrong orbit |
table-yes2
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Lua error: Internal error: The interpreter has terminated with signal "-129". | text | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Good | Lua error: Internal error: The interpreter has terminated with signal "-129". | A | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Lua error: Internal error: The interpreter has terminated with signal "-129". | ya | ||
Lua error: Internal error: The interpreter has terminated with signal "-129". | Lua error: Internal error: The interpreter has terminated with signal "-129". | |||
Lua error: Internal error: The interpreter has terminated with signal "-129". | Lua error: Internal error: The interpreter has terminated with signal "-129". | ya | ||
Lua error: Internal error: The interpreter has terminated with signal "-129". | Won | Lua error: Internal error: The interpreter has terminated with signal "-129". | winner | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | 1 | Lua error: Internal error: The interpreter has terminated with signal "-129". | gold | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | 2 | Lua error: Internal error: The interpreter has terminated with signal "-129". | silver | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | 3 | Lua error: Internal error: The interpreter has terminated with signal "-129". | bronze | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | W | Lua error: Internal error: The interpreter has terminated with signal "-129". | win | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | D | Lua error: Internal error: The interpreter has terminated with signal "-129". | draw | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | L | Lua error: Internal error: The interpreter has terminated with signal "-129". | loss | |
table-no2
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Lua error: Internal error: The interpreter has terminated with signal "-129". | text | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Lua error: Internal error: The interpreter has terminated with signal "-129". | na | ||
Lua error: Internal error: The interpreter has terminated with signal "-129". | Lua error: Internal error: The interpreter has terminated with signal "-129". | |||
Lua error: Internal error: The interpreter has terminated with signal "-129". | Lua error: Internal error: The interpreter has terminated with signal "-129". | na | ||
Lua error: Internal error: The interpreter has terminated with signal "-129". | Nominated | Lua error: Internal error: The interpreter has terminated with signal "-129". | 5 | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Not nominated | Lua error: Internal error: The interpreter has terminated with signal "-129". | not selected | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Shortlisted | Lua error: Internal error: The interpreter has terminated with signal "-129". | proposed | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Longlisted | Lua error: Internal error: The interpreter has terminated with signal "-129". | rejected | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | TBA | Lua error: Internal error: The interpreter has terminated with signal "-129". | to be announced | |
table-partial
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Partial | Lua error: Internal error: The interpreter has terminated with signal "-129". | almost done |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Regional | Lua error: Internal error: The interpreter has terminated with signal "-129". | Uyghur | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Lua error: Internal error: The interpreter has terminated with signal "-129". | possibly | ||
Lua error: Internal error: The interpreter has terminated with signal "-129". | Lua error: Internal error: The interpreter has terminated with signal "-129". | |||
Lua error: Internal error: The interpreter has terminated with signal "-129". | Partial success | Lua error: Internal error: The interpreter has terminated with signal "-129". | reached orbit and returned pictures | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Partial failure | Lua error: Internal error: The interpreter has terminated with signal "-129". | Cubesat not deployed | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Neutral | Lua error: Internal error: The interpreter has terminated with signal "-129". | C | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Yes/No | Lua error: Internal error: The interpreter has terminated with signal "-129". | yes with an if; no with a but | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Some | Lua error: Internal error: The interpreter has terminated with signal "-129". | many | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Pending | Lua error: Internal error: The interpreter has terminated with signal "-129". | awaiting | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Sometimes | Lua error: Internal error: The interpreter has terminated with signal "-129". | occasionally | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Rarely | Lua error: Internal error: The interpreter has terminated with signal "-129". | seldom | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Usually | Lua error: Internal error: The interpreter has terminated with signal "-129". | commonly | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Unofficial | Lua error: Internal error: The interpreter has terminated with signal "-129". | de facto | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Unofficial | Lua error: Internal error: The interpreter has terminated with signal "-129". | de facto | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Nonpartisan | Lua error: Internal error: The interpreter has terminated with signal "-129". | impartial | |
table-any
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Any | Lua error: Internal error: The interpreter has terminated with signal "-129". | anyone |
table-automatic
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Perhaps | Lua error: Internal error: The interpreter has terminated with signal "-129". | maybe |
table-draw
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Lua error: Internal error: The interpreter has terminated with signal "-129". | 1:1 | |
table-noAttempt
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | No attempt | Lua error: Internal error: The interpreter has terminated with signal "-129". | No landing attempted |
table-na
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | — | Lua error: Internal error: The interpreter has terminated with signal "-129". | unavailable |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Varies | Lua error: Internal error: The interpreter has terminated with signal "-129". | differs | |
Lua error: Internal error: The interpreter has terminated with signal "-129".[4] | Non-album single | Lua error: Internal error: The interpreter has terminated with signal "-129". | Non-album single | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Unreleased | Lua error: Internal error: The interpreter has terminated with signal "-129". | shelved | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | N/A | Lua error: Internal error: The interpreter has terminated with signal "-129". | banned | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | — | Lua error: Internal error: The interpreter has terminated with signal "-129". | ||
Lua error: Internal error: The interpreter has terminated with signal "-129". | Vacant | Lua error: Internal error: The interpreter has terminated with signal "-129". | missing | |
table-unknown
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Unknown | Lua error: Internal error: The interpreter has terminated with signal "-129". | ? |
Lua error: Internal error: The interpreter has terminated with signal "-129". | ? | Lua error: Internal error: The interpreter has terminated with signal "-129". | not sure | |
table-included
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Included | Lua error: Internal error: The interpreter has terminated with signal "-129". | incorporated |
noresult
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | No result | Lua error: Internal error: The interpreter has terminated with signal "-129". | NR |
table-planned
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Planned | Lua error: Internal error: The interpreter has terminated with signal "-129". | July 2028 |
table-scheduled
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Scheduled | Lua error: Internal error: The interpreter has terminated with signal "-129". | 3 March 2027 |
table-software [5]
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Beta | Lua error: Internal error: The interpreter has terminated with signal "-129". | preview |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Experimental | Lua error: Internal error: The interpreter has terminated with signal "-129". | lab | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Nightly build | Lua error: Internal error: The interpreter has terminated with signal "-129". | dev | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Release candidate | Lua error: Internal error: The interpreter has terminated with signal "-129". | RC | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Open source | Lua error: Internal error: The interpreter has terminated with signal "-129". | software libre | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Free | Lua error: Internal error: The interpreter has terminated with signal "-129". | empty | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Proprietary | Lua error: Internal error: The interpreter has terminated with signal "-129". | custom extension | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Non-free | Lua error: Internal error: The interpreter has terminated with signal "-129". | paid | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Needs | Lua error: Internal error: The interpreter has terminated with signal "-129". | req. | |
table-depends
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Depends | Lua error: Internal error: The interpreter has terminated with signal "-129". | vendor-defined |
table-dropped
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Dropped | Lua error: Internal error: The interpreter has terminated with signal "-129". | discontinued |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Terminated | Lua error: Internal error: The interpreter has terminated with signal "-129". | fired | |
incorrect
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Incorrect | Lua error: Internal error: The interpreter has terminated with signal "-129". | wrong |
table-debate
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | P | Lua error: Internal error: The interpreter has terminated with signal "-129". | present |
Lua error: Internal error: The interpreter has terminated with signal "-129". | A | Lua error: Internal error: The interpreter has terminated with signal "-129". | absent | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | I | Lua error: Internal error: The interpreter has terminated with signal "-129". | invited | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | O | Lua error: Internal error: The interpreter has terminated with signal "-129". | invited to other debate | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | N | Lua error: Internal error: The interpreter has terminated with signal "-129". | not invited | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | NV | Lua error: Internal error: The interpreter has terminated with signal "-129". | not voting | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | W | Lua error: Internal error: The interpreter has terminated with signal "-129". | withdrawn | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Out | Lua error: Internal error: The interpreter has terminated with signal "-129". | out of race | |
table-cast [6]
|
Lua error: Internal error: The interpreter has terminated with signal "-129". | Main | Lua error: Internal error: The interpreter has terminated with signal "-129". | text |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Also starring | Lua error: Internal error: The interpreter has terminated with signal "-129". | costar | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Recurring | Lua error: Internal error: The interpreter has terminated with signal "-129". | regular guest | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Guest | Lua error: Internal error: The interpreter has terminated with signal "-129". | victim | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Lua error: Internal error: The interpreter has terminated with signal "-129". | ensemble | ||
Lua error: Internal error: The interpreter has terminated with signal "-129". | Lua error: Internal error: The interpreter has terminated with signal "-129". | cast | ||
Lua error: Internal error: The interpreter has terminated with signal "-129". | ||||
Lua error: Internal error: The interpreter has terminated with signal "-129". | removed | Lua error: Internal error: The interpreter has terminated with signal "-129". | edited | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Finalist | Lua error: Internal error: The interpreter has terminated with signal "-129". | contender | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | 3rd Place | Lua error: Internal error: The interpreter has terminated with signal "-129". | third place | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | exempt | Lua error: Internal error: The interpreter has terminated with signal "-129". | B.Exempt | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Lua error: Internal error: The interpreter has terminated with signal "-129". | rescheduled | ||
Lua error: Internal error: The interpreter has terminated with signal "-129". | Runner-up | Lua error: Internal error: The interpreter has terminated with signal "-129". | 2nd Place | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Quit | Lua error: Internal error: The interpreter has terminated with signal "-129". | left | |
no class | Lua error: Internal error: The interpreter has terminated with signal "-129". | Not yet | Lua error: Internal error: The interpreter has terminated with signal "-129". | NY |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Optional | Lua error: Internal error: The interpreter has terminated with signal "-129". | non-mandatory | |
Lua error: Internal error: The interpreter has terminated with signal "-129".% | 100% | Lua error: Internal error: The interpreter has terminated with signal "-129".% | 100% | |
Lua error: Internal error: The interpreter has terminated with signal "-129".% | 75% | Lua error: Internal error: The interpreter has terminated with signal "-129".% | 73–78% | |
Lua error: Internal error: The interpreter has terminated with signal "-129".% | 25% | Lua error: Internal error: The interpreter has terminated with signal "-129". | Lua error: Internal error: The interpreter has terminated with signal "-129". | |
Lua error: Internal error: The interpreter has terminated with signal "-129".% | 0% | Lua error: Internal error: The interpreter has terminated with signal "-129".% | 0% | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | 90 | Lua error: Internal error: The interpreter has terminated with signal "-129". | 90 | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | 58 | Lua error: Internal error: The interpreter has terminated with signal "-129". | 58 | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | 25 | Lua error: Internal error: The interpreter has terminated with signal "-129". | 25 | |
Lua error: Internal error: The interpreter has terminated with signal "-129". | Some text |
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}}}
Code specific to this template:
style="background: #FFB; vertical-align: middle; text-align: center; " class="partial table-partial"|Sometimes
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}}}
Choosing a color
When changing or creating a new template, follow the use of colour guidelines and the color accessibility guidelines when choosing the background color and, sometimes, the text color. Many of these templates can be used with links to other articles or references, so the links should be clearly identifiable against the background color. You can check contrast level using the WebAIM contrast checker by setting the foreground color to the blue link color. Contrast should be at the minimum WCAG AA level and, whenever possible, at WCAG AAA level. Wikipedia:Manual of Style/Accessibility/Colors has a set of colors that comply with WCAG AAA and WCAG AA for unvisited links and normal 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 Sometimes
Lua error: Internal error: The interpreter has terminated with signal "-129".
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 has terminated with signal "-129".
- {{GPL-lic}} – specialized redirect for Lua error: Internal error: The interpreter has terminated with signal "-129".
- {{LGPL-lic}} – specialized redirect for Lua error: Internal error: The interpreter has terminated with signal "-129".
- {{Active}} / {{No result}} / {{Eliminated}} for comparison tables
Notes
- ↑ The HTML class of table cell templates may be referenced in a user stylesheet to change appearance.
- ↑ 2.0 2.1 Does not take a parameter; the content should be placed after the template call, separated by a pipe (|) character.
- ↑ This template is related to WikiProject Wildfire.
- ↑ This template is related to WikiProject Songs.
- ↑ This group of templates is related to WikiProject Software.
- ↑ This group of templates is related to WikiProject Television.
Lua error: Internal error: The interpreter has terminated with signal "-129".