Template:ItemStripper: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(Created page with "{{#switch:{{#sub:{{{1}}}|0|2}} |a={{#sub:{{{1}}}|2|{{#len:{{{1}}}}} |an= {{#sub:{{{1}}}|0|3}} |an={{#sub:{{{1}}}|3|{{#len:{{{1}}}}} }} |so= {{#sub:{{{1}}}|0|5}} |some={{#...")
 
No edit summary
 
(12 intermediate revisions by the same user not shown)
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>
{{#switch:{{#sub:{{{1}}}|0|2}}
|a={{#sub:{{{1}}}|2|{{#len:{{{1}}}}}
|an=
{{#sub:{{{1}}}|0|3}}
|an={{#sub:{{{1}}}|3|{{#len:{{{1}}}}}
}}
|so=
{{#sub:{{{1}}}|0|5}}
|some={{#sub:{{{1}}}|5|{{#len:{{{1}}}}}
}}
}}<noinclude>{{cat|Templates}}</noinclude>

Latest revision as of 20: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.