模板:Mileposts
[[Image:{{#if:|Kilometer|Mile}} marker.svg|x40px|link=|alt=]] | This section contains a table that is missing {{#if:|kilometre posts|mileposts}} for one or more junctions. |
{{#ifeq:{{{small}}}|left|}}
{{#ifeq:mileposts |doc
|
{{#ifeq:show |show
|40px | This is a documentation subpage for 模板:Mileposts. It contains usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:模板 |用户 |模板 template page |{{#if:模板 |模板 page|article}}}}}}}}. |
}}{{#if: | | {{#ifexist:模板:Mileposts | [[Category:{{#switch:模板 |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
Usage编辑
- Imperial (standard) usage
- {{Mileposts}}
[[Image:{{#if:|Kilometer|Mile}} marker.svg|x40px|link=|alt=]] | This section contains a table that is missing {{#if:|kilometre posts|mileposts}} for one or more junctions. |
- Metric usage
- {{Mileposts|km=yes}} or {{Kmposts}}
[[Image:{{#if:yes|Kilometer|Mile}} marker.svg|x40px|link=|alt=]] | This section contains a table that is missing {{#if:yes|kilometre posts|mileposts}} for one or more junctions. |
TemplateData编辑
{{#if:|{{#switch:
{{#switch:
|={{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|S|s}}ee the monthly parameter usage report for {{#if:|[[Template:]]|this template}}.
|None|none=Parameter usage report |for|For=Parameter usage report for {{#if:|[[Template:]]|Template:Mileposts}}. |#default=[1]
}}|This is the {{#if:|TemplateData|TemplateData}} documentation for this template used by VisualEditor and other tools; {{#switch:
|={{#ifeq:{{safesubst:#switch: yes |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|S|s}}ee the monthly parameter usage report for {{#if:|[[Template:]]|this template}}.
|None|none=Parameter usage report |for|For=Parameter usage report for {{#if:|[[Template:]]|Template:Mileposts}}. |#default=[2]
}}}}
TemplateData for Mileposts
{{#if: | {{{demospace}}} | {{#ifeq:模板|模板 | template | other }} }}
| template = {{#if:{{#ifeq:Milepos|sandbox|1}}{{#ifeq:Mileposts|doc|1}}||
}} | other | #default = }} <templatedata> {
"description": "A cleanup template to indicate that the junction table needs mileposts or kilometreposts", "params": { "km": { "label": "km", "description": "yes if the road is in a country that uses metric measurements", "type": "string", "required": false } }
} </templatedata>