Template:ItemStripper: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>{{#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>
<includeonly>
{{#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>

Latest revision as of 21:38, 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.