Page: Difference between revisions
From WhereToday
m (1 revision imported) |
en-gb>John No edit summary |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude><nowiki>{{Page|name|categories|description}}</nowiki>[[Category:Admin]]</noinclude><includeonly><span class="data">__NOTOC__ | ||
{{#get_web_data: url={{LocalFile|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,latitude=latitude,longitude=longitude,what3words=what3words,gridref=gridref,name=name,properties=properties,quantities=quantities,images=images,names=names,video=video,nlocs=nlocs,ndocs=ndocs,nlinks=nlinks,nimages=nimages,nevents=nevents,nitems=nitems,links=links,classes=classes,instances=instances,confused=confused,countries=countries,sublabel=sublabel|suppress error}} | |||
{{#ifeq:{{#external_value:name}}||Data files [[missing]]| | |||
<nowiki>{{ | {{#get_web_data: url={{LocalFile|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,dthumb=Thumb,dtype=Type,ddescription=Description,dkeywords=Keywords,dsource=Source,dstart=Start,dend=End,dsize=Size,dlat=Latitude,dlong=Longitude,dnotes=Notes,dtitle=Title|suppress error}} | ||
__NOTOC__ | |||
{{#get_web_data: url={{LocalFile|Q/{{#ifeq:{{#sub:{{ | |||
{{#ifeq:{{#external_value:name}}|| | |||
{{#get_web_data: url={{LocalFile|Q/{{#ifeq:{{#sub:{{ | |||
{{#ifeq:{{#external_value:description}}|||{{#external_value:description}}}} | {{#ifeq:{{#external_value:description}}|||{{#external_value:description}}}} | ||
<tabs> | <tabs> | ||
<tab name="Overview"> | <tab name="Overview">{{#ifeq:{{#external_value:website}}|||[{{#external_value:website}} Website], }}{{#ifeq:{{#external_value:wikimedia}}|||[https://commons.wikimedia.org/wiki/Category:{{#rreplace:{{#external_value:wikimedia}}| |_}} Wikimedia], }}[https://www.wikidata.org/wiki/{{BASEPAGENAME}} Wikidata]<br> | ||
{{#ifeq:{{#external_value: | {{#ifeq:{{#external_value:start}}||?|{{#time:Y|{{#external_value:start}}}}}} - {{#ifeq:{{#external_value:end}}|||{{#time:Y|{{#external_value:end}}}}}} | ||
{{#ifeq:{{#external_value:names}}|||{{#arraymap:{{#external_value:names}}|,|x|<em>x</em>|, }} | {{#ifeq:{{#external_value:names}}|||{{#arraymap:{{#external_value:names}}|,|x|<em>x</em>|, }} }}{{#ifeq:{{#external_value:confused}}|||(see also {{#arraymap:{{#external_value:confused}}|#|QQQ|{{qq|QQQ}}|, }})}}<BR> | ||
{{# | [[{{#external_value:category}}]]{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|{{#ifeq:{{#external_value:classes}}|||, {{#arraymap:{{#external_value:classes}}|#|QQQ|{{qq|QQQ}}|, }}}}{{#ifeq:{{#external_value:instances}}|||, {{#arraymap:{{#external_value:instances}}|#|QQQ|{{qq|QQQ}}|, }}}}{{#ifeq:{{#external_value:links}}|||, {{#arraymap:{{#external_value:links}}|#|QQQ|{{qq|QQQ}}|, }}}}{{#ifeq:{{#external_value:countries}}|||, {{#arraymap:{{#external_value:countries}}|,|QQQ|{{qq||QQQ}}|, }}}}{{#switch:{{#external_value:category}}|Awards|Organisations={{#ifeq:{{#external_value:countries}}||[[Worldwide]]}}}}<br><b>{{#ifeq:{{#external_value:properties}}|||{{#arraymap:{{#external_value:properties}}|#|QQQ|QQQ|, }}, }}{{#ifeq:{{#external_value:quantities}}||| {{#arraymap:{{#external_value:quantities}}|#|QQQ|{{Quantities|QQQ}}|, }}CCC<BR>}}</b> | ||
{{# | {{#ifeq:{{#external_value:images}}|||{{#arraymap:{{#external_value:images}}|,|QQQ|{{#ifeq:QQQ|null||{{image|{{#rreplace:QQQ|,|,}}|500}}}}}}<br>}}{{#ifeq:{{#external_value:video}}|||[[{{#external_value:video}}|500px|{{#external_value:video}}]]<br>}}|, [[{{BASEPAGENAME}}]], [[{{SUBPAGENAME}}]], {{#ifeq:{{#external_value:sublabel}}|||[[{{#external_value:sublabel}}]]}}}} | ||
{{#ifeq:{{#external_value:images}}|||{{#arraymap:{{#external_value:images}}|,|QQQ|{{#ifeq:QQQ|null||{{image|{{#rreplace:QQQ|,|,}}|500}}}}}}<br>}}{{#ifeq:{{#external_value:video}}|||[[ | {{List}} | ||
{{#ifeq:{{#external_value: | |||
{{#ifeq:{{#external_value: | {{#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=}}}} | ||
{{#ifeq:{{#external_value:nlocs}}|0|| | |||
{{#ifeq:{{#external_value:nitems}}|0||{{#switch:{{#external_value:category}}|Publications|Organisations|Objects|Subpages|Classes=<div><ul> | |||
{{#ifeq:{{#external_value:latitude}}|| | {{#display_external_table:template=ObjectLine|data=link=dlink,thumb=dthumb,type=dtype,description=ddescription,title=dtitle,keywords=dkeywords,source=dsource,start=dstart,end=dend|delimiter=}} | ||
</ul></div>}}}} | |||
{{#switch:{{#external_value:category}}|Publications|Areas|Sites|Subpages|Classes|Organisations= | |||
{{#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}}}}<BR>}} | |||
{{#ifeq:{{#external_value:nlocs}}|0||{{#ifeq:{{#external_value:latitude}}|| | |||
{{#display_map: | {{#display_map: | ||
{{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,start=dstart,description=ddescription,keywords=dkeywords,thumb=dthumb,type=dtype,link=dlink}} | {{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,start=dstart,description=ddescription,keywords=dkeywords,thumb=dthumb,type=dtype,link=dlink}} | ||
| height= | | height=600px | scrollwheelzoom=yes | cluster=no | clustermaxzoom=20 | clustermaxradius=1 | service=leaflet | fullscreen=yes| layers=OpenStreetMap,Esri.WorldImagery}}| | ||
{{#display_map: | {{#display_map: | ||
{{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,start=dstart,description=ddescription,keywords=dkeywords,thumb=dthumb,type=dtype,link=dlink}} | {{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,start=dstart,description=ddescription,keywords=dkeywords,thumb=dthumb,type=dtype,link=dlink}} | ||
| height= | | 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}}}}}} | ||
}}}}</tab> | |||
<tab name="Searches">{{searches}}</tab> | |||
{{#switch:{{#external_value:category}}|People|Organisations|Classes|Subpages|Objects|Events|Sites|Publications|Countries= | |||
{{#ifeq:{{#external_value:nevents}}|0|| | |||
{{# | <tab name="Timeline"> | ||
{{#ifeq:{{#external_value: | |||
< | |||
<itimeline zoommin=100000000000 width="1000px"> | <itimeline zoommin=100000000000 width="1000px"> | ||
{{# | {{#switch:{{#external_value:category}}|People=|Sites={{#display_external_table:template=TimelineLineSite|data=start=dstart,description=ddescription,title=dtitle,type=dtype,keywords=dkeywords}}|{{#display_external_table:template=TimelineLine|data=start=dstart,description=ddescription,title=dtitle,type=dtype,keywords=dkeywords}} | ||
}} | |||
</itimeline> | </itimeline></tab>}}}} | ||
</tab> | |||
{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|{{#ifeq:{{#external_value:wikipedia}}||| | |||
{{#tag:tab|[{{#external_value:wikipedia}} Frameless]<br>{{#tag:iframe|key="local"|path="{{#rreplace:{{#external_value:wikipedia}}|https://|}}"}}|name=Wikipedia}}}}}} | |||
{{# | |||
{{#ifeq:{{#external_value:wikipedia}}||| | {{#switch:{{#external_value:category}}|Areas|Sites|Classes|Objects|Subpages|Organisations= | ||
{{#tag:tab|[{{#external_value:wikipedia}} Frameless]<br>{{#tag:iframe|key="local"|path="{{#rreplace:{{#external_value:wikipedia}}|https://|}}"}}|name=Wikipedia}}}} | |||
{{# | |||
{{#ifeq:{{#external_value:nimages}}|0|| | {{#ifeq:{{#external_value:nimages}}|0|| | ||
<tab name=" | <tab name="Gallery"> | ||
{{#display_external_table:template= | {{#switch:{{#external_value:category}}|Sites|Objects={{#display_external_table:template=GalleryLineObject|data=link=dlink,thumb=dthumb,type=dtype,title=dtitle,keywords=dkeywords,source=dsource,start=dstart,end=dend,notes=dnotes|delimiter=}}| | ||
</tab>}} | {{#display_external_table:template=GalleryLine|data=link=dlink,thumb=dthumb,type=dtype,title=dtitle,keywords=dkeywords,source=dsource,start=dstart,end=dend,notes=dnotes|delimiter=}}}}</tab>}}|}} | ||
{{#ifeq:{{#external_value:ndocs}}|0|| | {{#ifeq:{{#external_value:ndocs}}|0|| | ||
<tab name="Documents" | <tab name="Documents"> | ||
{{#display_external_table:template=DocumentLine|data=link=dlink,thumb=dthumb,type=dtype,description=ddescription,title=dtitle,source=dsource,start=dstart,end=dend,keywords=dkeywords,title=dtitle|delimiter=}}</tab> | {{#display_external_table:template=DocumentLine|data=link=dlink,thumb=dthumb,type=dtype,description=ddescription,title=dtitle,source=dsource,start=dstart,end=dend,keywords=dkeywords,title=dtitle|delimiter=}}</tab>}} | ||
}} | |||
{{#ifeq:{{#external_value:dtype}}||| | {{#ifeq:{{#external_value:dtype}}||| | ||
<tab name="Table"> | <tab name="Table"> | ||
<table id=" | <table id="Table" class="wikitable sortable"> | ||
<tr style><th>Date</th><th>Description</th><th>Keywords</th><th>Notes</th><th>Source</th></tr> | <tr style><th>Date</th><th>Description</th><th>Keywords</th><th>Notes</th><th>Source</th></tr> | ||
<tr style><th colspan=5 class="unsortable"><span style="text-align: left" | <tr style><th colspan=5 class="unsortable"><span style="text-align: left"></span></th></tr> | ||
{{#display_external_table:template= | {{#display_external_table:template=TableLine|data=type=dtype,start=dstart,description=ddescription,title=dtitle,keywords=dkeywords,link=dlink,source=dsource,notes=dnotes,size=dsize|delimiter=}} | ||
</table></tab>}} | </table></tab>}} | ||
</tabs> | </tabs>{{DISPLAYTITLE:{{#external_value:name}}}}{{DEFAULTSORT:{{#external_value:name}}}}}}</span></includeonly> | ||
{{DISPLAYTITLE:{{ | |||
{{DEFAULTSORT:{{ | |||
}} | |||
</span></includeonly> |
Revision as of 16:25, 30 January 2024
{{Page|name|categories|description}}