Template:Diocese fix: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
No edit summary
RB (talk | contribs)
No edit summary
Line 1: Line 1:
{{#vardefine:dtag|{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{1}}}|&|and}}|Saint|St}}|St.|St}}|Diocese of |}}|Presbytery of |}}}}
{{#vardefine:atag|{{#replace:{{#replace:{{#replace:{{{1}}}|&|and}}|Saint|St}}|St.|St}}}}<!--
{{#switch:{{#var:dtag}}
-->{{#vardefine:btag|{{#switch:{{#sub:{{#var:atag}}|0|10}}
|Diocese of={{#sub:{{#var:atag}}|11|{{#expr:{{#len:{{#var:atag}}}}-11}} }}
|Presbytery={{#sub:{{#var:atag}}|14|{{#expr:{{#len:{{#var:atag}}}}-14}} }}
|{{#var:atag}} }} }}<!--
-->{{#switch:{{#var:btag}}
|Dublin=Dublin and Glendalough
|Dublin=Dublin and Glendalough
|St David
|St Davids=St David's
|St Davids=St David's
|Cashel
|Cashel
|Cashel and Ossory=Cashel, Ferns and Ossory
|Cashel and Ossory=Cashel, Ferns and Ossory
|{{#var:dtag}}}}<noinclude>[[Category:Name fix templates|Diocese fix]]</noinclude>
|{{#var:btag}}}}<noinclude>[[Category:Name fix templates|Diocese fix]]</noinclude>

Revision as of 17:36, 16 October 2018

{{{1}}}