Cebur nuju daging

Mal:Beta

Saking Wikipédia
Beta
Mal dokumentasi[cingak] [obah] [lelintihan] [purge]

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]
Table cell templates
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}} Inggih {{yes|Customized [[Plain text|text]]}} Customized text
{{ya}} Yes {{ya|Customized alt text}} Customized alt text
table-no {{no}} Nénten {{no|Customized [[Plain text|text]]}} Customized text
{{na}} No {{na|Customized alt text}} Customized alt text
{{coming soon}} Mal:Coming soon
{{bad}} Nénten {{bad|F}} F
{{eliminated}} Mal:Eliminated
table-siteactive {{site active}} Mal:Site active
table-siteinactive {{site inactive}} Mal:Site inactive
table-yes2 {{good}} Mal:Good {{good|A}} Mal:Good
{{yes2}} Mal:Yes2 {{yes2|Text}} Mal:Yes2
{{won}} Jayanti {{won|text=white}} Jayanti
{{won|place=1}} 1 {{won|place=Mas}} Mas
{{won|place=2}} 2 {{won|place=Pérak}} Pérak
{{won|place=3}} 3 {{won|place=perunggu}} Perunggu
table-no2 {{no2}} Mal:No2 {{no2|Text}} Mal:No2
{{nom}} Nominasi {{nom|5}} 5
{{sho}} Mal:Sho
{{TBA}} TBA {{TBA|To be announced}} To be announced
table-partial {{partial}} Mal:Partial {{partial|Almost done}} Mal:Partial
{{yes-No}} Inggih/Ten
{{okay}} Mal:Okay {{okay|C}} Mal:Okay
{{some}} Mal:Some
table-any {{any}} Sawilang
table-na {{n/a}} N/A
{{BLACK}} N/A
table-unknown {{dunno}} Mal:Dunno {{dunno|Custom [[Plain text|text]]}} Mal:Dunno
{{unknown}} Mal:Unknown {{unknown|?}} Mal:Unknown
table-depends {{depends}} Mal:Depends {{depends|Customized [[Plain text|text]]}} Mal:Depends
table-included {{included}} Mal:Included
table-dropped {{dropped}} Mal:Dropped
{{terminated}} Mal:Terminated
table-beta {{beta}} Beta
{{table-experimental}} Mal:Table-experimental {{table-experimental|Customized [[Plain text|text]]}} Mal:Table-experimental
table-maybe {{maybe}} Mal:Maybe {{maybe|Customized [[Plain text|text]]}} Mal:Maybe
table-free {{free}} Mal:Free {{free|Customized [[Plain text|text]]}} Mal:Free
table-proprietary {{proprietary}} Mal:Proprietary {{proprietary|Customized [[Plain text|text]]}} Mal:Proprietary
table-nonfree {{nonfree}} Mal:Nonfree {{nonfree|Customized [[Plain text|text]]}} Mal:Nonfree
table-needs {{needs}} Mal:Needs {{needs|Customized [[Plain text|text]]}} Mal:Needs
table-nightly {{nightly}} Mal:Nightly {{nightly|Customized [[Plain text|text]]}} Mal:Nightly
table-release-candidate {{release-candidate}} Mal:Release-candidate {{release-candidate|Customized [[Plain text|text]]}} Mal:Release-candidate
no class {{draw}} Mal:Draw {{draw|Text}} Mal:Draw
no class {{incorrect}} Mal:Incorrect {{incorrect|Customized [[Plain text|text]]}} Mal:Incorrect
no class {{no result}} Mal:No result {{no result|N.R.}} Mal:No result
no class {{pending}} Durung kaputusang
no class {{unofficial}} Mal:Unofficial
no class {{usually}} Mal:Usually
no class {{rarely}} Mal:Rarely
no class {{sometimes}} Mal:Sometimes
no class {{CMain}} Utama
no class {{CRecurring}} Mal:CRecurring
no class {{CGuest}} Tamiu
no class {{active fire}} Aktif (12%)
no class {{contained}} Mal:Contained

Code

[uah wit]

Common code to most if not all the templates in this series:

Mal:Table cell templates

Code specific to this template:

style="background: #E7E7FF; vertical-align: middle; text-align: center; " class="beta table-beta"|Beta

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]

Notes

[uah wit]
  1. The HTML class of table cell templates may be referenced in a user stylesheet to change appearance.
  2. 2,0 2,1 Does not take a parameter; the content should be placed after the template call, separated by a pipe (|) character.