Template:Place: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
Place data template | Place data template | ||
Defines the Cargo schema for Places. | |||
One page = one Place. | |||
Page title (PAGENAME) is the identifier (Code). | |||
</noinclude> | |||
{{#cargo_declare: | {{#cargo_declare: | ||
|table=Places | |||
| | |fields= | ||
Code=Page, | |||
Parent=Page, | |||
Label=String, | |||
Type=String, | |||
Address=String, | |||
Latitude=Float, | |||
Longitude=Float, | |||
Notes=Text | |||
}} | }} | ||
{{#cargo_store: | {{#cargo_store: | ||
|Code=PAGENAME | |||
| | |Parent={{{Parent|}}} | ||
| | |Label={{{Label|}}} | ||
| | |Type={{{Type|}}} | ||
| | |Address={{{Address|}}} | ||
| | |Latitude={{{Latitude|}}} | ||
| | |Longitude={{{Longitude|}}} | ||
| | |Notes={{{Notes|}}} | ||
}} | }} | ||
== {{{ | == {{{Label|}}} == | ||
{{DISPLAYTITLE:{{{Label}}}}} | |||
{{#if:{{{Parent|}}}| | |||
'''Parent place:''' [[{{{Parent}}}]] | |||
{{#if:{{{ | }} | ||
'''Notes:''' | '''Notes:''' | ||
{{{ | {{{Notes|}}} | ||
{{#if:{{{Latitude}}}{{{Longitude}}}| | |||
{{#if:{{{ | '''Map:''' | ||
[https://www.openstreetmap.org/?mlat={{{ | [https://www.openstreetmap.org/?mlat={{{Latitude}}}&mlon={{{Longitude}}} View on OpenStreetMap] | ||
}} | }} | ||
Revision as of 13:26, 16 February 2026
Place data template Defines the Cargo schema for Places. One page = one Place. Page title (PAGENAME) is the identifier (Code).
Error: "table" cannot be used as a Cargo Field name, because it is an SQL keyword.
Notes: