Template:Place: Difference between revisions
Appearance
Created page with "<noinclude> Place data template {{#cargo_declare: _table=Places |title=String |code=String |parent=Page |type=String |latitude=Float |longitude=Float |notes=Text }} {{#forminput:form=Place}} </noinclude> {{#cargo_store: title={{{title|}}} |code={{PAGENAME}} |parent={{{parent|}}} |type={{{type|}}} |latitude={{{latitude|}}} |longitude={{{longitude|}}} |notes={{{notes|}}} }} == {{{title|}}} ==" |
No edit summary |
||
| (17 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
Place data template | Place data template | ||
</noinclude> | |||
{{#cargo_declare: | {{#cargo_declare: | ||
_table=Places | |_table=Places | ||
| | |Code=Page | ||
| | |Parent=Page | ||
| | |Label=String | ||
| | |Type=String | ||
| | |Address=String | ||
| | |Latitude=Float | ||
| | |Longitude=Float | ||
|Notes=Text | |||
}} | |||
{{#cargo_store: | |||
|Code={{FULLPAGENAME}} | |||
|Parent={{{Parent|}}} | |||
|Label={{{Label|}}} | |||
|Type={{{Type|}}} | |||
|Address={{{Address|}}} | |||
|Latitude={{{Latitude|}}} | |||
|Longitude={{{Longitude|}}} | |||
|Notes={{{Notes|}}} | |||
}} | }} | ||
{{ | == {{{Label|}}} == | ||
{{DISPLAYTITLE:{{{Label}}}}} | |||
{{# | {{#if:{{{Parent|}}}| | ||
'''Parent place:''' [[{{{Parent}}}]] | |||
}} | }} | ||
'''Notes:''' | |||
{{{Notes|}}} | |||
{{#if:{{{Latitude}}}{{{Longitude}}}| | |||
'''Map:''' | |||
[https://www.openstreetmap.org/?mlat={{{Latitude}}}&mlon={{{Longitude}}} View on OpenStreetMap] | |||
}} | |||