{{#ifeq:{{{small}}}|left|}}

50px Template documentation[view] [edit] [history] [purge]

{{#ifeq:mileposts |doc

    | 

{{#ifeq:show |show

|
        }}{{#if: |
         |   {{#ifexist:模板:Mileposts
                  | [[Category:{{#switch:模板 |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

Usage编辑

Imperial (standard) usage
{{Mileposts}}
{{#ifeq:{{{small}}}|left|}}
Metric usage
{{Mileposts|km=yes}} or {{Kmposts}}
{{#ifeq:{{{small}}}|left|}}

TemplateData编辑

{{#if:|{{#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

{{#switch:
 {{#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>