Difference between pages "Template:Formatter link" and "Template:Formatter link/sandbox"

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
imported>Struthious Bandersnatch
(TemplateData)
 
imported>Struthious Bandersnatch
 
Line 1: Line 1:
 
{{#if:{{{code|}}}|[{{#invoke:String|replace|source={{{url|}}}|pattern=$1|replace={{{code|}}}}} {{{label|{{{code|}}}}}}]}}<noinclude>
 
{{#if:{{{code|}}}|[{{#invoke:String|replace|source={{{url|}}}|pattern=$1|replace={{{code|}}}}} {{{label|{{{code|}}}}}}]}}<noinclude>
 
{{documentation}}
 
{{documentation}}
<templatedata>
+
</noinclude>
{
 
"params": {
 
"code": {
 
"description": "the unique ID value of the target page",
 
"required": true
 
},
 
"url": {
 
"description": "the Wikidata “formatter URL (P1630)”",
 
"required": true
 
},
 
"label": {
 
"description": "the text of the link (defaults to the value of “code”)"
 
}
 
},
 
"description": "Combines a Wikidata “formatter URL (P1630)” with an id code to produce a URL",
 
"format": "inline"
 
}
 
</templatedata></noinclude>