« ExternalLinks » : différence entre les versions
(chg) |
(chg) |
||
Ligne 40 : | Ligne 40 : | ||
|template=ExternalLink | |template=ExternalLink | ||
|link=none | |link=none | ||
|named args=true | |||
}} | }} | ||
(which seems to blow up?) | (which seems to blow up?) |
Dernière version du 9 avril 2019 à 16:08
Set an example url property: [[URL::https://sandbox.semantic-mediawiki.org/w/index.php?somestuff[1]=5&title=ExternalLinks&action=edit&redlink=1]]
Set an second example url property: [[Has URL::https://sandbox.semantic-mediawiki.org/w/index.php?somestuff%5B1%5D=5&title=ExternalLinks&action=edit&redlink=1]]
Display it plainly: {{#show:ExternalLinks|?URL#nowiki}}
{{#show:ExternalLinks|?Has URL#nowiki}}
Test template output: [1=5&title=ExternalLinks&action=edit&redlink=1 ExternalLinks]
Show as result of query: {{#ask: ExternalLinks |?#=Title |?URL#nowiki }}
{{#ask: ExternalLinks |?#=Title |?Has URL#nowiki }}
Use the template as query output :
{{#ask: ExternalLinks
|?#=Title
|?URL#nowiki
|format=template
|template=ExternalLink
|link=none
}}
{{#ask: ExternalLinks |?#=Title |?Has URL#nowiki |format=template |template=ExternalLink |link=none |named args=true }}
(which seems to blow up?)