Template:FestivalsItemTop: Difference between revisions
From International Robin Hood Bibliography
m (Text replacement - "fsended" to "LastRecord") |
m (Henryfunk moved page Template:FlItemTop to Template:FestivalsItemTop) |
||
(7 intermediate revisions by the same user not shown) | |||
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: | <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:AdministrativeDivision|{{{AdministrativeDivision|}}}}}{{#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:AdministrativeDivision}}|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 | ||
|label2=Locality | |label2=Locality | ||
|data2=[[ | |data2=[[Locality::{{#var:Locality}}]] | ||
|label3=Vicinity | |label3=Vicinity | ||
|data3=[[ | |data3=[[Vicinity::{{#var:Vicinity}}]] | ||
|label4=Coordinate | |label4=Coordinate | ||
|data4=[[Geopoint::{{#var:Coords}}]] | |data4=[[Geopoint::{{#var:Coords}}]] | ||
|label5=Adm. div. | |label5=Adm. div. | ||
|data5={{#var:RidingPrefixed}} [[ | |data5={{#var:RidingPrefixed}} [[AdministrativeDivision::{{#var:AdministrativeDivision}}]]{{#ifeq:{{#var:Glondon}}|||, now Greater London}} | ||
|label6=Began | |label6=Began | ||
|data6={{{FirstYearPrefix|}}}[[FirstRecord::{{#var:Date}}]]{{{FirstYearSuffix|}}} | |data6={{{FirstYearPrefix|}}}[[FirstRecord::{{#var:Date}}]]{{{FirstYearSuffix|}}} | ||
Line 15: | Line 15: | ||
|data7={{{LastYearPrefix|}}}[[LastRecord::{{{LastYear|}}}]]{{{LastYearSuffix|}}} | |data7={{{LastYearPrefix|}}}[[LastRecord::{{{LastYear|}}}]]{{{LastYearSuffix|}}} | ||
|label8=Events | |label8=Events | ||
|data8=[[ | |data8=[[Events::{{#var:Events}}]] | ||
}} | }} | ||
</includeonly> | </includeonly> | ||
Line 57: | Line 57: | ||
"default": "English" | "default": "English" | ||
}, | }, | ||
" | "AdministrativeDivision": { | ||
"label": " | "label": "AdministrativeDivision", | ||
"description": "County (administrative division), usually pre-1972 county", | "description": "County (administrative division), usually pre-1972 county", | ||
"example": "Devon", | "example": "Devon", |
Latest revision as of 13:27, 7 January 2021
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 |
AdministrativeDivision | AdministrativeDivision | 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 |