Vorlage:Location/doc: Unterschied zwischen den Versionen
StadtbahnBI>Tacsipacsi Undo revision 523652139 by Albinfo (talk): doesn’t work, see talk page. This template cannot be properly described using TemplateData because of the two syntax versions; {{{3}}} can be latitude seconds or attributes, depending on the other parameters. |
Tt (Diskussion | Beiträge) K 1 Version importiert |
(kein Unterschied)
| |
Aktuelle Version vom 9. Oktober 2021, 14:25 Uhr
{{#invoke:Lua banner|main}}
Syntax #1: decimal degrees
{{#invoke:Languages|autolang|base=TemplateBox/i18n |useargs=both |templateData={{#invoke:TemplateBox|templatedata}} |JSONFM={{#invoke:TemplateBox|templatedata|formatting=pretty}} |paramTable={{#invoke:TemplateBox|paramtable}} |usageSample={{#invoke:TemplateBox|usagesample}} |argCount={{#invoke:TemplateBox|argcount}} |desc={{#invoke:TemplateBox|description}}
|templateDataInfo=
|i18n-subpage=Template:Location/i18n |usergroup=all |name=Location }}
Syntax #2: Degrees/Minutes/Seconds (DMS)
{{#invoke:Languages|autolang|base=TemplateBox/i18n |useargs=both |templateData={{#invoke:TemplateBox|templatedata}} |JSONFM={{#invoke:TemplateBox|templatedata|formatting=pretty}} |paramTable={{#invoke:TemplateBox|paramtable}} |usageSample={{#invoke:TemplateBox|usagesample}} |argCount={{#invoke:TemplateBox|argcount}} |desc={{#invoke:TemplateBox|description}}
|templateDataInfo=
|i18n-subpage=Template:Location/i18n |usergroup=all |name=Location }}
Syntax #2a: Degrees/Minutes/Seconds (DMS) symbols
It is possible to use the output format (of e.g. Location, or Wikimapia) as the input for Location:
The DMS data string can be converted from the symbol format
e.g. {{ Location{{#invoke:Iteration|tleparm}} }}
to the above DMS format; all the other parameters also like above.
Additional spaces or commas are allowed.
Examples
| Code |
|
|---|---|
| Produces | {{#invoke:Coordinates|LocationTemplateCore| mode=camera }}{{#invoke:TemplatePar|check
|opt= secondary= lang= prec= bare= globe= mode= lat= lon= 1= 2= 3= 4= 5= 6= 7= 8= 9= wikidata= Wikidata= attributes= |cat= Media using Location template with incorrect parameter |errNS=6 14 |template= Template:Location }} |
| Code |
|
|---|---|
| Produces | {{#invoke:Coordinates|LocationTemplateCore| mode=camera }}{{#invoke:TemplatePar|check
|opt= secondary= lang= prec= bare= globe= mode= lat= lon= 1= 2= 3= 4= 5= 6= 7= 8= 9= wikidata= Wikidata= attributes= |cat= Media using Location template with incorrect parameter |errNS=6 14 |template= Template:Location }} |
| Code | <templatestyles src="Template:Mono/styles.css"/>{{Location|34° 01′ 27.37″ N, 116° 09′ 29.88″ W|region:DE-NI_scale:10000_heading:SW}} |
|---|---|
| Produces | {{#invoke:Coordinates|LocationTemplateCore| mode=camera }}{{#invoke:TemplatePar|check
|opt= secondary= lang= prec= bare= globe= mode= lat= lon= 1= 2= 3= 4= 5= 6= 7= 8= 9= wikidata= Wikidata= attributes= |cat= Media using Location template with incorrect parameter |errNS=6 14 |template= Template:Location }} |
| Code | <templatestyles src="Template:Mono/styles.css"/>{{Location|34|1|27.37|N|116|9|...}} |
|---|---|
| Produces | {{#invoke:Coordinates|LocationTemplateCore| mode=camera }}{{#invoke:TemplatePar|check
|opt= secondary= lang= prec= bare= globe= mode= lat= lon= 1= 2= 3= 4= 5= 6= 7= 8= 9= wikidata= Wikidata= attributes= |cat= Media using Location template with incorrect parameter |errNS=6 14 |template= Template:Location }} |