Template

Page: Difference between revisions

From Underfoot

No edit summary
m (1 revision imported)
 
(70 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude><nowiki>{{Page|name|category|description|aliases}}</nowiki>[[Category:Admin]]</noinclude><includeonly><span class="data">__NOTOC__
'''Usage:'''
{{#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=q=q,category=category,description=description,start=start,end=end,wikipedia=wikipedia,wikimedia=wikimedia,website=website,name=name,filename=filename,properties=properties,quantities=quantities,specialimages=specialimages,standardimages=standardimages,names=names,video=video,nlocs=nlocs,ndocs=ndocs,nlinks=nlinks,nimages=nimages,ndates=ndates,nitems=nitems,classes=classes,confused=confused,countries=countries,superpage=superpage|suppress error}}
 
{{#ifeq:{{#external_value:category}}||{{DISPLAYTITLE:{{{1}}} {{PAGENAME}}}} {{{3}}}.  [https://www.wikidata.org/wiki/{{BASEPAGENAME}} Wikidata]. Data files [[missing]][[Category:Missing]]|{{DISPLAYTITLE:{{#external_value:name}}}}{{DEFAULTSORT:{{#external_value:name}}}}
<nowiki>{{page|name|categories|description}}</nowiki>[[Category:Admin]]</noinclude><includeonly><span class="data">
{{#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}}
__NOTOC__
{{#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={{LocalFile|Q/{{#ifeq:{{#sub:{{PAGENAME}}|4}}||000/{{#sub:{{PAGENAME}}|1|3}}|{{#sub:{{PAGENAME}}|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,links=links,subclasses=subclasses,instances=instances,confused=confused,countries=countries|suppress error}}
{{#ifeq:{{#external_value:description}}|||{{#seo:title={{#external_value:name}} - {{SITENAME}}|description={{#external_value:description}}}}{{#external_value:description}}.&nbsp;<br>}}{{#ifeq:{{{4|}}}|||{{{4}}}}}
{{#ifeq:{{#external_value:name}}||Cannot read data files[[Category:Missing]]|
[[Category:{{{2}}}]][[Category:Pages]]<!--
{{#get_web_data: url={{LocalFile|Q/{{#ifeq:{{#sub:{{PAGENAME}}|4}}||000/{{#sub:{{PAGENAME}}|1|3}}|{{#sub:{{PAGENAME}}|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}}
{{#ifexpr:{{#external_value:nitems}}>10000|More than 10000 items, table, map, item list and timeline disabled<BR>|
{{#ifeq:{{#external_value:description}}|||{{#external_value:description}}}}
{{#ifexpr:{{#external_value:nitems}}>2000|More than 2000 items, map, item list and timeline disabled<BR>|
{{#ifexpr:{{#external_value:nitems}}>500|More than 500 items, item list and timeline disabled<BR>}}}}}}-->
<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/{{PAGENAME}} Wikidata]<br>
<tab name="Overview">
{{#ifeq:{{#external_value:start}}||?|{{#time:Y|{{#external_value:start}}}}}} - {{#ifeq:{{#external_value:end}}||?|{{#time:Y|{{#external_value:end}}}}}}
{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|
{{#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|{{qq|QQQ}}|,&nbsp;}})}}<BR>
{{#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:subclasses}}|||{{#arraymap:{{#external_value:subclasses}}|#|QQQ|{{qq|QQQ}}|,&nbsp;}},&nbsp;}}{{#ifeq:{{#external_value:instances}}|||{{#arraymap:{{#external_value:instances}}|#|QQQ|{{qq|QQQ}}|,&nbsp;}},&nbsp;}}{{#ifeq:{{#external_value:links}}|||{{#arraymap:{{#external_value:links}}|#|QQQ|{{qq|QQQ}}|,&nbsp;}},&nbsp;}}{{#ifeq:{{#external_value:countries}}|||{{#arraymap:{{#external_value:countries}}|,|QQQ|{{qq||QQQ}}|,&nbsp;}}}}{{#switchcategory:Awards|Organisations={{#ifeq:{{#external_value:countries}}||[[Worldwide]][[Category:Worldwide]]}}}}{{#ifeq:{{#external_value:properties}}|||{{#arraymap:{{#external_value:properties}}|#|QQQ|QQQ|<br>}}<br>}}
{{#ifeq:{{#external_value:start}}|||[[{{#rreplace:{{#external_value:start}}|(\-?)(\+?0*)([0-9]*)(.*)|\1\3}}]]}}{{#ifeq:{{#external_value:end}}|||&nbsp;&#8212;&nbsp;[[{{#rreplace:{{#external_value:end}}|(\-?)(\+?0*)([0-9]*)(.*)|\1\3}}]]}}<span id="sortclasses">
{{#ifeq:{{#external_value:quantities}}||| {{#arraymap:{{#external_value:quantities}}|#|QQQ|{{quantities|QQQ}}|,&nbsp;}}<BR>}}<!--([https://www.myshiptracking.com/vessels/{{{name}}}-mmsi-{{#external_value:mmsi}}-imo-0 tracked])}}-->
{{#ifeq:{{#external_value:classes}}|||{{#arraymap:{{#external_value:classes}}|#|QQQ|{{Q|QQQ}}|,&nbsp;}},&nbsp;}}{{#ifeq:{{#external_value:countries}}|||{{#arraymap:{{#external_value:countries}}|,|QQQ|[[QQQ]]|,&nbsp;}},&nbsp;}}{{#switch:{{{2}}}|Organisations={{#ifeq:{{#external_value:countries}}||[[worldwide]],&nbsp;}}}}</span>{{#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;}}{{#ifeq:{{#external_value:confused}}|||<BR>See also {{#arraymap:{{#external_value:confused}}|#|QQQ|{{Q|QQQ}}|,&nbsp;}}}}<BR>{{#switch:{{{2}}}|Areas|Superpages|Subpages=|{{#ifeq:{{#external_value:specialimages}}|||{{#arraymap:{{#external_value:specialimages}}|,|QQQ|{{#ifeq:QQQ|null||{{image|{{#rreplace:QQQ|&#44;|,}}|500}}}}}}}}{{#ifeq:{{#external_value:standardimages}}|||{{#arraymap:{{#external_value:standardimages}}|,|QQQ|{{#ifeq:QQQ|null||{{image|{{#rreplace:QQQ|&#44;|,}}|500}}}}}}}}}}{{#ifeq:{{#external_value:video}}|||[[{{#external_value:video}}|500px|{{#external_value:video}}]]}}<br>
{{#ifeq:{{#external_value:images}}|||{{#arraymap:{{#external_value:images}}|,|QQQ|{{#ifeq:QQQ|null||{{image|{{#rreplace:QQQ|&#44;|,}}|500}}}}}}<br>}}{{#ifeq:{{#external_value:video}}|||[[{{#external_value:video}}|500px|{{#external_value:video}}]]<br>}}
{{#ifeq:{{#external_value:nlinks}}|0||{{#ifexpr:{{#external_value:nlinks}}<100|
{{List}}
{{#display_external_table:template=ArticleLine|data=type=dtype,start=dstart,description=ddescription,title=dtitle,keywords=dkeywords,link=dlink,source=dsource,notes=dnotes|delimiter=}}|More than 100 links, see table}}<br>}}}}
{{#ifeq:{{#external_value:nlinks}}|0||
{{#switch:{{{2}}}|Areas|Sites|Subpages|Superpages|Classes|Organisations|Events|Objects=
{{#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: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}}|filename={{#external_value:filename}}}}<BR>}}
BEFORE EVENTS
{{#ifeq:{{#external_value:nlocs}}|0|{{#ifeq:{{#external_value:latitude}}|||{{#display_map:
{{#switchcategory:People|Organisations|Classes|Objects|Events|Sites|Publications|Countries=
{{#external_value:latitude}},{{#external_value:longitude}}~{{#external_value:name}}~{{#external_value:description}}~Red-marker.png; | height=600px | scrollwheelzoom=yes | cluster=no | clustermaxzoom=20 | clustermaxradius=1 | service=leaflet | fullscreen=yes| layers=OpenStreetMap,Esri.WorldImagery}}}}|{{#ifexpr:{{#external_value:nlocs}}>2000||{{#display_map:{{#ifeq:{{#external_value:latitude}}|||{{#external_value:latitude}},{{#external_value:longitude}}~{{#external_value:name}}~{{#external_value:description}}~Red-marker.png;}}{{#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}}}}}}}}
{{#ifeq:{{#external_value:nevents}}|0||
{{#ifexpr:{{#external_value:nitems}}>500|More than 500 items, see table|{{#ifeq:{{#external_value:nitems}}|0||
THERE ARE EVENTS
<div><ul>{{#switch:{{{2}}}|Objects|Sites={{#display_external_table:template=ItemLineSite|data=link=dlink,image=dimage,type=dtype,description=ddescription,title=dtitle,keywords=dkeywords,source=dsource,notes=dnotes,start=dstart,end=dend|delimiter=}}|
<itimeline zoommin=100000000000 width="1000px">
{{#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>}}}}
{{#switchcategory:People|Publications={{#display_external_table:template=TimelineLineVerbose|data=start=dstart,description=ddescription,title=dtitle,type=dtype,keywords=dkeywords}}|Organisations={{#display_external_table:template=TimelineLineOrganisation|data=start=dstart,description=ddescription,title=dtitle,type=dtype,keywords=dkeywords}}
Events={{#display_external_table:template=TimelineLineEvent|data=start=dstart,description=ddescription,title=dtitle,type=dtype,keywords=dkeywords}}|Classes={{#display_external_table:template=TimelineLineClass|data=start=dstart,description=ddescription,title=dtitle,type=dtype,keywords=dkeywords}}|Areas={{#display_external_table:template=TimelineLineArea|data=start=dstart,description=ddescription,title=dtitle,type=dtype,keywords=dkeywords}}|Sites|Objects={{#display_external_table:template=TimelineLine|data=start=dstart,description=ddescription,title=dtitle,type=dtype,keywords=dkeywords}}|}}
</itimeline>
<div id="timelinebox"></div>&nbsp;
<table id="timelinetable" class="wikitable sortable">
<tr style><th>Date</th><th>Description</th><th class="unsortable">Keywords</th></tr>
{{#display_external_table:template=TimelineTableLine|data=latitude=dlat,longitude=dlong,type=dtype,start=dstart,description=ddescription,title=dtitle,keywords=dkeywords,link=dlink,source=dsource,notes=dnotes|delimiter=}}
XXXX
</table>}}}}
AFTER EVENTS
ZZZZ
{{#switchcategory:Publications=|Areas|Sites|Weapons|Classes|Organisations=MAP CATEGORY
{{#ifeq:{{#external_value:latitude}}||NO LAT|{{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|NOLOCS|SOME LOCS{{#ifeq:{{#external_value:latitude}}||
AAAA
{{#display_map:
{{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,start=dstart,description=ddescription,keywords=dkeywords,thumb=dthumb,type=dtype,link=dlink}}
| height=600px | scrollwheelzoom=yes | cluster=no | clustermaxzoom=20 | clustermaxradius=1 | service=leaflet | fullscreen=yes| layers=OpenStreetMap,Esri.WorldImagery}}|
BBBB
{{#display_map:
{{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,start=dstart,description=ddescription,keywords=dkeywords,thumb=dthumb,type=dtype,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}}}}
}}
<div id="mapbox"></div>&nbsp;
<table id="maptable" class="wikitable sortable">
<tr style><th>Date</th><th>Description</th><th class="unsortable">Keywords</th></tr>
{{#display_external_table:template=MapTableLine|data=latitude=dlat,longitude=dlong,type=dtype,start=dstart,description=ddescription,title=dtitle,keywords=dkeywords,link=dlink,source=dsource,notes=dnotes|delimiter=}}
</table>}}AFTER MAP{{#switchcategory:Regions=
{{#ifeq:{{#external_value:nevents}}|0||
<itimeline zoommin=100000000000 width="1000px">
{{#display_external_table:template=TimelineLineArea|data=start=dstart,description=ddescription,title=dtitle,type=dtype,keywords=dkeywords}}
</itimeline>}}}}
}}
</tab>
</tab>
<tab name="Searches">{{searches}}</tab>
{{#switch:{{{2}}}|Subpages=|<tab name="Related">{{List|{{{2}}}}}</tab>}}
{{#ifeq:{{#external_value:wikipedia}}|||
{{#ifeq:{{#external_value:ndates}}|0||{{#ifexpr:{{#external_value:ndates}}>500||
{{#tag:tab|[{{#external_value:wikipedia}} Frameless]<br>{{#tag:iframe|key="local"|path="{{#rreplace:{{#external_value:wikipedia}}|https://|}}"}}|name=Wikipedia}}}}
{{#ifeq:{{#sub:{{#external_value:start}}|1|1}}|-||
<tab name="Timeline">
<itimeline zoommin=100000000000 width="100%">
{{#switch:{{{2}}}|Events|People|Classes=
{{#ifeq:{{#external_value:start}}|||{{#external_value:start}}{{!}}'''{{#rreplace:{{#external_value:start}}|T00:00:00Z}}'''}}
{{#ifeq:{{#external_value:end}}|||{{#external_value:end}}{{!}}'''{{#rreplace:{{#external_value:end}}|T00:00:00Z}}'''}}}}
{{#switch:{{{2}}}|Sites={{#display_external_table:template=TimelineLineSite|data=start=dstart,description=ddescription,title=dtitle,type=dtype,keywords=dkeywords,subtype=dsubtype}}|{{#display_external_table:template=TimelineLine|data=start=dstart,description=ddescription,title=dtitle,type=dtype,keywords=dkeywords,subtype=dsubtype}}}}
</itimeline></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:nimages}}|0||
{{#ifeq:{{#external_value:nimages}}|0||
<tab name="Images"><div id="image1box"></div>
<tab name="Gallery">{{#display_external_table:template=GalleryLine|data=link=dlink,image=dimage,type=dtype,subtype=dsubtype,title=dtitle,keywords=dkeywords,source=dsource,start=dstart,end=dend,notes=dnotes|delimiter=}}</tab>}}
{{#display_external_table:template=ImageLine|data=link=dlink,thumb=dthumb,type=dtype,title=dtitle,keywords=dkeywords,source=dsource,start=dstart,end=dend|delimiter=}}
</tab>}}
{{#ifeq:{{#external_value:ndocs}}|0||
{{#ifeq:{{#external_value:ndocs}}|0||
<tab name="Documents"><div id="documentbox"></div>
<tab name="Documents">{{#display_external_table:template=DocumentLine|data=link=dlink,description=ddescription,type=dtype,subtype=dsubtype,title=dtitle,keywords=dkeywords,source=dsource,start=dstart,end=dend,notes=dnotes|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}}|||{{#ifexpr:{{#external_value:nitems}}>10000||
}}
<tab name="Table"><table id="Table" class="wikitable sortable">
{{#ifeq:{{#external_value:dtype}}|||
<tr style><th>Type</th><th style="width:10%">Date</th><th>Description</th><th>Keywords</th><th>Notes</th><th>Source</th></tr>
<tab name="Table">
<tr style><th colspan=6 class="unsortable"><span style="text-align: left"></span></th></tr>
<table id="longtable" class="wikitable sortable">
{{#display_external_table:template=TableLine|data=type=dtype,subtype=dsubtype,start=dstart,description=ddescription,title=dtitle,keywords=dkeywords,link=dlink,image=dimage,source=dsource,notes=dnotes|delimiter=}}
<tr style><th>Date</th><th>Description</th><th>Keywords</th><th>Notes</th><th>Source</th></tr>
</table></tab>}}}}
<tr style><th colspan=5 class="unsortable"><span style="text-align: left"><div id="longtablebox"></div></span></th></tr>
{{Search|countries={{#external_value:countries}}|latitude={{#external_value:latitude}}|longitude={{#external_value:longitude}}|what3words={{#external_value:what3words}}|gridref={{#external_value:gridref}}|name={{#external_value:name}}}}
{{#display_external_table:template=LongTableLine|data=type=dtype,start=dstart,description=ddescription,title=dtitle,keywords=dkeywords,link=dlink,source=dsource,notes=dnotes,size=dsize|delimiter=}}
</tabs>}}</span></includeonly>
</table></tab>}}
</tabs>
{{DISPLAYTITLE:{{{1}}}}}
{{DEFAULTSORT:{{{1}}}}}
{{categories|{{{2}}}}}
}}
</span></includeonly>

Latest revision as of 18:05, 22 March 2025

{{Page|name|category|description|aliases}}