Template:P: Difference between revisions

1,056 bytes removed ,  1 year ago
no edit summary
No edit summary
No edit summary
 
Line 1: Line 1:
== TemplateData ==
<includeonly>{{#ifeq: {{str left|{{{1|}}}|1}} | P 
<templatedata>{
| {{#if:{{{anchor|}}}|{{anchor|Property:{{{1|}}}}}}}[[Property:{{{1|}}}|{{label|{{{1|}}}}}{{#ifeq:{{{show_p|}}}|no||&#32;<small dir="ltr">{{int:parentheses|{{{1|}}}}}</small>}}]]
"description": {
| {{#if:{{{anchor|}}}|{{anchor|Property:P{{{1|}}}}}}}[[Property:P{{{1|}}}|{{label|P{{{1|}}}}}{{#ifeq:{{{show_p|}}}|no||&#32;<small dir="ltr">{{int:parentheses|P{{{1|}}}}}</small>}}]]
"en": "Create a localized link to a property",
}}</includeonly>
"fr": "Crée un lien vers une propriété, traduit dans la langue de l’utilisateur"
},
"format": "inline",
"params": {
"1": {
"label": {
"en": "Property",
"fr": "Propriété",
"zh-hans": "属性"
},
"description": {
"en": "Property identifier",
"fr": "Identifiant de la propriété",
"zh-hans": "属性标识符"
},
"example": {
"en": "P31",
"fr": "P31"
},
"type": "string",
"required": true
},
"anchor": {
"label": {
"en": "Anchor",
"fr": "Ancre",
"zh-hans": "锚点"
},
"description": {
"en": "Create an anchor for the link",
"fr": "Créer une ancre pour le lien",
"zh-hans": "创建链接锚点"
},
"example": {
"en": "\"yes\" or \"no\"",
"fr": "\"yes\" ou \"no\"",
"zh-hans": "\"yes\"或\"no\""
},
"type": "string",
"default": {
"en": "no",
"fr": "no"
}
},
"show_p": {
"label": {
"en": "Show identifier",
"fr": "Afficher l’identiant",
"zh-hans": "显示标识符"
},
"description": {
"en": "Show the property identifier after its localized name",
"fr": "Affiche l’identifiant de la propriété après son nom traduit"
},
"example": {
"en": "\"yes\" or \"no\"",
"fr": "\"yes\" ou \"no\""
},
"type": "string",
"default": {
"en": "yes",
"fr": "yes"
}
}
}
}</templatedata>