Template:FestivalsPopUp: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
m (Henryfunk moved page Template:FlPopUp to Template:FestivalsPopUp without leaving a redirect)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude><div class="no-img">This template generates the pop-up that is displayed when the user clicks a pointer in a GoogleMap on a festivals landing page. It is called in a Semantic MediaWiki query.</div></noinclude>
<includeonly>{{#vardefine:image|{{#ifeq:{{#rpos:{{{7|}}}|.jpg}}|-1|{{#ifeq:{{#rpos:{{{6|}}}|.jpg}}|-1|{{#ifeq:{{#rpos:{{{5|}}}|.jpg}}|-1||{{{5|}}}}}|{{{6|}}}}}|{{{7|}}}}}}}{{#ifeq:{{#var:image}}|||[[File:{{#var:image}}|thumb|left|class=popupimg|link={{{2}}} festivals]]}}<div class="pnpopup"></div><table class="pnpopup">
 
 
<includeonly>
{{#ifeq:{{{7|}}}|||[[File:{{{7|}}}|thumb|left|class=popupimg|link={{{2}}} festivals]]}}<div class="pnpopup"></div>
<table class="pnpopup">
<tr><td>Adm. Div.</td><td>{{{1|}}}</td></tr>
<tr><td>Adm. Div.</td><td>{{{1|}}}</td></tr>
<tr><td>Locality</td><td>{{{2|}}}</td></tr>
<tr><td>Locality</td><td>{{{2|}}}</td></tr>
<tr><td>Vicinity</td><td>{{{4|}}}</td></tr>
<tr><td>Vicinity</td><td>{{{4|}}}</td></tr>
<tr><td>Began</td><td>{{{5|?}}}</td></tr>
<tr><td>Began</td><td>{{{6|?}}}</td></tr>
<tr><td>Ended</td><td>{{{6|?}}}</td></tr>
<tr><td>Ended</td><td>{{{7|?}}}</td></tr>
<tr><td>Events</td><td>{{{3|}}}</td></tr>
<tr><td>Events</td><td>{{{3|}}}</td></tr>
</table>
</table>
</includeonly>
</includeonly>
<noinclude>
<templatedata>
{
"params": {
"1": {
"label": "Adm Div",
"description": "Administrative division (county)",
"example": "Berkshire",
"type": "string",
"required": true
},
"2": {
"label": "Locality",
"description": "The name of the locality at which the festival occurred",
"example": "Ashburton",
"type": "string",
"required": true
},
"3": {
"label": "Events",
"description": "Semi-colon-separated list of events, or short descriptive text",
"type": "string",
"required": true
},
"4": {
"label": "Vicinity",
"description": "The vicinity in which the festival occurred",
"type": "string",
"required": true
},
"5": {
"label": "Image",
"description": "Name of image file",
"type": "string"
},
"6": {
"label": "Began",
"description": "The earliest year for which there is evidence",
"type": "number",
"required": true
},
"7": {
"label": "Ended",
"description": "The latest year for which there is evidence",
"type": "number"
}
},
"description": "Generates pop-up displayed when user clicks marker on interactive map on Festivals landing page; used by SMW; not for human use."
}
</templatedata>
</noinclude>

Latest revision as of 13:38, 7 January 2021


Generates pop-up displayed when user clicks marker on interactive map on Festivals landing page; used by SMW; not for human use.

Template parameters

ParameterDescriptionTypeStatus
Adm Div1

Administrative division (county)

Example
Berkshire
Stringrequired
Locality2

The name of the locality at which the festival occurred

Example
Ashburton
Stringrequired
Events3

Semi-colon-separated list of events, or short descriptive text

Stringrequired
Vicinity4

The vicinity in which the festival occurred

Stringrequired
Image5

Name of image file

Stringoptional
Began6

The earliest year for which there is evidence

Numberrequired
Ended7

The latest year for which there is evidence

Numberoptional