Différences entre les versions de « ExternalLinks »
De Semantic MediaWiki - Sandbox
Balise : Éditeur de wikicode 2017 |
Balise : Éditeur de wikicode 2017 |
||
Ligne 1 : | Ligne 1 : | ||
− | Set | + | Set an example url property: [[URL::https://sandbox.semantic-mediawiki.org/w/index.php?somestuff[1]=5&title=ExternalLinks&action=edit&redlink=1]] |
− | + | Display it plainly: {{#show:ExternalLinks|?URL#nowiki}} | |
− | |||
+ | Test template output: {{ExternalLink|Title=ExternalLinks|URL=https://sandbox.semantic-mediawiki.org/w/index.php?somestuff[1]=5&title=ExternalLinks&action=edit&redlink=1}} | ||
+ | |||
+ | Show as result of query: | ||
+ | {{#ask: [[ExternalLinks]] | ||
+ | |?#=Title | ||
+ | |?URL#nowiki | ||
+ | }} | ||
+ | |||
+ | |||
+ | Use the template as query output : | ||
{{#ask: [[ExternalLinks]] | {{#ask: [[ExternalLinks]] | ||
|?#=Title | |?#=Title | ||
|?URL#nowiki | |?URL#nowiki | ||
|format=template | |format=template | ||
+ | |template=ExternalLink | ||
|link=none | |link=none | ||
− | |||
}} | }} | ||
+ | |||
+ | (which seems to blow up?) |
Version du 9 avril 2019 à 15:08
Set an example url property: https://sandbox.semantic-mediawiki.org/w/index.php?somestuff[1=5&title=ExternalLinks&action=edit&redlink=1]
Display it plainly: https://sandbox.semantic-mediawiki.org/w/index.php?somestuff[1]=5&title=ExternalLinks&action=edit&redlink=1
Test template output: [1=5&title=ExternalLinks&action=edit&redlink=1 ExternalLinks]
Show as result of query:
Title | URL« URL » est un type et une propriété prédéfinie fournie par MediaWiki Sémantique pour représenter des valeurs d’URI/URL. |
---|---|
ExternalLinks | https://sandbox.semantic-mediawiki.org/w/index.php?somestuff[1]=5&title=ExternalLinks&action=edit&redlink=1 |
Use the template as query output :
[ ]
(which seems to blow up?)