Template:CatStrip: Difference between revisions
From Jenny Everywhere Wiki
(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.) |
m (11 revisions imported) Tags: Mobile edit Mobile web edit |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{#explode:{{{1|{{PAGENAME}}}}}||0}} | <includeonly>{{#switch:{{#explode:{{{1|{{PAGENAME}}}}}||0}} | ||
|Individual={{#sub:{{{1|{{PAGENAME}}}}}|11|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 11}}}} | |||
|Human={{#sub:{{{1|{{PAGENAME}}}}}|6|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 6}}}} | |||
|Residents={{#ifeq:{{#explode:{{{1|{{PAGENAME}}}}}||2}}|the|{{#sub:{{{1|{{PAGENAME}}}}}|17|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 17}}}}|{{#sub:{{{1|{{PAGENAME}}}}}|13|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 13}}}}}} | |||
|Doctor={{#ifeq:{{#explode:{{{1|{{PAGENAME}}}}}||1}}|Who|{{#sub:{{{1|{{PAGENAME}}}}}|11|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 11}}}}|<!--{{ArticleStrip|-->{{{1|{{PAGENAME}}}}}<!--}}-->}} | |||
|Torchwood={{#sub:{{{1|{{PAGENAME}}}}}|10|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 10}}}} | |||
|SJA={{#sub:{{{1|{{PAGENAME}}}}}|4|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 4}}}} | |||
|Class={{#sub:{{{1|{{PAGENAME}}}}}|6|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 6}}}} | |||
|Audio|Comic|Prose|Stage={{#sub:{{{1|{{PAGENAME}}}}}|6|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 6}}}} | |Audio|Comic|Prose|Stage={{#sub:{{{1|{{PAGENAME}}}}}|6|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 6}}}} | ||
|TV={{#sub:{{{1|{{PAGENAME}}}}}|3|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 3}}}} | |TV={{#sub:{{{1|{{PAGENAME}}}}}|3|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 3}}}} | ||
|Television={{#sub:{{{1}}}|11|{{#expr:{{#len:{{{1}}}}} - 11}}}} | |Television={{#sub:{{{1|{{PAGENAME}}}}}|11|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 11}}}} | ||
|Documentary={{#sub:{{{1|{{PAGENAME}}}}}|12|{{#expr:{{#len:{{{1|{{PAGENAME}}}}}}} - 12}}}} | |||
|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}}}}}} | |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}}}}}}}--> | |||
|#default={{{1|{{PAGENAME}}}}}<!--{{ArticleStrip|{{{1|{{PAGENAME}}}}}}}--> | |||
}}</includeonly><noinclude>[[Category:coding utility templates]]{{documentation}}{{lock}}</noinclude> | }}</includeonly><noinclude>[[Category:coding utility templates]]{{documentation}}{{lock}}</noinclude> |
Latest revision as of 01:33, 13 August 2024
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. |