Template

Page: Difference between revisions

From Warlike

No edit summary
en-gb>John
No edit summary
Line 21: Line 21:
{{#ifeq:{{#external_value:nlocs}}|0|{{#ifeq:{{#external_value:latitude}}|||{{#display_map:
{{#ifeq:{{#external_value:nlocs}}|0|{{#ifeq:{{#external_value:latitude}}|||{{#display_map:
{{#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}}}}}}}}
{{#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:nitems}}|0||{{#switch:{{{2}}}|Objects|Sites=|{{#ifexpr:{{#external_value:nitems}}>500||<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>}}}}}}</tab>
{{#ifeq:{{#external_value:nitems}}|0||{{#switch:{{{2}}}|Objects|Sites=|{{#ifexpr:{{#external_value:nitems}}>500|More than 500 items, see table|<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>}}}}}}</tab>
{{#switch:{{{2}}}|Subpages=|<tab name="Related">{{List|{{{2}}}}}</tab>}}
{{#switch:{{{2}}}|Subpages=|<tab name="Related">{{List|{{{2}}}}}</tab>}}
<tab name="Searches">{{searches}}</tab>
<tab name="Searches">{{searches}}</tab>
{{#ifeq:{{#external_value:ndates}}|0||{{#ifexpr:{{#external_value:ndates}}>500||
{{#ifeq:{{#external_value:ndates}}|0||{{#ifexpr:{{#external_value:ndates}}>500||
{{#ifeq:{{#sub:{{#external_value:start}}|1|1}}|+|
{{#ifeq:{{#sub:{{#external_value:start}}|1|1}}|-||
<tab name="Timeline">
<tab name="Timeline">
<itimeline zoommin=100000000000 width="100%">
<itimeline zoommin=100000000000 width="100%">
{{#switch:{{{2}}}|Events=
{{#switch:{{{2}}}|Events|People|Classes=
{{#ifeq:{{#external_value:start}}|||{{#external_value:start}}{{!}}'''start'''}}
{{#ifeq:{{#external_value:start}}|||{{#external_value:start}}{{!}}'''{{#rreplace:{{#external_value:start}}|T00:00:00Z}}'''}}
{{#ifeq:{{#external_value:end}}|||{{#external_value:end}}{{!}}'''end'''}}}}
{{#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}}}}
{{#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>}}}}}}
</itimeline></tab>}}}}}}
Line 41: Line 41:
{{#ifeq:{{#external_value:dtype}}|||{{#ifexpr:{{#external_value:nitems}}>10000||
{{#ifeq:{{#external_value:dtype}}|||{{#ifexpr:{{#external_value:nitems}}>10000||
<tab name="Table"><table id="Table" class="wikitable sortable">
<tab name="Table"><table id="Table" class="wikitable sortable">
<tr style><th>Type</th><th>Description</th><th>Date</th><th>Keywords</th><th>Notes</th><th>Source</th></tr>
<tr style><th>Type</th><th style="width:10%">Date</th><th>Description</th><th>Keywords</th><th>Notes</th><th>Source</th></tr>
<tr style><th colspan=6 class="unsortable"><span style="text-align: left"></span></th></tr>
<tr style><th colspan=6 class="unsortable"><span style="text-align: left"></span></th></tr>
{{#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=}}
{{#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=}}
</table></tab>}}}}
</table></tab>}}}}
</tabs>}}</span></includeonly>
</tabs>}}</span></includeonly>

Revision as of 08:06, 18 February 2025

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