Padron:Won
Nanalo |
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.
Padron:Warnsign 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:
Oo | Hindi | — |
---|---|---|
Oo/Hindi |
... !{{Yes}} ||{{No}} ||rowspan=2 {{n/a}} |- |colspan=2 {{Yes-No}} ...
Templates
[baguhin ang wikitext]Class[1] | Default syntax | Preview (default) | Customized syntax | Preview (customized) |
---|---|---|---|---|
table-rh
|
{{rh}} | Row header[2] | Row header | {{rh|align=right}} | Row header | Row header |
{{rh2}} | Row header[2] | Row header | {{rh2|align=right}} | Row header | Row header | |
table-yes
|
{{yes}} | Oo | {{yes|customized [[plain text|text]]}} | customized text |
{{yes C}} | Oo | {{yes C|}} | ||
{{yes O}} | Oo | {{yes O|}} | ||
table-maybe
|
{{maybe}} | Siguro | {{maybe|customized [[plain text|text]]}} | customized text |
table-no
|
{{no}} | Hindi | {{no|customized [[plain text|text]]}} | customized text |
{{no O}} | Padron:No O | {{no O|}} | Padron:No O | |
{{no X}} | Padron:No X | {{no X|}} | Padron:No X | |
{{eliminated}} | Padron:Eliminated | {{eliminated|dropped out}} | Padron:Eliminated | |
{{active fire|12%}} | Padron:Active fire | |||
{{lost}} | Padron:Lost | {{lost|missing}} | Padron:Lost | |
{{safe}} | Padron:Safe | {{safe|protected}} | Padron:Safe | |
table-active
|
{{active}} | Padron:Active | {{active|live}} | Padron:Active |
table-siteactive
|
{{site active}} | Padron:Site active | {{site active|up}} | Padron:Site active |
{{coming soon}} | Padron:Coming soon | {{coming soon|second half of the year}} | Padron:Coming soon | |
table-siteinactive
|
{{site inactive}} | Padron:Site inactive | {{site inactive|down}} | Padron:Site inactive |
table-yes2
|
{{good}} | Padron:Good | {{good|A}} | Padron:Good |
{{yes2}} | {{yes2|text}} | |||
{{ya}} | {{ya|text=ya}} | |||
{{ya|Ya}} | {{ya|text|link=WP:ALT}} | |||
{{won}} | Nanalo | {{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}} | W | {{WinDL|win}} | win | |
{{WinDL|res=D}} | D | {{WinDL|res=draw}} | draw | |
{{WinDL|res=L}} | L | {{WinDL|res=loss}} | loss | |
table-no2
|
{{no2}} | {{no2|text}} | ||
{{na}} | {{na|text=na}} | |||
{{na|Na}} | {{na|text|link=WP:ALT}} | |||
{{nom}} | Nominado | {{nom|5}} | 5 | |
{{sho}} | Nalista | {{sho|proposed}} | proposed | |
{{longlisted}} | Padron:Longlisted | {{longlisted|rejected}} | Padron:Longlisted | |
{{TBA}} | iaanunsyo | {{TBA|to be announced}} | to be announced | |
table-success
|
{{success}} | Tagumpay | {{success|mission complete}} | mission complete |
{{operational}} | Nasa operasyon | {{operational|returning data}} | returning data | |
table-failure
|
{{failure}} | Bigo | {{failure|wrong orbit}} | wrong orbit |
table-partial
|
{{partial}} | Padron:Partial | {{partial|almost done}} | Padron:Partial |
{{Regional}} | Padron:Regional | {{Regional|Uyghur}} | Padron:Regional | |
{{MaybeCheck}} | Padron:MaybeCheck | {{MaybeCheck|text=possibly}} | Padron:MaybeCheck | |
{{MaybeCheck|possibly}} | Padron:MaybeCheck | {{MaybeCheck|text|link=WP:ALT}} | Padron:MaybeCheck | |
{{partial success}} | Padron:Partial success | {{partial success|reached orbit and returned pictures}} | Padron:Partial success | |
{{partial failure}} | Padron:Partial failure | {{partial failure|[[Cubesat]] not deployed}} | Padron:Partial failure | |
{{okay}} | Padron:Okay | {{okay|C}} | Padron:Okay | |
{{Yes-No}} | Oo/Hindi | {{Yes-No|yes with an if; no with a but}} | yes with an if; no with a but | |
{{some}} | Padron:Some | {{some|many}} | Padron:Some | |
{{nonpartisan}} | Padron:Nonpartisan | {{nonpartisan|impartial}} | Padron:Nonpartisan | |
{{pending}} | Nakabinbin | {{pending|awaiting}} | awaiting | |
{{unofficial}} | Padron:Unofficial | {{unofficial|''de facto''}} | Padron:Unofficial | |
{{unofficial2}} | Padron:Unofficial2 | {{unofficial2|''de facto''}} | Padron:Unofficial2 | |
{{usually}} | Padron:Usually | {{usually|commonly}} | Padron:Usually | |
{{rarely}} | Padron:Rarely | {{rarely|seldom}} | Padron:Rarely | |
{{sometimes}} | Padron:Sometimes | {{sometimes|occasionally}} | Padron:Sometimes | |
table-any
|
{{any}} | Padron:Any | {{any|anyone}} | Padron:Any |
table-na
|
{{n/a}} | — | {{n/a|unavailable}} | unavailable |
{{varies}} | Padron:Varies | {{varies|differs}} | Padron:Varies | |
{{sdash}} | — | {{sdash|[[File:Dash.svg|13px|link=|dash icon]]}} | ||
{{BLACK}} | Padron:BLACK | {{BLACK|banned}} | Padron:BLACK | |
{{non-album single}} | Padron:Non-album single | {{non-album single|EP}} | Padron:Non-album single | |
{{unreleased}} | Padron:Unreleased | {{unreleased|shelved}} | Padron:Unreleased | |
table-unknown
|
{{unknown}} | Unknown | {{unknown|?}} | ? |
{{dunno}} | ? | {{dunno|not sure}} | not sure | |
table-automatic
|
{{perhaps}} | Padron:Perhaps | {{perhaps|maybe}} | Padron:Perhaps |
table-depends
|
{{depends}} | Padron:Depends | {{depends|vendor-defined}} | Padron:Depends |
table-included
|
{{included}} | Padron:Included | {{included|incorporated}} | Padron:Included |
table-dropped
|
{{dropped}} | Padron:Dropped | {{dropped|discontinued}} | Padron:Dropped |
{{terminated}} | Padron:Terminated | {{terminated|fired}} | Padron:Terminated | |
table-beta
|
{{beta}} | Padron:Beta | {{beta|preview}} | Padron:Beta |
table-experimental
|
{{table-experimental}} | Padron:Table-experimental | {{table-experimental|lab}} | Padron:Table-experimental |
table-free
|
{{free}} | Malaya | {{free|empty}} | empty |
table-proprietary
|
{{proprietary}} | Padron:Proprietary | {{proprietary|custom extension}} | Padron:Proprietary |
table-nonfree
|
{{nonfree}} | Padron:Nonfree | {{nonfree|paid}} | Padron:Nonfree |
table-needs
|
{{needs}} | Padron:Needs | {{needs|req.}} | Padron:Needs |
table-nightly
|
{{nightly}} | Padron:Nightly | {{nightly|dev}} | Padron:Nightly |
table-release-candidate
|
{{release-candidate}} | Padron:Release-candidate | {{release-candidate|RC}} | Padron:Release-candidate |
table-draw
|
{{draw}} | {{draw|1:1}} | 1:1 | |
table-planned
|
{{planned}} | Pinagplano | {{planned|July 2028}} | July 2028 |
table-scheduled
|
{{scheduled}} | Padron:Scheduled | {{scheduled|3 March 2027}} | Padron:Scheduled |
incorrect
|
{{incorrect}} | Padron:Incorrect | {{incorrect|wrong}} | Padron:Incorrect |
noresult
|
{{no result}} | Padron:No result | {{no result|NR}} | Padron:No result |
table-debate
|
{{D-P}} | Padron:D-P | {{D-P|present}} | Padron:D-P |
{{D-A}} | Padron:D-A | {{D-A|absent}} | Padron:D-A | |
{{D-I}} | Padron:D-I | {{D-I|invited}} | Padron:D-I | |
{{D-O}} | Padron:D-O | {{D-O|invited to other debate}} | Padron:D-O | |
{{D-N}} | Padron:D-N | {{D-N|not invited}} | Padron:D-N | |
{{D-Nv}} | Padron:D-Nv | {{D-Nv|not voting}} | Padron:D-Nv | |
{{D-W}} | Padron:D-W | {{D-W|withdrawn}} | Padron:D-W | |
{{D-Out}} | Padron:D-Out | {{D-Out|out of race}} | Padron:D-Out | |
table-cast
|
{{CMain}} | Padron:CMain | {{CMain|text}} | Padron:CMain |
{{CAlso starring}} | Padron:CAlso starring | {{CAlso starring|costar}} | Padron:CAlso starring | |
{{CRecurring}} | Padron:CRecurring | {{CRecurring|regular guest}} | Padron:CRecurring | |
{{CGuest}} | Padron:CGuest | {{CGuest|victim}} | Padron:CGuest | |
{{COther}} | Padron:COther | {{COther|ensemble}} | Padron:COther | |
{{CNone}} | {{CNone|cast}} | cast | ||
{{CEmpty}} | Padron:CEmpty | |||
{{CRemoved}} | Padron:CRemoved | {{CRemoved|edited}} | Padron:CRemoved | |
{{CFinalist}} | Padron:CFinalist | {{CFinalist|text=white|color=darkblue|contender}} | Padron:CFinalist | |
{{CFinalist|place=3rd Place}} | Padron:CFinalist | {{CFinalist|place=third place}} | Padron:CFinalist | |
{{exempt}} | Padron:Exempt | {{Black Exempt}} | Padron:Black Exempt | |
{{nocontest}} | Padron:Nocontest | {{nocontest|rescheduled}} | Padron:Nocontest | |
{{Runner-up}} | Padron:Runner-up | {{Runner-up|2nd place}} | Padron:Runner-up | |
{{Quit}} | Padron:Quit | {{Quit|left}} | Padron:Quit | |
table-enroute
|
{{Enroute}} | Padron:Enroute | {{Enroute|via}} | Padron:Enroute |
no class | {{not yet}} | Padron:Not yet | {{not yet|NY}} | Padron:Not yet |
{{optional}} | Opsyonal | {{optional|non-mandatory}} | non-mandatory |
Code
[baguhin ang wikitext]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: #99FF99; color: black; vertical-align: middle; text-align: center; " class="yes table-yes2"|Nanalo
Creating new templates
[baguhin ang wikitext]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: center; " class="automatic table-automatic"| text
Color subpage
[baguhin ang wikitext]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
[baguhin ang wikitext]TemplateData ng Won
One of several templates for styling individual table cells with standard contents and colors.
Pangalan | Paglalarawan | Type | Katayuan | |
---|---|---|---|---|
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 the cell background, only available with some templates
| Line | optional |
See also
[baguhin ang wikitext]- {{Change}} – calculates, displays and color-codes changes between two values
- {{BSD-lic}} – specialized redirect for {{free}}
- {{GPL-lic}} – specialized redirect for {{free}}
- {{LGPL-lic}} – specialized redirect for {{free}}
Notes
[baguhin ang wikitext]- ↑ 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.