Page: Difference between revisions
From SFnal Expounder
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
{{#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,ndates=ndates,nitems=nitems,links=links,classes=classes,instances=instances,confused=confused,countries=countries,sublabel=sublabel|suppress error}} | {{#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,ndates=ndates,nitems=nitems,links=links,classes=classes,instances=instances,confused=confused,countries=countries,sublabel=sublabel|suppress error}} | ||
{{#ifeq:{{#external_value:name}}||Data files [[missing]]| | {{#ifeq:{{#external_value:name}}||Data files [[missing]]| | ||
{{#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, | {{#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,dimage=Image,dtype=Type,dsubtype=Subtype,ddescription=Description,dkeywords=Keywords,dsource=Source,dstart=Start,dend=End,dsize=Size,dlat=Latitude,dlong=Longitude,dnotes=Notes,dtitle=Title|suppress error}} | ||
{{#ifeq:{{#external_value:description}}|||{{#external_value:description}}}} | {{#ifeq:{{#external_value:description}}|||{{#external_value:description}}}} | ||
<tabs> | <tabs> | ||
Line 19: | Line 19: | ||
{{#ifeq:{{#external_value:nlocs}}|0||{{#ifeq:{{#external_value:latitude}}|| | {{#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,title=dtitle,keywords=dkeywords,subtype=dsubtype,type=dtype, | {{#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}} | ||
| height=600px | scrollwheelzoom=yes | cluster=no | clustermaxzoom=20 | clustermaxradius=1 | service=leaflet | fullscreen=yes| layers=OpenStreetMap,Esri.WorldImagery}}| | | 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,,title=dtitle,keywords=dkeywords,subtype=dsubtype,type=dtype, | {{#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}} | ||
| 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}}}}}} | ||
}}}} | }}}} | ||
{{#ifeq:{{#external_value:nitems}}|0||{{#switch:{{#external_value:category}}|Publications|Organisations|Objects|Subpages|Classes|Areas|Events=<div><ul> | {{#ifeq:{{#external_value:nitems}}|0||{{#switch:{{#external_value:category}}|Publications|Organisations|Objects|Subpages|Classes|Areas|Events=<div><ul> | ||
{{#display_external_table:template=ObjectLine|data=link=dlink, | {{#display_external_table:template=ObjectLine|data=link=dlink,image=dimage,type=dtype,description=ddescription,title=dtitle,keywords=dkeywords,source=dsource,notes=dnotes,start=dstart,end=dend|delimiter=}} | ||
</ul></div>}}}}</tab> | </ul></div>}}}}</tab> | ||
Line 46: | Line 46: | ||
{{#ifeq:{{#external_value:nimages}}|0|| | {{#ifeq:{{#external_value:nimages}}|0|| | ||
<tab name="Gallery"> | <tab name="Gallery"> | ||
<!--{{#switch:{{#external_value:category}}|Sites|Objects={{#display_external_table:template=GalleryLineObject|data=link=dlink, | <!--{{#switch:{{#external_value:category}}|Sites|Objects={{#display_external_table:template=GalleryLineObject|data=link=dlink,image=dimage,type=dtype,title=dtitle,keywords=dkeywords,source=dsource,start=dstart,end=dend,notes=dnotes|delimiter=}}|--> | ||
{{#display_external_table:template=GalleryLine|data=link=dlink, | {{#display_external_table:template=GalleryLine|data=link=dlink,image=dimage,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, | {{#display_external_table:template=DocumentLine|data=link=dlink,dimage=dimage,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"> | ||
Line 57: | Line 57: | ||
<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"></span></th></tr> | <tr style><th colspan=5 class="unsortable"><span style="text-align: left"></span></th></tr> | ||
{{#display_external_table:template=TableLine|data=type=dtype,start=dstart,description=ddescription,title=dtitle,keywords=dkeywords,link=dlink, | {{#display_external_table:template=TableLine|data=type=dtype,start=dstart,description=ddescription,title=dtitle,keywords=dkeywords,link=dlink,image=dimage,source=dsource,notes=dnotes,size=dsize|delimiter=}} | ||
</table></tab>}} | </table></tab>}} | ||
</tabs>{{DISPLAYTITLE:{{#external_value:name}}}}{{DEFAULTSORT:{{#external_value:name}}}}}}</span></includeonly> | </tabs>{{DISPLAYTITLE:{{#external_value:name}}}}{{DEFAULTSORT:{{#external_value:name}}}}}}</span></includeonly> |
Revision as of 10:35, 16 February 2024
{{Page|name|categories|description}}