Difference between revisions of "Template:LegMap"
Jump to navigation
Jump to search
(pushed from fahl by wikipush) |
|||
| (49 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{#ask: [[-Has subobject::{{FULLPAGENAME}}]][[ | + | <noinclude> |
| − | + | Template to display leg routes on a Map. | |
| − | + | see {{Link|target=:Template:LegMapLines}} | |
| − | + | === Usage === | |
| + | <pre>{{LegMap | ||
| + | |center=cityName | ||
| + | |zoom=12 | ||
| + | |debug=false}}</pre> | ||
| + | [[Category:Template]] | ||
| + | </noinclude><includeonly> | ||
| + | {{#vardefine:leg_lines|{{#ask:[[-Has subobject::{{FULLPAGENAME}}]][[IsA::Leg]] | ||
| + | |mainlabel=- | ||
| + | |?Leg from=from | ||
| + | |?Leg to=to | ||
| + | |?Leg transport=transport | ||
| + | |format=template | ||
| + | |template=LegLine | ||
| + | |sort=Leg wp_num | ||
| + | |named args=yes | ||
| + | |sep=: | ||
| + | }}}} | ||
| + | {{#if:{{{debug|}}}| | ||
| + | == Lines == | ||
| + | {{#ask:[[-Has subobject::{{FULLPAGENAME}}]][[Leg_from::+]] | ||
| + | |mainlabel=- | ||
| + | |?Leg wp_num=# | ||
| + | |?Leg from=from | ||
| + | |?Leg to=to | ||
| + | |?Leg transport=transport | ||
| + | |format=table | ||
| + | |sort=Leg wp_num | ||
| + | }} | ||
| + | {{#var:leg_lines}} | ||
| + | |||
| + | == LegMapLines == | ||
| + | }} | ||
| + | {{LegMapLines | ||
| + | |lines={{#var:leg_lines}} | ||
| + | |title={{{title|Legs}}} | ||
| + | |subtitle={{{subtitle|from subobjects}}} | ||
| + | |color={{{color|blue}}} | ||
| + | |center={{{center|}}} | ||
| + | |zoom={{{zoom|12}}} | ||
| + | |width={{{width|800}}} | ||
| + | |height={{{height|600}}} | ||
| + | |debug={{{debug|}}} | ||
| + | }} | ||
| + | </includeonly> | ||
Latest revision as of 15:37, 19 January 2025
Template to display leg routes on a Map. see Template:LegMapLines
Usage
{{LegMap
|center=cityName
|zoom=12
|debug=false}}