Template:FestivalsItemTop: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:Locality|{{#ifeq:{{{Locality|}}}||{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}| }}+1}}|{{{Locality}}}}}}}{{#vardefine:Vicinity|{{#ifeq:{{{Vicinity|}}}||?|{{{Vicinity|}}}}}}}{{#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:FirstYear|{{#sub:{{{FirstYear|}}}|0|4}}}}{{#vardefine:Century|{{#ifeq:{{{Century|}}}||{{#ifeq:{{#var:FirstYear}}|||{{#expr:{{#sub:{{#expr:{{#var:FirstYear}}-{{#ifeq:{{#rpos:{{#var:FirstYear}}|00}}|2|1|0}}}}|0|2}}+1}}}}|{{{Century}}}}}}}{{#vardefine:CenturyOrdinal|{{#ifeq:{{#var:Century}}|||{{#ifeq:{{#var:Century}}|21|21st|{{#var:Century}}th}}}}}}{{#vardefine:Image|{{{Image|}}}}}{{#vardefine:Utitle|{{#replace:{{uc:{{PAGENAME}}}}|'|'}}}}{{#vardefine:RidingPrefixed|{{#ifeq:{{#var:AdmDiv}}|Yorkshire|{{#ifeq:{{#var:Riding}}||?|{{#var:Riding}} Riding of}}|}}}}{{#vardefine:Lat|{{{Lat|}}}}}{{#vardefine:Lon|{{{Lon|}}}}}{{#vardefine:Date|{{{FirstYear|}}}}}{{#vardefine:Events|{{{Events|}}}}} | |||
{{Infobox | {{Infobox | ||
|header1=Festivals | |header1=Festivals | ||
Line 39: | Line 18: | ||
}} | }} | ||
</includeonly> | </includeonly> | ||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"Locality": { | |||
"label": "Locality", | |||
"description": "The name of the locality", | |||
"example": "Ashburton", | |||
"type": "string", | |||
"default": "Page name minus the string \" festivals\".", | |||
"required": true | |||
}, | |||
"Vicinity": { | |||
"label": "Vicinity", | |||
"description": "Brief text to locate the locality more precisely", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"Lat": { | |||
"label": "Lat", | |||
"description": "Latitude", | |||
"example": "Values in interval 0-180", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"Lon": { | |||
"label": "Lon", | |||
"description": "Longitude", | |||
"type": "number", | |||
"default": "Values in interval 0-90", | |||
"suggested": true | |||
}, | |||
"Demonym": { | |||
"label": "Demonym", | |||
"description": "Demonym", | |||
"example": "Scottish", | |||
"type": "string", | |||
"default": "English" | |||
}, | |||
"AdmDiv": { | |||
"label": "AdmDiv", | |||
"description": "County (administrative division), usually pre-1972 county", | |||
"example": "Devon", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"Riding": { | |||
"label": "Riding", | |||
"description": "One of the three ridings of Yorkshire", | |||
"example": "East, North, West", | |||
"type": "string" | |||
}, | |||
"GreaterLondon": { | |||
"label": "GreaterLondon", | |||
"description": "Is the county part of Greater London?", | |||
"example": "Yes", | |||
"default": "No (any value means \"Yes\")" | |||
}, | |||
"FirstYear": { | |||
"label": "FirstYear", | |||
"description": "The earliest year for which there is evidence", | |||
"example": "1554; (at least four digits; can be a date in the form 1XXX-MM-DD)", | |||
"type": "string" | |||
}, | |||
"Century": { | |||
"label": "Century", | |||
"description": "Century in which activity first occurred", | |||
"example": "16", | |||
"type": "number", | |||
"default": "Defaults to (first four digits of) value of FirstYear" | |||
}, | |||
"Image": { | |||
"label": "Image", | |||
"description": "File name (as used in MediWiki, not the actual pathname)", | |||
"type": "string" | |||
}, | |||
"Events": { | |||
"label": "Events", | |||
"description": "Semi-colon-separated list or short decriptive text", | |||
"example": "Robin Hood; Maid Marian; Little John; church ale", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"FirstYearPrefix": { | |||
"label": "FirstYearPrefix", | |||
"description": "Prefix to the first year", | |||
"default": "c.; before; after" | |||
}, | |||
"FirstYearSuffix": { | |||
"label": "FirstYearSuffix", | |||
"description": "Suffix to first year", | |||
"type": "string", | |||
"default": "?; /YY [for accounting year]" | |||
}, | |||
"LastYearPrefix": { | |||
"label": "LastYearPrefix", | |||
"description": "Prefix to last year", | |||
"default": "c.; before; after" | |||
}, | |||
"LastYear": { | |||
"label": "LastYear", | |||
"description": "The latest year for which there is evidence", | |||
"type": "string", | |||
"default": "At least four digits; can be date in form 1XXX-MM-DD" | |||
}, | |||
"LastYearSuffix": { | |||
"label": "LastYearSuffix", | |||
"description": "Suffix to the last year", | |||
"type": "string", | |||
"default": "?; /YY [for accounting year]" | |||
} | |||
}, | |||
"description": "Sets up page variables on item pages in Festivals section." | |||
} | |||
</templatedata> | |||
</noinclude> |
Revision as of 10:07, 23 December 2020
Sets up page variables on item pages in Festivals section.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Locality | Locality | The name of the locality
| String | required |
Vicinity | Vicinity | Brief text to locate the locality more precisely | String | required |
Lat | Lat | Latitude
| Number | suggested |
Lon | Lon | Longitude
| Number | suggested |
Demonym | Demonym | Demonym
| String | optional |
AdmDiv | AdmDiv | County (administrative division), usually pre-1972 county
| String | required |
Riding | Riding | One of the three ridings of Yorkshire
| String | optional |
GreaterLondon | GreaterLondon | Is the county part of Greater London?
| Unknown | optional |
FirstYear | FirstYear | The earliest year for which there is evidence
| String | optional |
Century | Century | Century in which activity first occurred
| Number | optional |
Image | Image | File name (as used in MediWiki, not the actual pathname) | String | optional |
Events | Events | Semi-colon-separated list or short decriptive text
| String | required |
FirstYearPrefix | FirstYearPrefix | Prefix to the first year
| Unknown | optional |
FirstYearSuffix | FirstYearSuffix | Suffix to first year
| String | optional |
LastYearPrefix | LastYearPrefix | Prefix to last year
| Unknown | optional |
LastYear | LastYear | The latest year for which there is evidence
| String | optional |
LastYearSuffix | LastYearSuffix | Suffix to the last year
| String | optional |