Template

Page: Difference between revisions

From WhereToday

en-gb>John
No edit summary
m (1 revision imported)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude><nowiki>{{Page|name|categories|description}}</nowiki>[[Category:Admin]]</noinclude><includeonly><span class="data">__NOTOC__
<noinclude><nowiki>{{Page|name|categories|description}}</nowiki>[[Category:Admin]]</noinclude><includeonly><span class="data">__NOTOC__
{{#get_web_data: url={{URL|Q/{{#ifeq:{{#sub:{{BASEPAGENAME}}|4}}||000/{{#sub:{{PAGENAME}}|1}}|{{#sub:{{BASEPAGENAME}}|1|3}}/{{#sub:{{PAGENAME}}|4}}}}/overview.json}} | format=JSON | data=category=category,description=description,start=start,end=end,wikipedia=wikipedia,wikimedia=wikimedia,website=website,name=name,properties=properties,quantities=quantities,specialimages=specialimages,standardimages=standardimages,names=names,video=video,nlocs=nlocs,ndocs=ndocs,nlinks=nlinks,nimages=nimages,nevents=nevents,ndates=ndates,nitems=nitems,links=links,classes=classes,instances=instances,confused=confused,countries=countries,subpage=subpage|suppress error}}
{{#get_web_data: url={{URL|Q/{{#ifeq:{{#sub:{{BASEPAGENAME}}|4}}||000/{{#sub:{{PAGENAME}}|1}}|{{#sub:{{BASEPAGENAME}}|1|3}}/{{#sub:{{PAGENAME}}|4}}}}/overview.json}} | format=JSON | data=category=category,description=description,start=start,end=end,wikipedia=wikipedia,wikimedia=wikimedia,website=website,name=name,properties=properties,quantities=quantities,specialimages=specialimages,standardimages=standardimages,names=names,video=video,nlocs=nlocs,ndocs=ndocs,nlinks=nlinks,nimages=nimages,nevents=nevents,ndates=ndates,nitems=nitems,links=links,classes=classes,instances=instances,confused=confused,countries=countries,superpage=superpage|suppress error}}
{{#ifeq:{{#external_value:name}}||{{DISPLAYTITLE:{{{1}}} {{PAGENAME}}}} Data files [[missing]][[Category:Missing]]|{{DISPLAYTITLE:{{#external_value:name}}}}{{DEFAULTSORT:{{#external_value:name}}}}
{{#ifeq:{{#external_value:name}}||{{DISPLAYTITLE:{{{1}}} {{PAGENAME}}}} Data files [[missing]][[Category:Missing]]|{{DISPLAYTITLE:{{#external_value:name}}}}{{DEFAULTSORT:{{#external_value:name}}}}
{{#get_web_data: url={{URL|Q/{{#ifeq:{{#sub:{{BASEPAGENAME}}|4}}||000/{{#sub:{{PAGENAME}}|1}}|{{#sub:{{BASEPAGENAME}}|1|3}}/{{#sub:{{PAGENAME}}|4}}}}/position.json}} | format=JSON | data=latitude=latitude,longitude=longitude,what3words=what3words,gridref=gridref|suppress error}}
{{#get_web_data: url={{URL|Q/{{#ifeq:{{#sub:{{BASEPAGENAME}}|4}}||000/{{#sub:{{PAGENAME}}|1}}|{{#sub:{{BASEPAGENAME}}|1|3}}/{{#sub:{{PAGENAME}}|4}}}}/position.json}} | format=JSON | data=latitude=latitude,longitude=longitude,what3words=what3words,gridref=gridref|suppress error}}
{{#get_web_data: url={{URL|Q/{{#ifeq:{{#sub:{{BASEPAGENAME}}|4}}||000/{{#sub:{{PAGENAME}}|1}}|{{#sub:{{BASEPAGENAME}}|1|3}}/{{#sub:{{PAGENAME}}|4}}}}/data}} | format=CSV with header| delimiter=@|data=dlink=Link,dimage=Image,dtype=Type,dsubtype=Subtype,ddescription=Description,dkeywords=Keywords,dsource=Source,dstart=Start,dend=End,dlat=Latitude,dlong=Longitude,dnotes=Notes,dtitle=Title|suppress error}}
{{#get_web_data: url={{URL|Q/{{#ifeq:{{#sub:{{BASEPAGENAME}}|4}}||000/{{#sub:{{PAGENAME}}|1}}|{{#sub:{{BASEPAGENAME}}|1|3}}/{{#sub:{{PAGENAME}}|4}}}}/data}} | format=CSV with header| delimiter=@|data=dlink=Link,dimage=Image,dtype=Type,dsubtype=Subtype,ddescription=Description,dkeywords=Keywords,dsource=Source,dstart=Start,dend=End,dlat=Latitude,dlong=Longitude,dnotes=Notes,dtitle=Title|suppress error}}
{{#ifeq:{{#external_value:description}}|||{{#seo:title={{#external_value:name}} - {{SITENAME}}|description={{#external_value:description}}}}{{#external_value:description}}}}
{{#ifeq:{{#external_value:description}}|||{{#seo:title={{#external_value:name}} - {{SITENAME}}|description={{#external_value:description}}}}{{#external_value:description}}}}[[Category:{{#external_value:category}}]][[Category:Pages]]
<tabs>
<tabs>
<tab name="Overview">{{#ifeq:{{#external_value:website}}|||[{{#external_value:website}} Website],&nbsp;}}{{#ifeq:{{#external_value:wikimedia}}|||[https://commons.wikimedia.org/wiki/Category:{{#rreplace:{{#external_value:wikimedia}}| |_}} Wikimedia],&nbsp;}}[https://www.wikidata.org/wiki/{{BASEPAGENAME}} Wikidata]<br>
<tab name="Overview">{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|
{{#ifeq:{{#external_value:website}}|||[{{#external_value:website}} Website],&nbsp;}}{{#ifeq:{{#external_value:wikimedia}}|||[https://commons.wikimedia.org/wiki/Category:{{#rreplace:{{#external_value:wikimedia}}| |_}} Wikimedia],&nbsp;}}[https://www.wikidata.org/wiki/{{BASEPAGENAME}} Wikidata]<br>
{{#ifeq:{{#external_value:start}}|||{{#time:Y|{{#external_value:start}}}}}}{{#ifeq:{{#external_value:end}}|||&nbsp;&#8212;&nbsp;{{#time:Y|{{#external_value:end}}}}}}
{{#ifeq:{{#external_value:start}}|||{{#time:Y|{{#external_value:start}}}}}}{{#ifeq:{{#external_value:end}}|||&nbsp;&#8212;&nbsp;{{#time:Y|{{#external_value:end}}}}}}
{{#ifeq:{{#external_value:names}}|||{{#arraymap:{{#external_value:names}}|,|x|<em>x</em>|,&nbsp;}}&nbsp;}}{{#ifeq:{{#external_value:confused}}|||(see also {{#arraymap:{{#external_value:confused}}|#|QQQ|{{Q|QQQ}}|,&nbsp;}})}}
{{#ifeq:{{#external_value:names}}|||{{#arraymap:{{#external_value:names}}|,|x|<em>x</em>|,&nbsp;}},&nbsp;}}{{#ifeq:{{#external_value:confused}}|||(see also {{#arraymap:{{#external_value:confused}}|#|QQQ|{{Q|QQQ}}|,&nbsp;}})}}<br><span id="sortclasses">
[[{{#ifeq:{{SUBPAGELEVEL}}|0|{{#external_value:category}}|subpage}}]]{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|{{#ifeq:{{#external_value:classes}}|||,&nbsp;{{#arraymap:{{#external_value:classes}}|#|QQQ|{{Q|QQQ}}|,&nbsp;}}}}{{#ifeq:{{#external_value:instances}}|||,&nbsp;{{#arraymap:{{#external_value:instances}}|#|QQQ|{{Q|QQQ}}|,&nbsp;}}}}{{#ifeq:{{#external_value:links}}|||,&nbsp;{{#arraymap:{{#external_value:links}}|#|QQQ|{{Q|QQQ}}|,&nbsp;}}}}{{#ifeq:{{#external_value:countries}}|||,&nbsp;{{#arraymap:{{#external_value:countries}}|,|QQQ|[[QQQ]]|,&nbsp;}}}}{{#switch:{{#external_value:category}}|Awards|Organisations={{#ifeq:{{#external_value:countries}}||,&nbsp; [[Worldwide]]}}}}<br>{{#ifeq:{{#external_value:properties}}|||{{#arraymap:{{#external_value:properties}}|#|QQQ|QQQ|,&nbsp; }}}}{{#ifeq:{{#external_value:quantities}}|||,&nbsp;{{#arraymap:{{#external_value:quantities}}|#|QQQ|{{Quantities|QQQ}}|,&nbsp;}}}}{{#switch:{{#external_value:category}}|Areas=|{{#ifeq:{{#external_value:specialimages}}|||{{#arraymap:{{#external_value:specialimages}}|,|QQQ|<BR>{{#ifeq:QQQ|null||{{image|{{#rreplace:QQQ|&#44;|,}}|500}}}}}}}}{{#ifeq:{{#external_value:standardimages}}|||{{#arraymap:{{#external_value:standardimages}}|,|QQQ|<BR>{{#ifeq:QQQ|null||{{image|{{#rreplace:QQQ|&#44;|,}}|500}}}}}}}}}}{{#ifeq:{{#external_value:video}}|||<BR>[[{{#external_value:video}}|500px|{{#external_value:video}}]]<br>}}|, [[{{BASEPAGENAME}}]], {{#ifeq:{{#external_value:subpage}}|||[[{{#external_value:subpage}}]]}}}}
{{#ifeq:{{#external_value:classes}}|||{{#arraymap:{{#external_value:classes}}|#|QQQ|{{Q|QQQ}}|,&nbsp;}},&nbsp;}}{{#ifeq:{{#external_value:instances}}|||{{#arraymap:{{#external_value:instances}}|#|QQQ|{{Q|QQQ}}|,&nbsp;}},&nbsp;}}{{#ifeq:{{#external_value:links}}|||{{#arraymap:{{#external_value:links}}|#|QQQ|{{Q|QQQ}}|,&nbsp;}},&nbsp;}}{{#ifeq:{{#external_value:countries}}|||{{#arraymap:{{#external_value:countries}}|,|QQQ|[[QQQ]]|,&nbsp;}},&nbsp;}}{{#switch:{{#external_value:category}}|Organisations={{#ifeq:{{#external_value:countries}}||[[worldwide]],&nbsp;}}}}</span><br>{{#ifeq:{{#external_value:properties}}|||{{#arraymap:{{#external_value:properties}}|#|QQQ|QQQ|,&nbsp;}},&nbsp;}}{{#ifeq:{{#external_value:quantities}}|||{{#arraymap:{{#external_value:quantities}}|#|QQQ|{{Quantities|QQQ}}|,&nbsp;}},&nbsp;}}{{#switch:{{#external_value:category}}|Areas|Superpages|Subpages=|{{#ifeq:{{#external_value:specialimages}}|||{{#arraymap:{{#external_value:specialimages}}|,|QQQ|<BR>{{#ifeq:QQQ|null||{{image|{{#rreplace:QQQ|&#44;|,}}|500}}}}}}}}{{#ifeq:{{#external_value:standardimages}}|||{{#arraymap:{{#external_value:standardimages}}|,|QQQ|<BR>{{#ifeq:QQQ|null||{{image|{{#rreplace:QQQ|&#44;|,}}|500}}}}}}}}}}{{#ifeq:{{#external_value:video}}|||<BR>[[{{#external_value:video}}|500px|{{#external_value:video}}]]}}<br>
{{#ifeq:{{#external_value:nlinks}}|0||
{{#ifeq:{{#external_value:nlinks}}|0||
{{#display_external_table:template=ArticleLine|data=type=dtype,start=dstart,description=ddescription,title=dtitle,keywords=dkeywords,link=dlink,source=dsource,notes=dnotes|delimiter=}}}}
{{#display_external_table:template=ArticleLine|data=type=dtype,start=dstart,description=ddescription,title=dtitle,keywords=dkeywords,link=dlink,source=dsource,notes=dnotes|delimiter=}}}}}}
{{#switch:{{#external_value:category}}|Publications|Areas|Sites|Subpages|Classes|Organisations|Events=
{{#switch:{{#external_value:category}}|Publications|Areas|Sites|Subpages|Classes|Organisations|Events|Objects=
{{#ifeq:{{#external_value:latitude}}|||{{MapLinks|countries={{#external_value:countries}}|latitude={{#external_value:latitude}}|longitude={{#external_value:longitude}}|what3words={{#external_value:what3words}}|gridref={{#external_value:gridref}}|name={{#external_value:name}}}}<BR>}}
{{#ifeq:{{#external_value:latitude}}|||{{MapLinks|countries={{#external_value:countries}}|latitude={{#external_value:latitude}}|longitude={{#external_value:longitude}}|what3words={{#external_value:what3words}}|gridref={{#external_value:gridref}}|name={{#external_value:name}}}}<BR>}}
{{#ifeq:{{#external_value:nlocs}}|0||{{#ifeq:{{#external_value:latitude}}||{{#display_map:
{{#ifeq:{{#external_value:nlocs}}|0||{{#ifeq:{{#external_value:latitude}}||{{#display_map:
{{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,start=dstart,description=ddescription,title=dtitle,keywords=dkeywords,subtype=dsubtype,type=dtype,image=dimage,link=dlink,notes=dnotes}}
{{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,start=dstart,description=ddescription,title=dtitle,keywords=dkeywords,subtype=dsubtype,type=dtype,image=dimage,link=dlink,notes=dnotes}}
| height=600px | scrollwheelzoom=yes | cluster=no | clustermaxzoom=20 | clustermaxradius=1 | service=leaflet | fullscreen=yes| layers=OpenStreetMap,Esri.WorldImagery}}|{{#display_map:
| height=600px | scrollwheelzoom=yes | cluster=no | clustermaxzoom=20 | clustermaxradius=1 | service=leaflet | fullscreen=yes| layers=OpenStreetMap,Esri.WorldImagery}}|{{#display_map:
{{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,start=dstart,description=ddescription,title=dtitle,keywords=dkeywords,subtype=dsubtype,type=dtype,image=dimage,link=dlink}}
{{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,start=dstart,description=ddescription,title=dtitle,keywords=dkeywords,subtype=dsubtype,type=dtype,image=dimage,link=dlink,notes=dnotes}}
| height=600px | scrollwheelzoom=yes | cluster=no | clustermaxzoom=20 | clustermaxradius=1 | service=leaflet | fullscreen=yes | layers=OpenStreetMap,Esri.WorldImagery | centre={{#external_value:latitude}},{{#external_value:longitude}}}}}}
| height=600px | scrollwheelzoom=yes | cluster=no | clustermaxzoom=20 | clustermaxradius=1 | service=leaflet | fullscreen=yes | layers=OpenStreetMap,Esri.WorldImagery | centre={{#external_value:latitude}},{{#external_value:longitude}}}}}}}}}}
}}}}
{{List}}
{{List}}
{{#ifeq:{{#external_value:nitems}}|0||{{#switch:{{#external_value:category}}|Sites=|{{#ifexpr:{{#external_value:nitems}}<200|<div><ul>{{#display_external_table:template=ItemLine|data=link=dlink,image=dimage,type=dtype,description=ddescription,title=dtitle,keywords=dkeywords,source=dsource,notes=dnotes,start=dstart,end=dend|delimiter=}}</ul></div>|More than 200 items, see table}}}}}}</tab>
{{#ifeq:{{#external_value:nitems}}|0||{{#switch:{{#external_value:category}}|Objects|Events|Sites=|{{#ifexpr:{{#external_value:nitems}}<200|<div><ul>{{#display_external_table:template=ItemLine|data=link=dlink,image=dimage,type=dtype,description=ddescription,title=dtitle,keywords=dkeywords,source=dsource,notes=dnotes,start=dstart,end=dend|delimiter=}}</ul></div>|More than 200 items, see table}}}}}}</tab>
<tab name="Searches">{{searches}}</tab>
<tab name="Searches">{{searches}}</tab>
{{#ifeq:{{#external_value:ndates}}|0||{{#ifeq:{{#external_value:nitems}}|0||
{{#ifeq:{{#external_value:ndates}}|0||{{#ifeq:{{#external_value:nitems}}|0||

Latest revision as of 09:44, 3 August 2024

{{Page|name|categories|description}}