Jump to: navigation, search

Difference between revisions of "Template:PnItemTop"

m
m
 
Line 46: Line 46:
 
* '''Postcards''' – set to ''Yes'' or any other alphanumeric string  to indicate that there is/are photos of one or more topographical postcards depicting the locality on the page.
 
* '''Postcards''' – set to ''Yes'' or any other alphanumeric string  to indicate that there is/are photos of one or more topographical postcards depicting the locality on the page.
 
* '''ExtraCat1''' through '''ExtraCat5''' – use for additional category names.
 
* '''ExtraCat1''' through '''ExtraCat5''' – use for additional category names.
* '''ExtraCat1Text''' to '''ExtraCat5Text''' – Link text when this should be different from page name linked to
 
 
* '''ExtraLink1''' through '''ExtraLink5''' – use for extra links in category links section.
 
* '''ExtraLink1''' through '''ExtraLink5''' – use for extra links in category links section.
 
* '''ExtraLinkName1''' through '''ExtraLinkName5''' – anchor text for the preceding.
 
* '''ExtraLinkName1''' through '''ExtraLinkName5''' – anchor text for the preceding.
Line 53: Line 52:
 
* '''StatusSuffix''' – usually left blank but sometimes = "?"
 
* '''StatusSuffix''' – usually left blank but sometimes = "?"
 
* '''DatePrefix''' &ndash; usually left blank but sometimes = "<nowiki>''c'' </nowiki>" which displays as "<i>c.</i> " (note trailing space)
 
* '''DatePrefix''' &ndash; usually left blank but sometimes = "<nowiki>''c'' </nowiki>" which displays as "<i>c.</i> " (note trailing space)
* '''DateSuffix''' &ndash; usually left blank but sometimes = "?"</div></noinclude><includeonly>{{#vardefine:Pninterest|{{{Interest|}}}}}{{#vardefine:Vicinity|{{{Vicinity|}}}}}{{#vardefine:Pntype|{{{Type|}}}}}{{#vardefine:Pnstatus|{{{Status|}}}}}{{#vardefine:Coords|{{{Lat}}},{{{Lon}}}}}{{#vardefine:Coords|{{#ifeq:{{#var:Coords}}|,||{{#var:Coords}}}}}}{{#vardefine:Demonym|{{#ifeq:{{{Demonym|}}}||English|{{{Demonym|}}}}}}}{{#vardefine:AdmDiv|{{{AdmDiv|}}}}}{{#vardefine:Riding|{{{Riding|}}}}}{{#vardefine:Glondon|{{#ifeq:{{{GreaterLondon|}}}|||Yes}}}}{{#vardefine:Pnyear|{{{Year|}}}}}{{#vardefine:Pnaka|{{{Aka|}}}}}{{#vardefine:Century|{{#ifeq:{{#var:Pninterest}}|Robin Hood name|{{#ifeq:{{{Century|}}}||{{#ifeq:{{{Year|}}}|||{{#expr:{{#sub:{{#expr:{{{Year}}}-{{#ifeq:{{#rpos:{{{Year|}}}|00}}|2|1|0}}}}|0|2}}+1}}}}|{{{Century}}}}}|}}}}{{#vardefine:CenturyOrdinal|{{#ifeq:{{#var:Century}}|||{{#ifeq:{{#var:Century}}|21|21st|{{#var:Century}}th}}}}}}{{#vardefine:Cluster1|{{{Cluster1|}}}}}{{#vardefine:Cluster2|{{{Cluster2|}}}}}{{#vardefine:Cluster3|{{{Cluster3|}}}}}{{#vardefine:Pnimage|{{{Image|}}}}}{{#vardefine:Postcards|{{#ifeq:{{{Postcards|}}}|||[[Category:{{#var:AdmDiv}} postcards]]{{#ifeq:{{#var:Riding}}|||[[Category:{{#var:Riding}} Riding of Yorkshire postcards]]}}{{#ifeq:{{#var:Glondon}}|||[[Category:London postcards]]}}}}}}{{#vardefine:ExtraCat1|{{{ExtraCat1|}}}}}{{#vardefine:ExtraCat1Text|{{#ifeq:{{{ExtraCat1Text|}}}|||{{{ExtraCat1Text}}}}}}}{{#vardefine:ExtraCat2|{{{ExtraCat2|}}}}} {{#vardefine:ExtraCat1Text|{{#ifeq:{{{ExtraCat2Text|}}}|||{{{ExtraCat2Text}}}}}}}
+
* '''DateSuffix''' &ndash; usually left blank but sometimes = "?"</div></noinclude><includeonly>{{#vardefine:Pninterest|{{{Interest|}}}}}{{#vardefine:Vicinity|{{{Vicinity|}}}}}{{#vardefine:Pntype|{{{Type|}}}}}{{#vardefine:Pnstatus|{{{Status|}}}}}{{#vardefine:Coords|{{{Lat}}},{{{Lon}}}}}{{#vardefine:Coords|{{#ifeq:{{#var:Coords}}|,||{{#var:Coords}}}}}}{{#vardefine:Demonym|{{#ifeq:{{{Demonym|}}}||English|{{{Demonym|}}}}}}}{{#vardefine:AdmDiv|{{{AdmDiv|}}}}}{{#vardefine:Riding|{{{Riding|}}}}}{{#vardefine:Glondon|{{#ifeq:{{{GreaterLondon|}}}|||Yes}}}}{{#vardefine:Pnyear|{{{Year|}}}}}{{#vardefine:Pnaka|{{{Aka|}}}}}{{#vardefine:Century|{{#ifeq:{{#var:Pninterest}}|Robin Hood name|{{#ifeq:{{{Century|}}}||{{#ifeq:{{{Year|}}}|||{{#expr:{{#sub:{{#expr:{{{Year}}}-{{#ifeq:{{#rpos:{{{Year|}}}|00}}|2|1|0}}}}|0|2}}+1}}}}|{{{Century}}}}}|}}}}{{#vardefine:CenturyOrdinal|{{#ifeq:{{#var:Century}}|||{{#ifeq:{{#var:Century}}|21|21st|{{#var:Century}}th}}}}}}{{#vardefine:Cluster1|{{{Cluster1|}}}}}{{#vardefine:Cluster2|{{{Cluster2|}}}}}{{#vardefine:Cluster3|{{{Cluster3|}}}}}{{#vardefine:Pnimage|{{{Image|}}}}}{{#vardefine:Postcards|{{#ifeq:{{{Postcards|}}}|||[[Category:{{#var:AdmDiv}} postcards]]{{#ifeq:{{#var:Riding}}|||[[Category:{{#var:Riding}} Riding of Yorkshire postcards]]}}{{#ifeq:{{#var:Glondon}}|||[[Category:London postcards]]}}}}}}{{#vardefine:ExtraCat1|{{{ExtraCat1|}}}}}{{#vardefine:ExtraCat2|{{{ExtraCat2|}}}}}{{#vardefine:ExtraCat3|{{{ExtraCat3|}}}}}{{#vardefine:ExtraCat4|{{{ExtraCat4|}}}}}{{#vardefine:ExtraCat5|{{{ExtraCat5|}}}}}{{#vardefine:ExtraLink1|{{{ExtraLink1|}}}}}{{#vardefine:ExtraLink2|{{{ExtraLink2|}}}}}{{#vardefine:ExtraLink3|{{{ExtraLink3|}}}}}{{#vardefine:ExtraLink4|{{{ExtraLink4|}}}}}{{#vardefine:ExtraLink5|{{{ExtraLink5|}}}}}{{#vardefine:ExtraLinkName1|{{{ExtraLinkName1|}}}}}{{#vardefine:ExtraLinkName2|{{{ExtraLinkName2|}}}}}{{#vardefine:ExtraLinkName3|{{{ExtraLinkName3|}}}}}{{#vardefine:ExtraLinkName4|{{{ExtraLinkName4|}}}}}{{#vardefine:ExtraLinkName5|{{{ExtraLinkName5|}}}}}{{#vardefine:Utitle|{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}}}{{#vardefine:RidingPrefixed|{{#ifeq:{{#var:AdmDiv}}|Yorkshire|{{#ifeq:{{#var:Riding}}||?|{{#var:Riding}} Riding of}}|}}}}
{{#vardefine:ExtraCat3|{{{ExtraCat3|}}}}} {{#vardefine:ExtraCat3Text|{{#ifeq:{{{ExtraCat3Text|}}}|||{{{ExtraCat3Text}}}}}}}{{#vardefine:ExtraCat4|{{{ExtraCat4|}}}}} {{#vardefine:ExtraCat4Text|{{#ifeq:{{{ExtraCat14ext|}}}|||{{{ExtraCat4Text}}}}}}}{{#vardefine:ExtraCat5|{{{ExtraCat5|}}}}} {{#vardefine:ExtraCat5Text|{{#ifeq:{{{ExtraCat5Text|}}}|||{{{ExtraCat5Text}}}}}}}{{#vardefine:ExtraLink1|{{{ExtraLink1|}}}}}{{#vardefine:ExtraLink2|{{{ExtraLink2|}}}}}{{#vardefine:ExtraLink3|{{{ExtraLink3|}}}}}{{#vardefine:ExtraLink4|{{{ExtraLink4|}}}}}{{#vardefine:ExtraLink5|{{{ExtraLink5|}}}}}{{#vardefine:ExtraLinkName1|{{{ExtraLinkName1|}}}}}{{#vardefine:ExtraLinkName2|{{{ExtraLinkName2|}}}}}{{#vardefine:ExtraLinkName3|{{{ExtraLinkName3|}}}}}{{#vardefine:ExtraLinkName4|{{{ExtraLinkName4|}}}}}{{#vardefine:ExtraLinkName5|{{{ExtraLinkName5|}}}}}{{#vardefine:Utitle|{{#replace:{{uc:{{PAGENAME}}}}|&#39;|'}}}}{{#vardefine:RidingPrefixed|{{#ifeq:{{#var:AdmDiv}}|Yorkshire|{{#ifeq:{{#var:Riding}}||?|{{#var:Riding}} Riding of}}|}}}}
 
 
{{Infobox
 
{{Infobox
 
  |header1=Locality
 
  |header1=Locality

Latest revision as of 04:12, 5 June 2019

This template sets up page variables on item pages in IRHB's place-names section. It takes the following parameters:
  • Lat – latitude.
  • Lon – longitude.
  • AdmDiv – administrative division, usually the pre-1972 county in which the locality denoted by the place-name is located. Only use value London for the City of London. For Yorkshire write one of:
    • East Riding of Yorkshire.
    • North Riding of Yorkshire (includes City of York).
    • West Riding of Yorkshire.
  • Vicinity – brief text to locate the locality more precisely.
  • Status – one of:
    • Defunct
    • Extant.
  • Type – one of:
    • Public house
    • Natural feature
    • Establishment
    • Church
    • Monument
    • Building
    • Prehistoric site
    • Thoroughfare
    • Settlement
    • Area
    • Transport
    • Association
    • Artifact
    • Miscellaneous.
  • Riding – value must be one of East, North or West. Only for Yorkshire.
  • Interest – one of:
    • Robin Hood name
    • Local tradition
    • Literary locale
    • Artifacts
    • Miscellaneous.
  • Demonym – defaults to English.
  • GreaterLondon – for localities in parts of Essex, Middlesex, Surrey and Kent that are now part of Greater London. Set to Yes or any other alphanumeric string to indicate that the locality is in Greater London.
  • Year – four digit value representing one of:
    • year of earliest known record
    • year of creation/establishment
    • year when first mentioned in planning documents/records.
  • Aka – alternative name(s) for the locality, establishment etc. Use semi-colon without spaces as separator in case of more than one value.
  • Century – two digits, overrides century calculated from Year parameter.
  • Cluster1 – name of place-name cluster to which the locality belongs
  • Cluster2 – name of another place-name cluster to which the locality belongs
  • Cluster3 – name of a third place-name cluster to which the locality belongs
  • Image – image filename, including extension.
  • Postcards – set to Yes or any other alphanumeric string to indicate that there is/are photos of one or more topographical postcards depicting the locality on the page.
  • ExtraCat1 through ExtraCat5 – use for additional category names.
  • ExtraLink1 through ExtraLink5 – use for extra links in category links section.
  • ExtraLinkName1 through ExtraLinkName5 – anchor text for the preceding.
  • GeopointPrefix – usually left blank but sometimes = "Near " (note trailing space)
  • GeopointSuffix – usually left blank but sometimes = "?"
  • StatusSuffix – usually left blank but sometimes = "?"
  • DatePrefix – usually left blank but sometimes = "''c'' " which displays as "c. " (note trailing space)
  • DateSuffix – usually left blank but sometimes = "?"