Template:PlaceNamesPopUp: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>This template generates the pop-up that is displayed when the user clicks a pointer in a GoogleMap on a landing page. It is called in a Semantic MediaWiki query.</noinclude><includeonly>{{#vardefine:image|{{#ifeq:{{{9|}}}||{{#ifeq:{{#rpos:{{{8|}}}|.jpg}}|-1|{{#ifeq:{{#rpos:{{{7|}}}|.jpg}}|-1||{{{7|}}}}}|{{{8|}}}}}|{{{9|}}}}}}}{{#vardefine:century|{{#switch: {{{7|}}} |?|14th|15th|16th|17th|18th|19th|20th|21st = {{{7|}}}|{{#ifeq:{{{7|}}}||?|{{#switch:{{{6|}}}|?14th|15th|16th|17th|18th|19th|20th|21st = {{{6|}}} |{{#ifeq:{{{6|}}}||?|}}}}}}}}}}{{#vardefine:fstrec|{{#ifeq:{{{6|}}}||?|{{#iferror:{{#expr:{{{6|}}}}}|?|{{{6|}}}}}}}}}{{#ifeq:{{#var:image}}|||[[File:{{#var:image}}|thumb|left|class=popupimg|link={{{0|}}}]]}}
<includeonly>{{#ifeq:{{{Image|}}}|||[[File:{{{Image|}}}|thumb|left|class=popupimg|link=]]}}
<table class="pnpopup">
<table class="pnpopup">
<tr><td>Adm. Div.</td><td>{{{1|}}}</td></tr>
<tr><td>Lat.</td><td>{{{latitude|}}}</td></tr>
<tr><td>Vicinity</td><td>{{{2|}}}</td></tr>
<tr><td>Lon.</td><td>{{{longitude|}}}</td></tr>
<tr><td>Type</td><td>{{{3|}}}</td></tr>
<tr><td>Adm. Div.</td><td>{{{AdministrativeDivision|}}}</td></tr>
<tr><td>Interest</td><td>{{{4|}}}</td></tr>
<tr><td>Vicinity</td><td>{{{Vicinity|}}}</td></tr>
<tr><td>Status</td><td>{{{5|}}}</td></tr>
<tr><td>Type</td><td>{{{PlaceNamesType|}}}</td></tr>
<tr><td>First Rec.</td><td>{{#var:fstrec}}</td></tr>
<tr><td>Interest</td><td>{{{PlaceNamesInterest|}}}</td></tr>
{{#ifeq:{{{4|}}}|Robin Hood name|<tr><td>Century</td><td>{{#var:century}}</td></tr>|}}
<tr><td>Status</td><td>{{{PlaceNamesStatus|}}}</td></tr>
<tr><td>First Rec.</td><td>{{{FirstRecord|}}}</td></tr>
<tr><td>Century</td><td>{{{CenturyOrdinal|}}}</td></tr>
</table></includeonly>
</table></includeonly>
<noinclude>
<templatedata>
{
"params": {
"Image": {
"description": "The image shown in the pop-up",
"type": "string"
},
"longitude": {
"description": "The longitude component of the coordinate (type Geopoint)",
"type": "number"
},
"latitude": {
"description": "The latitude component of the coordinate (type Geopoint)",
"type": "number"
},
"AdministrativeDivision": {
"description": "The administrative division (in England typically county or shire) in which the locality is located",
"type": "string"
},
"Vicinity": {
"description": "The neighbourhood in which the locality is located",
"type": "string"
},
"PlaceNamesType": {
"description": "TYpe of place-name/locality: Public house, Area, Natural feature etc.",
"type": "string"
},
"PlaceNamesInterest": {
"description": "Reason why this item is relevant: Robin Hood name, Local tradition, Literary locale etc.",
"type": "string"
},
"PlaceNamesStatus": {
"description": "Status either Extant or Defunct (typically refers to the place-name rather than the locality)",
"type": "string"
},
"FirstRecord": {
"description": "Date when the place-name is first recorded",
"type": "number"
},
"CenturyOrdinal": {
"description": "Century in which the place-name is first recorded: 15th, 16th etc.",
"type": "string"
}
},
"description": "Generates Pop-ups that appear when users click on markers on maps on pages in the Place-Names section of IRHB, used by SMW queries."
}
</templatedata>
</noinclude>

Latest revision as of 21:13, 19 April 2022


Generates Pop-ups that appear when users click on markers on maps on pages in the Place-Names section of IRHB, used by SMW queries.

Template parameters

ParameterDescriptionTypeStatus
ImageImage

The image shown in the pop-up

Stringoptional
longitudelongitude

The longitude component of the coordinate (type Geopoint)

Numberoptional
latitudelatitude

The latitude component of the coordinate (type Geopoint)

Numberoptional
AdministrativeDivisionAdministrativeDivision

The administrative division (in England typically county or shire) in which the locality is located

Stringoptional
VicinityVicinity

The neighbourhood in which the locality is located

Stringoptional
PlaceNamesTypePlaceNamesType

TYpe of place-name/locality: Public house, Area, Natural feature etc.

Stringoptional
PlaceNamesInterestPlaceNamesInterest

Reason why this item is relevant: Robin Hood name, Local tradition, Literary locale etc.

Stringoptional
PlaceNamesStatusPlaceNamesStatus

Status either Extant or Defunct (typically refers to the place-name rather than the locality)

Stringoptional
FirstRecordFirstRecord

Date when the place-name is first recorded

Numberoptional
CenturyOrdinalCenturyOrdinal

Century in which the place-name is first recorded: 15th, 16th etc.

Stringoptional