Difference between revisions of "Template:PartsCatSub"

From TheKolWiki
Jump to: navigation, search
(vertices)
(belly)
Line 1: Line 1:
 
<includeonly>{{#if:{{{1|}}}|[[Category:Monsters With {{ucfirst:{{#switch:{{{1}}}
 
<includeonly>{{#if:{{{1|}}}|[[Category:Monsters With {{ucfirst:{{#switch:{{{1}}}
|berry|body|cherry|french fry|frequency|patty|rectory|underbelly={{#sub:{{{1}}}|0|{{#expr:{{#len:{{{1}}}}}-1}}}}ies
+
|belly|berry|body|cherry|french fry|frequency|patty|rectory|underbelly={{#sub:{{{1}}}|0|{{#expr:{{#len:{{{1}}}}}-1}}}}ies
 
|bass|box|branch|buttress|canvas|dish|garnish|pelvis|potato|thorax|vortex={{{1}}}es
 
|bass|box|branch|buttress|canvas|dish|garnish|pelvis|potato|thorax|vortex={{{1}}}es
 
|leaf|shelf={{#sub:{{{1}}}|0|{{#expr:{{#len:{{{1}}}}}-1}}}}ves
 
|leaf|shelf={{#sub:{{{1}}}|0|{{#expr:{{#len:{{{1}}}}}-1}}}}ves

Revision as of 14:48, 28 October 2020

A sub-template for {{PartsCat}}, this generates the category link for an individual monster part passed as the first argument.

Note that trim off leading/trailing space the argument should be passed as a named argument, like {{PartsCatSub|1=foo}} rather than just {{PartsCatSub|foo}}