Différences entre les versions de « ExternalLinks »
De Semantic MediaWiki - Sandbox
(created) |
(chg) |
||
(8 versions intermédiaires par 2 utilisateurs non affichées) | |||
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]] |
− | [[URL::https://sandbox.semantic-mediawiki.org/w/index.php? | + | 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: {{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: | ||
+ | {{#ask: [[ExternalLinks]] | ||
+ | |?#=Title | ||
+ | |?URL#nowiki | ||
+ | }} | ||
+ | |||
+ | {{#ask: [[ExternalLinks]] | ||
+ | |?#=Title | ||
+ | |?Has 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 | ||
+ | }} | ||
+ | |||
+ | {{#ask: [[ExternalLinks]] | ||
+ | |?#=Title | ||
+ | |?Has URL#nowiki | ||
+ | |format=template | ||
+ | |template=ExternalLink | ||
|link=none | |link=none | ||
− | | | + | |named args=true |
}} | }} | ||
+ | |||
+ | (which seems to blow up?) |
Dernière version du 9 avril 2019 à 16:08
Set an example url property: https://sandbox.semantic-mediawiki.org/w/index.php?somestuff[1=5&title=ExternalLinks&action=edit&redlink=1]
Set an second example url property: https://sandbox.semantic-mediawiki.org/w/index.php?somestuff%5B1%5D=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
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 |
Title | Has 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 :
[ ]
[ ExternalLinks]
(which seems to blow up?)