Template:PlaceNamesInBallads: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
m (Text replacement - "https://www.irhb.org/" to "{{SERVER}}/") |
||
(16 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
* '''CountryAdj'''. Optional. Defaults to: ''English''. | * '''CountryAdj'''. Optional. Defaults to: ''English''. | ||
* '''KmlSource'''. Optional. Defaults to: ''Historic county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust]''. | * '''KmlSource'''. Optional. Defaults to: ''Historic county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust]''. | ||
* '''CountryMapWidget'''. Optional, defaults to: ''' | * '''CountryMapWidget'''. Optional, defaults to: '''PlaceNamesNavigationMapEnglish'''.</div></noinclude><includeonly>{{#vardefine:Ballad|{{#ifeq:{{{Ballad|}}}||{{PAGENAME}}}}}}{{#vardefine:BalladDisplayName|{{#ifeq:{{{BalladDisplayName|}}}||{{#replace:{{#var:Ballad}}|Place-names in|}}|{{{BalladDisplayName}}}}}}}{{#vardefine:Country|{{#ifeq:{{{Country|}}}||England|{{{Country}}}}}}}{{#vardefine:CountryAdj|{{#ifeq:{{{CountryAdj|}}}||English|{{{CountryAdj}}}}}}}{{#vardefine:ctyLower|{{lc:{{#var:Country}}}}}}{{#vardefine:KmlSource|{{#ifeq:{{{KmlSource|}}}||{{#ifeq:{{#var:ctyLower}}|england|Historic county boundary coordinates provided by the [http://www.county-borders.co.uk/ Historic Counties Trust].|}}|{{{KmlSource}}}}}}}{{#vardefine:CountryMapWidget|{{#ifeq:{{#var:ctyLower}}|england|PlaceNamesNavigationMapEnglish|<!--insert name for other country-->}}}}{{#ask: | ||
[[Category:{{#var:Ballad}}]] | [[Category:{{#var:Ballad}}]] | ||
|? | |?Geopoint | ||
|? | |?AdministrativeDivision | ||
|? | |?Vicinity | ||
|? | |?PlaceNamesType | ||
|? | |?PlaceNamesInterest | ||
|? | |?PlaceNamesStatus | ||
|? | |?FirstRecord# | ||
|? | |?CenturyOrdinal | ||
|? | |?Image | ||
|showtitle=yes | |showtitle=yes | ||
|limit=2000 | |limit=2000 | ||
|format=leaflet | |format=leaflet | ||
|template= | |template=PlaceNamesPopUp | ||
|markercluster=yes | |markercluster=yes | ||
|height=550 | |height=550 | ||
|width=34% | |width=34% | ||
|geojson= | |geojson={{SERVER}}/w/geo/{{#var:ctyLower}}/country/{{#var:Country}}.json | ||
|enablefullscreen=yes | |enablefullscreen=yes | ||
|clustermaxradius=50 | |clustermaxradius=50 | ||
Line 33: | Line 33: | ||
{{#ask: | {{#ask: | ||
[[Category:{{#var:Ballad}}]] | [[Category:{{#var:Ballad}}]] | ||
|? | |?PlaceNamesType | ||
|format=template | |format=template | ||
|template= | |template=ChartsData | ||
|limit=2000 | |limit=2000 | ||
|sort=Utitle | |sort=Utitle | ||
Line 43: | Line 43: | ||
{{#ask: | {{#ask: | ||
[[Category:{{#var:Ballad}}]] | [[Category:{{#var:Ballad}}]] | ||
|? | |?CenturyOrdinal | ||
|format=template | |format=template | ||
|template= | |template=ChartsData | ||
|limit=2000 | |limit=2000 | ||
|sort=Utitle | |sort=Utitle | ||
Line 53: | Line 53: | ||
{{#ask: | {{#ask: | ||
[[Category:{{#var:Ballad}}]] | [[Category:{{#var:Ballad}}]] | ||
|? | |?PlaceNamesInterest | ||
|format=template | |format=template | ||
|template= | |template=ChartsData | ||
|limit=2000 | |limit=2000 | ||
|sort=Utitle | |sort=Utitle | ||
Line 63: | Line 63: | ||
{{#ask: | {{#ask: | ||
[[Category:{{#var:Ballad}}]] | [[Category:{{#var:Ballad}}]] | ||
|? | |?PlaceNamesStatus | ||
|format=template | |format=template | ||
|template= | |template=ChartsData | ||
|limit=2000 | |limit=2000 | ||
|sort=Utitle | |sort=Utitle | ||
Line 73: | Line 73: | ||
{{#ask: | {{#ask: | ||
[[Category:{{#var:Ballad}}]] | [[Category:{{#var:Ballad}}]] | ||
|? | |?FirstRecord# | ||
|format=template | |format=template | ||
|template=timeline | |template=timeline | ||
|limit=2000 | |limit=2000 | ||
|sort= | |sort=FirstRecord, | ||
|link=none | |link=none | ||
}} | }} | ||
</div> | </div> | ||
{{#widget: | {{#widget:PlaceNamesCharts}} | ||
</includeonly> | </includeonly> |
Latest revision as of 03:56, 6 June 2022
This template creates the maps and charts on landing pages on place-names in ballads in the place-names section of IRHB. It takes the following named parameters:
- Ballad. The name of the ballad. Optional. Defaults to the {{PAGENAME}} of the calling page.
- BalladDisplayName. The name of the ballad shown under the navigation map. Optional. Defaults to the {{PAGENAME}} of the calling page.
- Country. Optional. Defaults to: England.
- CountryAdj. Optional. Defaults to: English.
- KmlSource. Optional. Defaults to: Historic county boundary coordinates provided by the Historic Counties Trust.
- CountryMapWidget. Optional, defaults to: PlaceNamesNavigationMapEnglish.