Template:Table cell templates: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Gyrobo
m (Fixed text align.)
m (120 revisions imported)
 
(18 intermediate revisions by 15 users not shown)
Line 1: Line 1:
<noinclude>{{Documentation subpage}}</noinclude>
<noinclude>
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
{|
These templates are designed to be used in a [[Help:Table|table]] to make a cell with text in that cell, with an appropriately coloured background.  They are commonly used in [[:Category:Comparisons|comparison tables]].
|</noinclude>{{#if:{{{sort|}}}|data-sort-value="<nowiki>{{{sort|</nowiki>{{{sort}}}<nowiki>}}}</nowiki>"}} style="background: {{{bg|<nowiki>{{/bgcolor}}</nowiki>}}}; color: {{{color|black}}}; vertical-align: {{{valign|middle}}}; text-align: <nowiki>{{{align|</nowiki>{{{align|center}}}<nowiki>}}}</nowiki>; <nowiki>{{{style|text-transform: capitalize;}}}</nowiki>" class="{{{class|{{BASEPAGENAME}}}}} table-{{{class|{{BASEPAGENAME}}}}}"| <nowiki>{{{1|</nowiki>{{{text}}}<nowiki>}}}</nowiki><noinclude>
 
For example, <code>{{tl|yes}}</code> makes a cell with a green background; the text in the cell is taken from the [[Help:Template#Parameters|template parameter]] and defaults to "Yes".
 
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 <code>Dropped</code>, change that to <code><nowiki>{{{1|Dropped}}}</nowiki></code>.
 
=== Common code ===
 
<code>style="background: #<var>abcdef</var>; color: black; vertical-align: middle; text-align: <nowiki>{{{align|left}}}; {{{style|}}}</nowiki>" class="<var>xxx</var> table-<var>xxx</var>"|<nowiki>{{{</nowiki>1|<var>xxx</var>}}}</code>
 
===Templates in this series===
{| class="wikitable"
|+ Table cell templates
! Class<ref name="table-cell-templates-table-css">The HTML class of table cell templates may be referenced in a [[m:help:User style|user stylesheet]] to change appearance.</ref> !! Template !! Preview !! Preview, alternative
|-
|rowspan=2| <code>table-rh</code> || {{tl|rh}} | Row header || {{rh}} | Row header ||
|-
| {{tl|rh2}}<ref name="table-cell-templates-table-after+pipe">Does not take a parameter; the content should be placed after the template call, separated by a pipe (|) character.</ref> | Row header || {{rh2}} | Row header ||
|-
| <code>table-yes</code> || {{tl|yes}}, {{tlp|yes|<nowiki>Alternative [[text]]</nowiki>}} || {{yes}} || {{yes|Alternative [[text]]}}
|-
|rowspan=3| <code>table-no</code> || {{tl|no}}, {{tlp|no|<nowiki>Alternative [[text]]</nowiki>}} || {{no}} || {{no|Alternative [[text]]}}
|-
| {{tl|BLACK}} || {{BLACK}} ||
|-
| {{tl|coming soon}} || {{coming soon}} ||
|-
| <code>table-siteactive</code> || {{tl|siteactive}} || {{siteactive}} ||
|-
| <code>table-siteinactive</code> || {{tl|siteinactive}} || {{siteinactive}} ||
|-
|rowspan=2| <code>table-yes2</code> || {{tl|yes2}}<ref name="table-cell-templates-table-after"/> Text || {{yes2}} Text ||
|-
| {{tl|won}}, {{tlp|won|5}} || {{won}} || {{won|5}}
|-
|rowspan=3| <code>table-no2</code> || {{tl|no2}}<ref name="table-cell-templates-table-after">Does not take a parameter; the content should be placed after the template call.</ref> Text || {{no2}} Text ||
|-
| {{tl|nom}}, {{tlp|nom|5}} || {{nom}} || {{nom|5}}
|-
| {{tl|sho}} || {{sho}} ||
|-
|rowspan=3| <code>table-partial</code> || {{tl|partial}} || {{partial}} ||
|-
| {{tl|yes-No}} || {{Yes-No}} ||
|-
| {{tl|some}} || {{some}} ||
|-
| <code>table-any</code> || {{tl|any}} || {{any}} ||
|-
| <code>table-na</code> || {{tl|n/a}} || {{n/a}} ||
|-
|rowspan=2| <code>table-unknown</code> || {{tl|dunno}} || {{dunno}} ||
|-
| {{tl|unk}} || {{unk}} ||
|-
| <code>table-depends</code> || {{tl|depends}}, {{tlp|depends|<nowiki>Alternative [[text]]</nowiki>}} || {{depends}} || {{depends|Alternative [[text]]}}
|-
| <code>table-included</code> || {{tl|included}} || {{included}} ||
|-
|rowspan=2| <code>table-dropped</code> || {{tl|dropped}} || {{dropped}} ||
|-
| {{tl|terminated}} || {{terminated}} ||
|-
|rowspan=2| <code>table-beta</code> || {{tl|beta}} || {{beta}} ||
|-
| {{tl|table-experimental}} || {{table-experimental}} ||
|-
| <code>table-free</code> || {{tl|free}}, {{tlp|free|<nowiki>Alternative [[text]]</nowiki>}} || {{free}} || {{free|Alternative [[text]]}}
|-
| <code>table-nonfree</code> || {{tl|nonfree}}, {{tlp|nonfree|<nowiki>Alternative [[text]]</nowiki>}} || {{nonfree}} || {{nonfree|Alternative [[text]]}}
|-
| <code>table-needs</code> || {{tl|needs}}, {{tlp|needs|<nowiki>Alternative [[text]]</nowiki>}} || {{needs}} || {{needs|Alternative [[text]]}}
|-
| ''no class'' || {{tl|incorrect}}, {{tlp|incorrect|<nowiki>Alternative [[text]]</nowiki>}} || {{incorrect}} || {{incorrect|Alternative [[text]]}}
|-
| ''no class'' || {{tl|no result}}, {{tlp|no result|N.R.}} || {{No result}} || {{No result|N.R.}}
|-
| ''no class'' || {{tl|pending}} || {{Pending}} ||
|-
| <code>table-nightly</code> || {{tl|nightly}}, {{tlp|nightly|<nowiki>Alternative [[text]]</nowiki>}} || {{nightly}} || {{nightly|Alternative [[text]]}}
|-
| ''no class'' || {{tl|?}}<ref name="table-cell-templates-table-noparam">Does not take a parameter; not really a table cell template at all, but here for completeness</ref> || {{?}} ||
|}
|}
 
{{Documentation}}
=== See also ===
* {{tl|multiplayer}}
* {{tl|proprietary}}
* {{tl|GPL-lic}}
 
===Notes===
{{Reflist}}
 
<noinclude>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Table cell templates]]
[[Category:Table cell templates]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[es:Plantilla:Celda de tabla de plantillas]]
[[ca:Plantilla:Plantilles per les cel·les de les taules]]
[[eo:Ŝablono:Jes ne]]
[[hsb:Předłoha:Haj ně]]
[[ja:Template:Table cell templates]]
[[ko:틀:모름]]
[[zh:Template:Table cell templates]]
</noinclude>
</noinclude>

Latest revision as of 13:30, 3 September 2020

{{{1|{{{text}}}}}}