Template:ArticleStrip: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
m (Protected "Template:ArticleStrip": Changing this template will break others: Not sure why, but cascading template:TitleSort didn't seem to work. ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
m (+ lock)
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>[[category:coding utility templates]]{{documentation}}</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>

Revision as of 19:08, 3 April 2011

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.
LockedTab.png