Template

PageA: Difference between revisions

From WhereToday Expounder

m (1 revision imported)
No edit summary
 
Line 12: Line 12:
<tab name="Overview">
<tab name="Overview">
{{#ifeq:{{#external_value:start}}||?|{{#time:Y|{{#external_value:start}}}}}} - {{#ifeq:{{#external_value:end}}||?|{{#time:Y|{{#external_value:end}}}}}} {{#ifeq:{{#external_value:website}}|||[{{#external_value:website}} Website]&nbsp;}}<br>
{{#ifeq:{{#external_value:start}}||?|{{#time:Y|{{#external_value:start}}}}}} - {{#ifeq:{{#external_value:end}}||?|{{#time:Y|{{#external_value:end}}}}}} {{#ifeq:{{#external_value:website}}|||[{{#external_value:website}} Website]&nbsp;}}<br>
{{#ifeq:{{#external_value:names}}|||{{#arraymap:{{#external_value:names}}|,|x|<em>x</em>|,&nbsp;}}&nbsp;}}{{Disambiguation}}{{#ifeq:{{#external_value:confused}}|||{{#arraymap:{{#external_value:confused}}|#|QQQ|{{Link|QQQ}}|,&nbsp;}}}}<BR>
{{#ifeq:{{#external_value:names}}|||{{#arraymap:{{#external_value:names}}|,|x|<em>x</em>|,&nbsp;}}&nbsp;}}{{Disambiguation}}{{#ifeq:{{#external_value:confused}}|||{{#arraymap:{{#external_value:confused}}|#|QQQ|{{q|QQQ}}|,&nbsp;}}}}<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}}}}<BR>}}{{#ifeq:{{#external_value:subclasses}}|||{{#arraymap:{{#external_value:subclasses}}|#|QQQ|{{Link|QQQ}}|,&nbsp;}},&nbsp;}}{{#ifeq:{{#external_value:instances}}|||{{#arraymap:{{#external_value:instances}}|#|QQQ|{{Link|QQQ}}|,&nbsp;}},&nbsp;}}{{#ifeq:{{#external_value:links}}|||{{#arraymap:{{#external_value:links}}|#|QQQ|{{Link|QQQ}}|,&nbsp;}},&nbsp;}}{{#ifeq:{{#external_value:countries}}|||{{#arraymap:{{#external_value:countries}}|,|QQQ|{{Link||QQQ}}|,&nbsp;}}}}
{{#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:subclasses}}|||{{#arraymap:{{#external_value:subclasses}}|#|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|{{q||QQQ}}|,&nbsp;}}}}
{{#switchcategory:Awards|Organisations={{#ifeq:{{#external_value:countries}}||[[Worldwide]][[Category:Worldwide]]}}}}
{{#switchcategory:Awards|Organisations={{#ifeq:{{#external_value:countries}}||[[Worldwide]][[Category:Worldwide]]}}}}
{{List|{{{4|false}}}}}
{{#ifeq:{{#external_value:images}}|||{{#arraymap:{{#external_value:images}}|,|QQQ|{{#ifeq:QQQ|null||{{image|{{#rreplace:QQQ|&#44;|,}}|500}}}}}}<br>}}{{#ifeq:{{#external_value:video}}|||[[File:{{#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}}|||[[File:{{#external_value:video}}|500px|{{#external_value:video}}]]<br>}}
{{#ifeq:{{#external_value:properties}}|||{{#arraymap:{{#external_value:properties}}|#|QQQ|QQQ|<br>}}<br>}}
{{#ifeq:{{#external_value:properties}}|||{{#arraymap:{{#external_value:properties}}|#|QQQ|QQQ|<br>}}<br>}}
{{#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:quantities}}||| {{#arraymap:{{#external_value:quantities}}|#|QQQ|{{quantities|QQQ}}|,&nbsp;}}<BR>}}<!--([https://www.myshiptracking.com/vessels/{{{name}}}-mmsi-{{#external_value:mmsi}}-imo-0 tracked])}}-->
{{List|{{{4|false}}}}}
{{#ifeq:{{#external_value:nlocs}}|0||
{{#ifeq:{{#external_value:nlocs}}|0||
<div id="mapbox"></div>
<div id="mapbox"></div>
{{#ifeq:{{#external_value:latitude}}||
{{#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,title=dtitle,link=dlink}}
{{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,description=ddescription,keywords=dkeywords,thumb=dthumb,type=dtype,title=dtitle,link=dlink}}
| height="600" | width="600" | scrollwheelzoom=yes | cluster=no | clustermaxzoom=20 | clustermaxradius=1 | service=leaflet | fullscreen=yes}}  
| height="600" | width="600" | scrollwheelzoom=yes | cluster=no | clustermaxzoom=20 | clustermaxradius=1 | service=leaflet | fullscreen=yes}}  
{{#display_map:
{{#display_map:
{{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,start=dstart,description=ddescription,keywords=dkeywords,thumb=dthumb,type=dtype,title=dtitle,link=dlink}}
{{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,description=ddescription,keywords=dkeywords,thumb=dthumb,type=dtype,title=dtitle,link=dlink}}
| height="600" | width="600" | scrollwheelzoom=yes | cluster=yes | service=google | type=hybrid | fullscreen=yes}}|
| height="600" | width="600" | scrollwheelzoom=yes | cluster=yes | service=google | type=hybrid | fullscreen=yes}}|
{{#display_map:
{{#display_map:
{{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,start=dstart,description=ddescription,keywords=dkeywords,thumb=dthumb,type=dtype,title=dtitle,link=dlink}}
{{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,description=ddescription,keywords=dkeywords,thumb=dthumb,type=dtype,title=dtitle,link=dlink}}
| height="600" | width="600" | scrollwheelzoom=yes | cluster=no | clustermaxzoom=20 | clustermaxradius=1 | service=leaflet | fullscreen=yes | centre={{#external_value:latitude}},{{#external_value:longitude}}}}
| height="600" | width="600" | scrollwheelzoom=yes | cluster=no | clustermaxzoom=20 | clustermaxradius=1 | service=leaflet | fullscreen=yes | centre={{#external_value:latitude}},{{#external_value:longitude}}}}
{{#display_map:
{{#display_map:
{{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,start=dstart,description=ddescription,keywords=dkeywords,thumb=dthumb,type=dtype,title=dtitle,link=dlink}}
{{#display_external_table:template=MapLine|data=latitude=dlat,longitude=dlong,description=ddescription,keywords=dkeywords,thumb=dthumb,type=dtype,title=dtitle,link=dlink}}
| height="600" | width="600" | scrollwheelzoom=yes | cluster=yes | service=google | type=hybrid | fullscreen=yes | centre={{#external_value:latitude}},{{#external_value:longitude}}}}}}}}
| height="600" | width="600" | scrollwheelzoom=yes | cluster=yes | service=google | type=hybrid | fullscreen=yes | centre={{#external_value:latitude}},{{#external_value:longitude}}}}}}}}
{{#ifeq:{{#external_value:dtype}}|||
{{#ifeq:{{#external_value:dtype}}|||
<table id="shorttable" class="wikitable sortable">
<table id="shorttable" class="wikitable sortable">
  <tr style><th>Date</th><th>Name</th><th class="unsortable"><span style="text-align: left"><div id="shorttablebox"></div></span></th></tr>
<tr style><th>Date</th><th>Name</th><th class="unsortable"><span style="text-align: left"><div id="shorttablebox"></div></span></th></tr>
{{#switchcategory:Regions|Organisations|Countries|Publications|Types|Weapons={{#display_external_table:template=MediumTableLineA|data=type=dtype,start=dstart,description=ddescription,keywords=dkeywords,title=dtitle,link=dlink,source=dsource|delimiter=}}|{{#display_external_table:template=ShortTableLine|data=type=dtype,start=dstart,description=ddescription,keywords=dkeywords,title=dtitle,link=dlink,source=dsource|delimiter=}}}}
{{#display_external_table:template=ShortTableLine|data=type=dtype,description=ddescription,keywords=dkeywords,title=dtitle,link=dlink,source=dsource|delimiter=}}
</table>}}
</table>}}
{{#ifeq:{{#external_value:ndates}}|0||
<!--{{#ifeq:{{#external_value:ndates}}|0||
<div id="timelinebox"></div>
<div id="timelinebox"></div>
<itimeline zoommin=100000000000 width="1000px">
<itimeline zoommin=100000000000 width="1000px">
{{#switchcategory:Regions|Countries={{#display_external_table:template=TimelineLineArea|data=start=dstart,description=ddescription,title=dtitle,type=dtype}}|{{#display_external_table:template=TimelineLine|    data=start=dstart,description=ddescription,title=dtitle,type=dtype}}}}
{{#switchcategory:Regions|Countries={{#display_external_table:template=TimelineLineArea|data=description=ddescription,title=dtitle,type=dtype}}|{{#display_external_table:template=TimelineLine|    data=start=dstart,description=ddescription,title=dtitle,type=dtype}}}}
</itimeline>}}
</itimeline>}}-->
</tab>
</tab>
<tab name="Searches">{{searches}}</tab>
<tab name="Searches">{{searches}}</tab>
Line 56: Line 56:
{{#ifeq:{{#external_value:nimages}}|0||
{{#ifeq:{{#external_value:nimages}}|0||
<tab name="Images"><div id="image1box"></div>
<tab name="Images"><div id="image1box"></div>
{{#display_external_table:template=ImageLine|data=link=dlink,thumb=dthumb,type=dtype,description=ddescription,title=dtitle,keywords=dkeywords,source=dsource,start=dstart,end=dend|delimiter=}}
{{#display_external_table:template=ImageLine|data=link=dlink,thumb=dthumb,type=dtype,description=ddescription,title=dtitle,keywords=dkeywords,source=dsource,end=dend|delimiter=}}
</tab>}}
</tab>}}
{{#ifeq:{{#external_value:ndocs}}|0||
{{#ifeq:{{#external_value:ndocs}}|0||
<tab name="Documents"><div id="documentbox"></div>
<tab name="Documents"><div id="documentbox"></div>
{{#display_external_table:template=DocumentLine|data=link=dlink,thumb=dthumb,type=dtype,description=ddescription,title=dtitle,source=dsource,start=dstart,end=dend,keywords=dkeywords|delimiter=}}</tab>
{{#display_external_table:template=DocumentLine|data=link=dlink,thumb=dthumb,type=dtype,description=ddescription,title=dtitle,source=dsource,end=dend,keywords=dkeywords|delimiter=}}</tab>
}}
}}
{{#ifeq:{{#external_value:dtype}}|||
{{#ifeq:{{#external_value:dtype}}|||
Line 66: Line 66:
<table id="longtable" class="wikitable sortable">
<table id="longtable" class="wikitable sortable">
   <tr style><th>Date</th><th>Name</th><th class="unsortable"><span style="text-align: left"><div id="longtablebox"></div></span></th><th>Source</th></tr>
   <tr style><th>Date</th><th>Name</th><th class="unsortable"><span style="text-align: left"><div id="longtablebox"></div></span></th><th>Source</th></tr>
{{#display_external_table:template=LongTableLine|data=type=dtype,start=dstart,description=ddescription,keywords=dkeywords,title=dtitle,link=dlink,source=dsource|delimiter=}}
{{#display_external_table:template=LongTableLine|data=type=dtype,description=ddescription,keywords=dkeywords,title=dtitle,link=dlink,source=dsource|delimiter=}}
</table></tab>}}
</table></tab>}}
</tabs>
</tabs>

Latest revision as of 06:11, 16 June 2023

Usage:

{{page|name|categories|description|big}}