Template:ArticleStrip: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
(original code from w:c:eq2:template:AAnThe) |
m (Robot: Cosmetic changes) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq: {{#pos:{{urlencode:{{lc:{{{1}}}}}}}|the+}} | 0 | {{#sub:{{{1}}}|4|{{#expr:{{#len:{{{1}}}}} - 4}}}} | {{#ifeq: {{#pos:{{urlencode:{{lc:{{{1}}}}}}}|a+}} | 0 | {{#sub:{{{1}}}|2|{{#expr:{{#len:{{{1}}}}} - 2}}}} | {{#ifeq: {{#pos:{{urlencode:{{lc:{{{1}}}}}}}|an+}} | 0 | {{#sub:{{{1}}}|3|{{#expr:{{#len:{{{1}}}}} - 3}}}} | {{{1}}} }} }} }}</includeonly><noinclude>[[ | <includeonly>{{#ifeq: {{#pos:{{urlencode:{{lc:{{{1}}}}}}}|the+}} | 0 | {{#sub:{{{1}}}|4|{{#expr:{{#len:{{{1}}}}} - 4}}}} | {{#ifeq: {{#pos:{{urlencode:{{lc:{{{1}}}}}}}|a+}} | 0 | {{#sub:{{{1}}}|2|{{#expr:{{#len:{{{1}}}}} - 2}}}} | {{#ifeq: {{#pos:{{urlencode:{{lc:{{{1}}}}}}}|an+}} | 0 | {{#sub:{{{1}}}|3|{{#expr:{{#len:{{{1}}}}} - 3}}}} | {{{1}}} }} }} }}</includeonly><noinclude>[[Category:coding utility templates]]{{documentation}}{{lock}}</noinclude> |
Latest revision as of 20:29, 30 January 2012
Instructions for {{ArticleStrip}}
{{ArticleStrip}} is essentially the "guts" of {{TitleSort}}. It strips titles of any preceding articles (a, an, the). It doesn't need to be used directly, since placing {{TitleSort}} will take care of alphabetizing articles automatically. Note that placing {{ArticleStrip}} alone on a page won't do anything.