Modèle:Mileposts/doc : Différence entre versions

De Wikisisar
Aller à : navigation, rechercher
m (add {{TemplateData header}} (via JWB))
 
m (1 révision importée)
 
(Aucune différence)

Version actuelle datée du 21 octobre 2017 à 20:57

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|
        }}{{#if: |
         |   {{#ifexist:Modèle:Mileposts
                  | [[Category:{{#switch:Modèle |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:| |This is the {{#if:|TemplateData|TemplateData}} documentation for this template used by VisualEditor and other tools.}}

See the monthly error report for this template.

TemplateData for Mileposts

{{#ifeq:doc|sandbox||

}} <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>