Template:CatStrip: Difference between revisions
From Jenny Everywhere Wiki
m (SOTO moved page Template:CategoryStrip to Template:CatStrip) |
(I will admit I don't fully know where I was going with this template, though I see now it was based on {{ArticleStrip}}. Anyhow, this simplification should still produce the same results.) |
||
Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>{{#switch:{{#explode:{{{1|{{PAGENAME}}}}}||0}} | ||
|Audio|Comic|Prose|Stage={{#sub:{{{1|{{PAGENAME}}}}}|6|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 6}}}} | |||
|TV={{#sub:{{{1|{{PAGENAME}}}}}|3|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 3}}}} | |||
|Television={{#sub:{{{1}}}|11|{{#expr:{{#len:{{{1}}}}} - 11}}}} | |||
|Video={{#ifeq:{{#explode:{{{1|{{PAGENAME}}}}}||1}}|game|{{#sub:{{{1|{{PAGENAME}}}}}|11|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 11}}}}|{{#sub:{{{1|{{PAGENAME}}}}}|6|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 6}}}}}} | |||
|#default={{PAGENAME}}<!--{{ArticleStrip|{{{1|{{PAGENAME}}}}}}}--> | |||
}}</includeonly><noinclude>[[Category:coding utility templates]]{{documentation}}{{lock}}</noinclude> |
Revision as of 02:53, 3 February 2019
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |