Mal:Active fire
| Aktif () |
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.
If you want to use other attributes for the table cells, e.g. colspan or rowspan, they need to be put before the template call and there must be no vertical bar | in between them:
| Inggih | Nénten | N/A |
|---|---|---|
| Inggih/Ten | ||
...
!{{Yes}} ||{{No}} ||rowspan=2 {{n/a}}
|-
|colspan=2 {{Yes-No}}
...
Templates in this series
[uah wit]| Class[1] | Default | Customized | ||
|---|---|---|---|---|
| Syntax | Preview | Syntax | Preview | |
| table-rh | {{rh}} | Row header[2] |
Row header | {{rh|align=right}} | Row header |
Row header |
{{rh2}} | Row header[2] |
Row header | {{rh2|align=center}} | Row header |
Row header | |
| table-yes | {{yes}} |
Inggih | {{yes|customized [[Plain text|text]]}} |
customized text |
{{yes C}} |
{{yes C|customized [[Plain text|text]]}} |
|||
{{yes O}} |
{{yes O|customized [[Plain text|text]]}} |
|||
{{yes N}} |
Yes | {{yes N|customized [[Plain text|text]]}} |
customized text | |
| table-maybe | {{maybe}} |
Maybe | {{maybe|customized [[Plain text|text]]}} |
customized text |
| table-no | {{no}} |
Nénten | {{no|customized [[Plain text|text]]}} |
customized text |
{{no O}} |
Mal:No O | {{no O|customized [[Plain text|text]]}} |
Mal:No O | |
{{no X}} |
Mal:No X | {{no X|customized [[Plain text|text]]}} |
Mal:No X | |
{{eliminated}} |
Eliminated | {{eliminated|dropped out}} |
dropped out | |
{{lost}} |
Mal:Lost | {{lost|missing}} |
Mal:Lost | |
{{active fire}}[3] |
Aktif () | {{active fire|12%}} |
Aktif (12%) | |
{{member inactive}} |
Mal:Member inactive | {{member inactive}} (Last active 2017) |
Mal:Member inactive (Last active 2017) | |
{{safe}} |
Mal:Safe | {{safe|protected}} |
Mal:Safe | |
{{no Y}} |
Mal:No Y | {{no Y|customized [[plain text|text]]}} |
Mal:No Y | |
| table-active | {{active}} |
Mal:Active | {{active|live}} |
Mal:Active |
| table-siteactive | {{site active}} |
Active | {{site active|up}} |
up |
{{coming soon}} |
Coming soon | {{coming soon|second half of the year}} |
second half of the year | |
| table-siteinactive | {{site inactive}} |
Inactive | {{site inactive|down}} |
down |
| table-success | {{success}} |
Mal:Success | {{success|mission complete}} |
Mal:Success |
{{operational}} |
Mal:Operational | {{operational|returning data}} |
Mal:Operational | |
| table-failure | {{failure}} |
Mal:Failure | {{failure|wrong orbit}} |
Mal:Failure |
| table-yes2 | {{yes2}} |
{{yes2|text}} |
text | |
{{good}} |
Good | {{good|A}} |
A | |
{{ya}} |
{{ya|text=ya}} |
ya | ||
{{ya|Ya}} |
{{ya|text|link=WP:ALT}} |
|||
{{yan}} |
Mal:Yan | {{yan|text=ya}} |
Mal:Yan | |
{{won}} |
Jayanti | {{won|text=white|color=darkblue|winner}} |
winner | |
{{won|place=1}} |
1 | {{won|place=gold}} |
gold | |
{{won|place=2}} |
2 | {{won|place=silver}} |
silver | |
{{won|place=3}} |
3 | {{won|place=bronze}} |
bronze | |
{{WinDL}} |
Mal:WinDL | {{WinDL|win}} |
Mal:WinDL | |
{{WinDL|res=D}} |
Mal:WinDL | {{WinDL|res=draw}} |
Mal:WinDL | |
{{WinDL|res=L}} |
Mal:WinDL | {{WinDL|res=loss}} |
Mal:WinDL | |
| table-no2 | {{no2}} |
{{no2|text}} |
text | |
{{na}} |
{{na|text=na}} |
na | ||
{{na|Na}} |
{{na|text|link=WP:ALT}} |
|||
{{nan}} |
Mal:Nan | {{nan|text=na}} |
Mal:Nan | |
{{nom}} |
Nominasi | {{nom|5}} |
5 | |
{{notnom}} |
Mal:Notnom | {{notnom|not selected}} |
Mal:Notnom | |
{{shortlisted}} |
Mal:Shortlisted | {{shortlisted|proposed}} |
Mal:Shortlisted | |
{{longlisted}} |
Mal:Longlisted | {{longlisted|rejected}} |
Mal:Longlisted | |
{{TBA}} |
TBA | {{TBA|to be announced}} |
to be announced | |
| table-partial | {{partial}} |
Partial | {{partial|almost done}} |
almost done |
{{Regional}} |
Mal:Regional | {{Regional|Uyghur}} |
Mal:Regional | |
{{MaybeCheck}} |
Mal:MaybeCheck | {{MaybeCheck|text=possibly}} |
Mal:MaybeCheck | |
{{MaybeCheck|possibly}} |
Mal:MaybeCheck | {{MaybeCheck|text|link=WP:ALT}} |
Mal:MaybeCheck | |
{{partial success}} |
Mal:Partial success | {{partial success| |
Mal:Partial success | |
{{partial failure}} |
Mal:Partial failure | {{partial failure|[[Cubesat]] not deployed}} |
Mal:Partial failure | |
{{okay}} |
Neutral | {{okay|C}} |
C | |
{{Yes-No}} |
Inggih/Ten | {{Yes-No|yes with an if; no with a but}} |
yes with an if; no with a but | |
{{some}} |
Some | {{some|many}} |
many | |
{{pending}} |
Durung kaputusang | {{pending|awaiting}} |
awaiting | |
{{sometimes}} |
Mal:Sometimes | {{sometimes|occasionally}} |
Mal:Sometimes | |
{{rarely}} |
Mal:Rarely | {{rarely|seldom}} |
Mal:Rarely | |
{{usually}} |
Mal:Usually | {{usually|commonly}} |
Mal:Usually | |
{{unofficial}} |
Mal:Unofficial | {{unofficial|''de facto''}} |
Mal:Unofficial | |
{{unofficial2}} |
Mal:Unofficial2 | {{unofficial2|''de facto''}} |
Mal:Unofficial2 | |
{{nonpartisan}} |
Mal:Nonpartisan | {{nonpartisan|impartial}} |
Mal:Nonpartisan | |
| table-any | {{any}} |
Sawilang | {{any|anyone}} |
anyone |
| table-automatic | {{perhaps}} |
Mal:Perhaps | {{perhaps|maybe}} |
Mal:Perhaps |
| table-draw | {{draw}} |
Mal:Draw | {{draw|1:1}} |
Mal:Draw |
| table-noAttempt | {{No attempt}} |
Mal:No attempt | {{No attempt|No landing attempted}} |
Mal:No attempt |
| table-na | {{n/a}} |
N/A | {{n/a|unavailable}} |
unavailable |
{{varies}} |
Mal:Varies | {{varies|differs}} |
Mal:Varies | |
{{non-album single}}[4] |
Mal:Non-album single | {{non-album single|EP}} |
Mal:Non-album single | |
{{unreleased}} |
Mal:Unreleased | {{unreleased|shelved}} |
Mal:Unreleased | |
{{BLACK}} |
N/A | {{BLACK|banned}} |
banned | |
{{sdash}} |
Mal:Sdash | {{sdash}} |
Mal:Sdash | |
{{vacant}} |
Mal:Vacant | {{vacant|missing}} |
Mal:Vacant | |
| table-unknown | {{unknown}} |
Unknown | {{unknown|?}} |
? |
{{dunno}} |
? | {{dunno|not sure}} |
not sure | |
| table-included | {{included}} |
Included | {{included|incorporated}} |
incorporated |
| noresult | {{no result}} |
Mal:No result | {{no result|NR}} |
Mal:No result |
| table-planned | {{planned}} |
Mal:Planned | {{planned|July 2028}} |
Mal:Planned |
| table-scheduled | {{scheduled}} |
Mal:Scheduled | {{scheduled|3 March 2027}} |
Mal:Scheduled |
| table-software[5] | {{beta}} |
Beta | {{beta|preview}} |
preview |
{{table-experimental}} |
Mal:Table-experimental | {{table-experimental|lab}} |
Mal:Table-experimental | |
{{nightly}} |
Mal:Nightly | {{nightly|dev}} |
Mal:Nightly | |
{{release-candidate}} |
Mal:Release-candidate | {{release-candidate|RC}} |
Mal:Release-candidate | |
{{open source}} |
Mal:Open source | {{open source|software libre}} |
Mal:Open source | |
{{free}} |
Mal:Free | {{free|empty}} |
Mal:Free | |
{{proprietary}} |
Mal:Proprietary | {{proprietary|custom extension}} |
Mal:Proprietary | |
{{nonfree}} |
Mal:Nonfree | {{nonfree|paid}} |
Mal:Nonfree | |
{{needs}} |
Mal:Needs | {{needs|req.}} |
Mal:Needs | |
| table-depends | {{depends}} |
Depends | {{depends|vendor-defined}} |
vendor-defined |
| table-dropped | {{dropped}} |
Dropped | {{dropped|discontinued}} |
discontinued |
{{terminated}} |
Terminated | {{terminated|fired}} |
fired | |
| incorrect | {{incorrect}} |
Mal:Incorrect | {{incorrect|wrong}} |
Mal:Incorrect |
| table-debate | {{D-P}} |
Mal:D-P | {{D-P|present}} |
Mal:D-P |
{{D-A}} |
Mal:D-A | {{D-A|absent}} |
Mal:D-A | |
{{D-I}} |
Mal:D-I | {{D-I|invited}} |
Mal:D-I | |
{{D-O}} |
Mal:D-O | {{D-O|other debate}} |
Mal:D-O | |
{{D-N}} |
Mal:D-N | {{D-N|not invited}} |
Mal:D-N | |
{{D-Nv}} |
Mal:D-Nv | {{D-Nv|not voting}} |
Mal:D-Nv | |
{{D-W}} |
Mal:D-W | {{D-W|withdrawn}} |
Mal:D-W | |
{{D-Out}} |
Mal:D-Out | {{D-Out|out of race}} |
Mal:D-Out | |
| table-cast[6] | {{CMain}} |
Utama | {{CMain|text}} |
text |
{{CAlso starring}} |
Mal:CAlso starring | {{CAlso starring|costar}} |
Mal:CAlso starring | |
{{CRecurring}} |
Mal:CRecurring | {{CRecurring|regular guest}} |
Mal:CRecurring | |
{{CGuest}} |
Tamiu | {{CGuest|victim}} |
victim | |
{{COther}} |
Mal:COther | {{COther|ensemble}} |
Mal:COther | |
{{CNone}} |
Mal:CNone | {{CNone|cast}} |
Mal:CNone | |
{{CRemoved}} |
Mal:CRemoved | {{CRemoved|edited}} |
Mal:CRemoved | |
{{CFinalist}} |
Mal:CFinalist | {{CFinalist|contender}} |
Mal:CFinalist | |
{{CFinalist|place=3rd Place}} |
Mal:CFinalist | {{CFinalist|place=third place}} |
Mal:CFinalist | |
{{exempt}} |
Mal:Exempt | {{exempt|exe}} |
Mal:Exempt | |
{{Black Exempt}} |
Mal:Black Exempt | {{Black Exempt|lack}} |
Mal:Black Exempt | |
{{nocontest}} |
Mal:Nocontest | {{nocontest|rescheduled}} |
Mal:Nocontest | |
{{Runner-up}} |
Mal:Runner-up | {{Runner-up|2nd Place}} |
Mal:Runner-up | |
{{Quit}} |
Mal:Quit | {{Quit|left}} |
Mal:Quit | |
| table-IUCN[7] | {{IUCN-EX}} |
Mal:IUCN-EX | {{IUCN-EX|Extinct}} |
Mal:IUCN-EX |
{{IUCN-CR}} |
Mal:IUCN-CR | {{IUCN-CR|Critically Endangered}} |
Mal:IUCN-CR | |
{{IUCN-EN}} |
Mal:IUCN-EN | {{IUCN-EN|Endangered}} |
Mal:IUCN-EN | |
{{IUCN-VU}} |
Mal:IUCN-VU | {{IUCN-VU|Vulnerable}} |
Mal:IUCN-VU | |
{{IUCN-NT}} |
Mal:IUCN-NT | {{IUCN-NT|Near-Threatened}} |
Mal:IUCN-NT | |
{{IUCN-LC}} |
Mal:IUCN-LC | {{IUCN-LC|Least Concern}} |
Mal:IUCN-LC | |
{{IUCN-DD}} |
Mal:IUCN-DD | {{IUCN-DD|Data Deficient}} |
Mal:IUCN-DD | |
| no class | {{not yet}} |
Mal:Not yet | {{not yet|NY}} |
Mal:Not yet |
{{optional}} |
Mal:Optional | {{optional|non-mandatory}} |
Mal:Optional | |
{{shade|100}}% |
Mal:Shade% | {{shade|color=blue|100}}% |
Mal:Shade% | |
{{shade|75}}% |
Mal:Shade% | {{shade|color=blue|75|73–78}}% |
Mal:Shade% | |
{{shade|25}}% |
Mal:Shade% | {{shade|color=blue|25|{{val|25|2|u=%}}}} |
Mal:Shade | |
{{shade|0}}% |
Mal:Shade% | {{shade|color=blue|0}}% |
Mal:Shade% | |
{{CellCategory|1}} |
Mal:CellCategory | {{CellCategory|1|Group A}} |
Mal:CellCategory | |
{{CellCategory|2}} |
Mal:CellCategory | {{CellCategory|2|Group B|align=tc}} |
Mal:CellCategory | |
{{CellCategory|3}} |
Mal:CellCategory | {{CellCategory|3|Group C|align=tr}} |
Mal:CellCategory | |
Code
[uah wit]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: #f99; color: black; vertical-align: middle; text-align: center; " class="no table-no"|Aktif ()
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}}}.
See also
[uah wit]- {{multiplayer}}
- {{GPL-lic}}
- {{chg}}: calculate and display changes between two values
Notes
[uah wit]- ↑ 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 Mal:WikiProject link.
- ↑ This template is related to Mal:WikiProject link.
- ↑ This group of templates is related to Mal:WikiProject link.
- ↑ This group of templates is related to Mal:WikiProject link.
- ↑ This group of templates is related to Mal:WikiProject link.
| The above Dokumentasi is transcluded from Mal:Active fire/doc. (obah | lelintihan) Editors can experiment in this template's sandbox (ngae | mirror) and testcases (ngae) pages. Please add categories to the /doc subpage. Subpages of this template. |