Jump to content

Template:CategoryTable: Difference between revisions

From PokeHero Official Wiki
No edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<translate><!--T:1-->
<translate><!--T:1-->
{{TemplateUsage
{{TemplateUsage
|usage=<pre>{{CategoryTable|Category|Text}}</pre>
|usage=<pre>{{CategoryTable|Category|Colspan}}</pre>
|description=Creates a table cell which links to a {{TransLink|Move category|Move category}} article with the corresponding type color background.
|description=Creates a table cell which links to a {{TransLink|Move category|Move category}} article with the corresponding category color background.
<b>Text</b> parameter is optional. It overrides the link's text.
<b>Colspan</b> parameter is optional (default value is 1). It specifies the number of columns the cell should span.
}}</translate>
}}</translate>


<onlyinclude>| style="text-align:center; background:#{{{{{1}}}Color}}"|{{TransLink|{{{1}}} move|{{Color|{{{1}}}TextColor|{{#invoke:Msg|msg|keywords|{{lc:{{{2|{{{1}}}}}}}}}}}}}}</onlyinclude>
<onlyinclude>| colspan="{{{Colspan|1}}}" style="text-align:center; background:#{{#invoke:Color|color|{{lc:{{{1}}}}}|color}}"|{{TransLink|{{{1}}} move|{{Color|{{#invoke:Color|color|{{lc:{{{1}}}}}|text}}|{{#invoke:Msg|msg|keywords|{{lc:{{{1}}}}}}}}}}}</onlyinclude>


{{BulbAttrib|Template:Statustable}}
{{BulbAttrib|Template:Typetable}}
[[Category:Table templates]]
[[Category:Table templates]]

Latest revision as of 17:57, 20 September 2025

Usage
{{CategoryTable|Category|Colspan}}
Description Creates a table cell which links to a Move category article with the corresponding category color background.

Colspan parameter is optional (default value is 1). It specifies the number of columns the cell should span.

| colspan="1" style="text-align:center; background:#pokehero-color-{{{1}}} (missing key in Module:Color/keywords)"|[[Special:MyLanguage/{{{1}}} move|pokehero-keywords-{{{1}}} (missing key in category keywords)]]