Difference between revisions of "Template:Location"

From OPENRESEARCH fixed Wiki
Jump to navigation Jump to search
(modified through wikirestore by orapi)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the template [[Template:Location]].
+
This is the template {{Link|target=Template:Location|title=}}.
       
+
 
 
== See also ==
 
== See also ==
*[[List of Locations]]
+
*[[:List of Locations]]
*[[Help:Location]]
+
*[[:Help:Location]]
*[[Category:Location]]
+
*[[:Category:Location]]
*[[Concept:Location]]
+
*[[:Concept:Location]]
*[[Form:Location]]
+
*[[:Form:Location]]
*[[Template:Location]]
+
*[[:Template:Location]]
  
  
Line 14: Line 14:
 
<pre>
 
<pre>
 
{{Location
 
{{Location
|Location comment=some value
+
|comment=Some comment
|Location coordinates=some value
+
|coordinates=Some coordinates
|Location level=some value
+
|level=Some level
|Location locationKind=some value
+
|locationKind=Some locationKind
|Location name=some value
+
|name=Some name
|Location partOf=some value
+
|partOf=Some partOf
|Location wikidataid=some value}}
+
|wikidataid=Some wikidataid
 +
}}
 
</pre>
 
</pre>
 
{{Location
 
{{Location
|Location comment=some value
+
|comment=Some comment
|Location coordinates=some value
+
|coordinates=1,1
|Location level=some value
+
|level=5
|Location locationKind=some value
+
|locationKind=Some locationKind
|Location name=some value
+
|name=World
|Location partOf=some value
+
|partOf=Category:World
|Location wikidataid=some value}}
+
|wikidataid=Q1
 +
}}
  
 
[[Category:Template]]
 
[[Category:Template]]
</noinclude><includeonly>
+
</noinclude>
{{#switch:{{{storemode|}}}
+
<includeonly>{{#set:isA=Location
|subobject={{#subobject:-
 
 
|Location comment={{{comment|}}}
 
|Location comment={{{comment|}}}
 
|Location coordinates={{{coordinates|}}}
 
|Location coordinates={{{coordinates|}}}
Line 42: Line 43:
 
|Location partOf={{{partOf|}}}
 
|Location partOf={{{partOf|}}}
 
|Location wikidataid={{{wikidataid|}}}
 
|Location wikidataid={{{wikidataid|}}}
|isA=Location
+
|Location zoomLevel={{{zoomLevel|}}}
 +
}}{| class='wikitable'
 +
! colspan=2 | {{#formlink:form=Location|link text=✎|target={{FULLPAGENAME}}|tooltip=Start editing this Location}}[[Concept:Location|Location]]
 +
|-
 +
!style="text-align:left" |[[Location name::@@@|name]]
 +
| {{#if:{{{name|}}}|{{{name|}}}|}}
 +
|-
 +
!style="text-align:left" |[[Location wikidataid::@@@|wikidataid]]
 +
| {{#if:{{{wikidataid|}}}|[[Location wikidataid::{{{wikidataid|}}}]]|}}
 +
|-
 +
!style="text-align:left" |[[Location level::@@@|level]]
 +
| {{#if:{{{level|}}}|{{{level|}}}|}}
 +
|-
 +
!style="text-align:left" |[[Location coordinates::@@@|coordinates]]
 +
| {{#if:{{{coordinates|}}}|[[Location coordinates::{{{coordinates|}}}]]|}}
 +
|-
 +
!style="text-align:left" |[[Location comment::@@@|comment]]
 +
| {{#if:{{{comment|}}}|{{{comment|}}}|}}
 +
|-
 +
!style="text-align:left" |[[Location locationKind::@@@|locationKind]]
 +
| {{#if:{{{locationKind|}}}|{{{locationKind|}}}|}}
 +
|-
 +
!style="text-align:left" |[[Location partOf::@@@|partOf]]
 +
| {{#if:{{{partOf|}}}|[[:{{{partOf|}}}]]|}}
 +
|-
 +
!style="text-align:left" |[[Location zoomLevel::@@@|zoomLevel]]
 +
| {{#if:{{{zoomLevel|}}}|{{{zoomLevel|}}}|}}
 +
|}
 +
{{#display_map:center={{{coordinates|}}}|zoom={{{zoomLevel|5}}}|service=leaflet|width=280|height=280}}
 +
{{#ask: [[location partOf::{{PAGENAME}}]]
 +
|mainLabel=parts
 +
|?Location locationKind=kind
 
}}
 
}}
|property
+
'''Conferences'''
|#default={{#set:
+
{{#ask: [[isA::Event]] [[has location city::{{{name|}}}]]
|Location comment={{{comment|}}}
+
|format=count
|Location coordinates={{{coordinates|}}}
+
}} events for {{{name|}}} are known to this wiki.
|Location level={{{level|}}}
+
{{HideShow|ConferencesForLocation|
|Location locationKind={{{locationKind|}}}
+
{{#ask: [[isA::Event]] [[has location city::{{{name|}}}]]
|Location name={{{name|}}}
+
| ?title = Name
|Location partOf={{{partOf|}}}
+
| ?has location city = City
|Location wikidataid={{{wikidataid|}}}
+
| ?has location country = Country
 +
| ?Start date#-F[M j] = Start
 +
| ?End date#-F[M j] = End
 +
| mainlabel=Acronym
 +
| format=table
 +
| limit = 50
 +
| sort= Start date
 
}}
 
}}
 +
}}
 +
 +
Upcoming:
 +
<small>
 +
{{#ask: [[isA::Event]] [[has location city::{{{name|}}}]] [[End date::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}]]
 +
| ?title = Name
 +
| ?has location city = City
 +
| ?has location country = Country
 +
| ?Submission deadline#-F[M j] = Submissions due
 +
| ?Start date#-F[M j] = Start
 +
| ?End date#-F[M j] = End
 +
| mainlabel=Acronym
 +
| format=table
 +
| limit = 7
 +
| sort= Start date
 
}}
 
}}
{{#switch:{{{viewmode|}}}
+
</small>
|queryTable={{#ask:[[-Has subobject::{{PAGENAME}}]]|mainlabel=-|?Location comment=comment|?Location coordinates=coordinates|?Location level=level|?Location locationKind=locationKind|?Location name=name|?Location partOf=partOf|?Location wikidataid=wikidataid}}
+
[[Category:Location]]{{#default_form:Location}}
|hidden=
 
|masterdetail
 
|#default={{{!}} class="wikitable"
 
{{!}}-
 
!colspan="2"  {{!}}{{#formlink:form=Location|link text=✎|target={{FULLPAGENAME}}|tooltip=Start editing this Location}} [[Concept:Location|Location]]
 
{{!}}-
 
!style="text-align:left"  {{!}}[[Location name::@@@|name]]
 
{{!}}{{#if:{{{name|}}}|{{{name|}}}|}}
 
{{!}}-
 
!style="text-align:left"  {{!}}[[Location wikidataid::@@@|wikidataid]]
 
{{!}}{{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}
 
{{!}}-
 
!style="text-align:left"  {{!}}[[Location level::@@@|level]]
 
{{!}}{{#if:{{{level|}}}|{{{level|}}}|}}
 
{{!}}-
 
!style="text-align:left"  {{!}}[[Location coordinates::@@@|coordinates]]
 
{{!}}{{#if:{{{coordinates|}}}|{{{coordinates|}}}|}}
 
{{!}}-
 
!style="text-align:left"  {{!}}[[Location comment::@@@|comment]]
 
{{!}}{{#if:{{{comment|}}}|{{{comment|}}}|}}
 
{{!}}-
 
!style="text-align:left"  {{!}}[[Location locationKind::@@@|locationKind]]
 
{{!}}{{#if:{{{locationKind|}}}|{{{locationKind|}}}|}}
 
{{!}}-
 
!style="text-align:left"  {{!}}[[Location partOf::@@@|partOf]]
 
{{!}}{{#if:{{{partOf|}}}|{{{partOf|}}}|}}
 
{{!}}}
 
}}
 
 
 
[[Category:Location]]
 
 
</includeonly>
 
</includeonly>

Revision as of 17:10, 16 December 2021

This is the template Template:Location.

See also


Usage

{{Location
|comment=Some comment
|coordinates=Some coordinates
|level=Some level
|locationKind=Some locationKind
|name=Some name
|partOf=Some partOf
|wikidataid=Some wikidataid
}}
Location
nameNone World
wikidataidThis property of the datatype External identifier is used to provide the identifier with which an entity is indexed in Wikidata. Its external formatter URI is https://www.wikidata.org/entity/$1 Q1
levelNone 5
coordinatesNone 1° 0' 0.00" N, 1° 0' 0.00" E
commentNone Some comment
locationKindNone Some locationKind
partOfNone Category:World
zoomLevel
Loading map...

Conferences 0 events for World are known to this wiki.

Upcoming: