Difference between revisions of "Template:City data"

From Openresearch
Jump to: navigation, search
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude>This template is used to automatically display relevant information about locations such as [[:Category:City|cities]]. It has a single parameter "name" that can be used to change the text label used for the location. The default is to use the page name.
 
<noinclude>This template is used to automatically display relevant information about locations such as [[:Category:City|cities]]. It has a single parameter "name" that can be used to change the text label used for the location. The default is to use the page name.
  
Preview:
+
= Example =
 +
{{city_data|name=Berlin}}
 +
[[Category:Template]]
 +
 
 
</noinclude>
 
</noinclude>
  
{{#ask: [[has location city::{{PAGENAME}}]]
+
{{#ask: [[Has location city::{{PAGENAME}}]]
| has location
+
| ?Has location country=
| intro={{PAGENAME}} is located in  
+
| intro={{PAGENAME}} is located in&nbsp;
 +
| searchlabel=
 
| mainlabel=-
 
| mainlabel=-
 +
| limit=1
 
}}
 
}}
 +
 +
[[{{#ask: [[Has location city::{{PAGENAME}}]]
 +
| ?Has location country=
 +
| mainlabel=-
 +
| limit=1
 +
| searchlabel=
 +
| link=none
 +
}}]]
 +
  
 
''The following information is automatically gathered from the contents of {{SITENAME}}. To add or remove entries, create or edit the respective pages.''<!--
 
''The following information is automatically gathered from the contents of {{SITENAME}}. To add or remove entries, create or edit the respective pages.''<!--

Latest revision as of 11:27, 12 December 2020

This template is used to automatically display relevant information about locations such as cities. It has a single parameter "name" that can be used to change the text label used for the location. The default is to use the page name.

Example

[[]]


The following information is automatically gathered from the contents of Openresearch. To add or remove entries, create or edit the respective pages.



[[]]


The following information is automatically gathered from the contents of Openresearch. To add or remove entries, create or edit the respective pages.