Jump to content

Template:Place: Difference between revisions

From Costa Sano MediaWiki
No edit summary
Tag: Reverted
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#cargo_declare:
_table=Places
|title=String
|code=String
|parent=Page
|type=String
|address=String
|latitude=Float
|longitude=Float
|notes=Text
}}
<noinclude>
<noinclude>
Place data template
Place data template
</noinclude>
</noinclude>
{{#cargo_declare:
|_table=Places
|Code=Page
|Parent=Page
|Label=String
|Type=String
|Address=String
|Latitude=Float
|Longitude=Float
|Notes=Text
}}


{{#cargo_store:
{{#cargo_store:
  title={{{title|}}}
  |Code={{FULLPAGENAME}}
  |code={{{code|}}}
  |Parent={{{Parent|}}}
  |parent={{{parent|}}}
  |Label={{{Label|}}}
  |type={{{type|}}}
  |Type={{{Type|}}}
  |address={{{address|}}}
  |Address={{{Address|}}}
  |latitude={{{latitude|}}}
  |Latitude={{{Latitude|}}}
  |longitude={{{longitude|}}}
  |Longitude={{{Longitude|}}}
  |notes={{{notes|}}}
  |Notes={{{Notes|}}}
}}
}}


== {{{title|}}} ==
== {{{Label|}}} ==
{{DISPLAYTITLE:{{{Label}}}}}


{{DISPLAYTITLE:{{{title}}}}}
{{#if:{{{Parent|}}}|
 
'''Parent place:''' [[{{{Parent}}}]]
{{#if:{{{parent|}}}|Parent place: [[{{{parent}}}]]}}
}}


'''Notes:'''
'''Notes:'''
{{{notes|}}}
{{{Notes|}}}


'''Map:'''
{{#if:{{{Latitude}}}{{{Longitude}}}|
{{#if:{{{latitude}}}{{{longitude}}}|
'''Map:''' 
[https://www.openstreetmap.org/?mlat={{{latitude}}}&mlon={{{longitude}}} View on OpenStreetMap]
[https://www.openstreetmap.org/?mlat={{{Latitude}}}&mlon={{{Longitude}}} View on OpenStreetMap]
}}
}}

Latest revision as of 15:17, 16 February 2026

Place data template


This template defines the table "Places". View table.


Notes:


Map: View on OpenStreetMap