Template:Name: Difference between revisions
From Absit Omen Lexicon
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#Switch:{{#explode:{{PAGENAME}}| |-2}}|Ó=O |St.= | <includeonly>{{#Switch:{{#explode:{{PAGENAME}}| |-2}}|Ó=O |St.|de={{#explode:{{PAGENAME}}| |-2}} }} {{#Switch:{{#explode:{{PAGENAME}}| |-1}}|I|II|III|IV|V|VI|VII|VIII|IX|X|Jr.|Sr.={{#explode:{{PAGENAME}}| |-2}}, {{#explode:{{PAGENAME}}| |0}}, {{#explode:{{PAGENAME}}| |-1}}|#default={{#explode:{{PAGENAME}}| |-1}}, {{#explode:{{PAGENAME}}| |0}} }}</includeonly><noinclude> | ||
This template takes the last word of the page name and the first word of the page name and outputs them as "LastWord, FirstWord." Used for automatically formatting names for category sorts. Also is used in [[Template:Year]] in the category sorts. | This template takes the last word of the page name and the first word of the page name and outputs them as "LastWord, FirstWord." Used for automatically formatting names for category sorts. Also is used in [[Template:Year]] in the category sorts. | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 21:26, 24 October 2012
This template takes the last word of the page name and the first word of the page name and outputs them as "LastWord, FirstWord." Used for automatically formatting names for category sorts. Also is used in Template:Year in the category sorts.