Template:Placenames: Difference between revisions

From Wikishire
Jump to navigation Jump to search
RB (talk | contribs)
Still working on this...
 
RB (talk | contribs)
No edit summary
Line 1: Line 1:
{{#vardefine:tag1|{{#if:{{{1|}}}|{{#ifeq:{{ifno|{{{1}}} }}|y|{{#var:shire}}|{{{1}}} }}|{{#var:shire}} }} }}
{{#vardefine:pntag1|{{#if:{{{1|}}}|{{#ifeq:{{ifno|{{{1}}} }}|y|{{#var:shire}}|{{{1}}} }}|{{#var:shire}} }} }}
{{#vardefine:tag2|{{#if:{{{1|}}}|{{#ifeq:{{ifno|{{{1}}} }}|y|{{{1}}}|{{#if:{{{2|}}}|{{#ifeq{{ifno|{{{2}}} }}|y|{{{2}}}|0}}|0}}|0}}}}}}
{{#vardefine:pntag2| {{#if:{{{1|}}}|{{#ifeq:{{ifno|{{{1}}} }}|y|{{{1}}}|{{#if:{{{2|}}}|{{#ifeq:{{ifno|{{{2}}} }}|y|{{{2}}}|0}}|0}} }} }} }}
{{#vardefine:tag3|{{#if:{{{p|}}}|{{{p}}}|{{#if:{{{page|}}}|{{{page}}}}}|.}}}}
{{#vardefine:pntag3|{{#if:{{{p|}}}|{{{p}}}|{{#if:{{{page|}}}|{{{page}}}|.}} }} }}
{{#switch:{{Part-BI|{{#var:pntag1}}}}
{{#ifeq:{{#var:pntag1}}|Yorkshire|{{#vardefine:pntag1|{{#var|riding}} Riding of Yorkshire}}{{EPS|{{#var:pntag1}}|{{#var:pntag2}} }}|{{#switch:{{Part-BI|{{#var:pntag1}}}}
|England={{Eps|{{#var:pntag1}}|{{#var:pntag2}}|{{#var:pntag3}}}}
|England={{EPS|{{#var:pntag1}}|{{#var:pntag2}} }}
|Northern Ireland={{Ups|{{#var:pntag2}}|{{#var:pntag3}}}}
|Northern Ireland={{UPS|{{#var:pntag2}} }}
|Scotland=Nicolaisen, W.F.H. 'Scottish Place-Names' (Batsford, 1986) ISBN 9780713452341{{#ifeq:{{#var:pntag3}}|.|| page {{#vat:pntag3}}}}
|Scotland=Nicolaisen, W.F.H. 'Scottish Place-Names' (Batsford, 1986) ISBN 9780713452341
}}<noinclude>[[Category:Placename book templates]]</noinclude>
|Place-Names
}} }}{{#ifeq:{{#var:pntag3}}|.||, page {{#vat:pntag3}}}}<noinclude>[[Category:Placename book templates]]</noinclude>

Revision as of 22:38, 6 July 2017


Place-Names