Template:ItemStripper: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>{{#switch:{{lc:{{#sub:{{{1|}}}|0|2}}}}|a={{#sub:{{{1|}}}|2|{{#len:{{{1|}}}}}}}|an={{#switch:{{lc:{{#sub:{{{1|}}}|0|3}}}}|an={{#sub:{{{1|}}}|3|{{#len:{{{1|}}}}}}}|{{{1|}}}}}|so={{#switch:{{lc:{{#sub:{{{1|}}}|0|5}}}}|some={{#sub:{{{1|}}}|5|{{#len:{{{1|}}}}}}}|{{{1|}}}}}|th={{#switch:{{lc:{{#sub:{{{1|}}}|0|4}}}}|the={{#sub:{{{1|}}}|4|{{#len:{{{1|}}}}}}}|{{{1|}}}}}|{{{1}}}}}</includeonly><noinclude>A template that will take an item beginning with "a", "some", "the", or "an" and remove the beginning.{{cat|Templates}}</noinclude>
{{#if:{{{1|}}}
|{{ItemStripper2|{{{1|}}}
|start=
{{#switch:{{lc:{{#sub:{{{1|}}}|0|2}}}}
|a=2
|an={{#switch:{{lc:{{#sub:{{{1|}}}|0|3}}}}
|an=3
|and={{#switch:{{lc:{{#sub:{{{1|}}}|0|6}}}}
|and a=6
|and an={{#switch:{{lc:{{#sub:{{{1|}}}|0|7}}}}
|and an=7
|4
}}
|and so={{#switch:{{lc:{{#sub:{{{1|}}}|0|9}}}}
|and some=9
|4
}}
|and th={{#switch:{{lc:{{#sub:{{{1|}}}|0|8}}}}
|and the=8
|4
}}
|0
}}
|0
}}
|so={{#switch:{{lc:{{#sub:{{{1|}}}|0|5}}}}
|some=5
|0
}}
|th={{#switch:{{lc:{{#sub:{{{1|}}}|0|4}}}}
|the=4
|0
}}
|0
}}
}}
}}</includeonly><noinclude>A template that will take an item beginning with "a", "some", "the", or "an" and remove the beginning. It will also strip out begining "and"s and trailing periods.{{cat|Templates}}</noinclude>

Revision as of 20:24, 13 September 2013

A template that will take an item beginning with "a", "some", "the", or "an" and remove the beginning. It will also strip out begining "and"s and trailing periods.