« ExternalLinks » : différence entre les versions
(chg) |
(chg) |
||
(3 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 10 : | Ligne 10 : | ||
Test template output: {{ExternalLink|Title=ExternalLinks|URL=https://sandbox.semantic-mediawiki.org/w/index.php?somestuff[1]=5&title=ExternalLinks&action=edit&redlink=1}} | Test template output: {{ExternalLink|Title=ExternalLinks|URL=https://sandbox.semantic-mediawiki.org/w/index.php?somestuff[1]=5&title=ExternalLinks&action=edit&redlink=1}} | ||
{{ExternalLink|Title=ExternalLinks|URL=https://sandbox.semantic-mediawiki.org/w/index.php?somestuff%5B1%5D=5&title=ExternalLinks&action=edit&redlink=1}} | |||
Show as result of query: | Show as result of query: | ||
Ligne 15 : | Ligne 17 : | ||
|?#=Title | |?#=Title | ||
|?URL#nowiki | |?URL#nowiki | ||
}} | |||
{{#ask: [[ExternalLinks]] | |||
|?#=Title | |||
|?Has URL#nowiki | |||
}} | }} | ||
Ligne 25 : | Ligne 32 : | ||
|template=ExternalLink | |template=ExternalLink | ||
|link=none | |link=none | ||
}} | |||
{{#ask: [[ExternalLinks]] | |||
|?#=Title | |||
|?Has URL#nowiki | |||
|format=template | |||
|template=ExternalLink | |||
|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?)