Jump to content

Template:CategoryTable: Difference between revisions

From PokeHero Official Wiki
Created page with "<translate>{{TemplateUsage |usage=<pre>{{CategoryTable|Category|Text}}</pre> |description=Creates a table cell which links to a {{TransLink|Move category|Move category}} article with the corresponding type color background. <b>Text</b> parameter is optional. It overrides the link's text. }}</translate> <onlyinclude>| style="text-align:center; background:#{{{{{1}}}Color}}"|{{TransLink|{{{1}}} move|{{Color|{{{1}}} textcolor|{{{2|{{{1}}}}}}}}}}</onlyinclude> {{BulbAttrib|..."
 
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<translate>{{TemplateUsage
<translate><!--T:1-->
|usage=<pre>{{CategoryTable|Category|Text}}</pre>
{{TemplateUsage
|description=Creates a table cell which links to a {{TransLink|Move category|Move category}} article with the corresponding type color background.
|usage=<pre>{{CategoryTable|Category|Colspan}}</pre>
<b>Text</b> parameter is optional. It overrides the link's text.
|description=Creates a table cell which links to a {{TransLink|Move category|Move category}} article with the corresponding category color background.
<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|{{{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)]]