Différences entre les versions de « Links in values »
De Semantic MediaWiki - Sandbox
(add) |
(chg) |
||
(Une version intermédiaire par le même utilisateur non affichée) | |||
Ligne 1 : | Ligne 1 : | ||
− | <big>→ See [[semantic-mw:Demo:Links_in_values|links in values]] for more examples!</big> | + | <big>→ See the demo page on [[semantic-mw:Demo:Links_in_values|links in values]] for more examples!</big> |
Ligne 33 : | Ligne 33 : | ||
}} | }} | ||
− | [[Category: | + | [[Category:Semantic MediaWiki example]] |
Dernière version du 5 janvier 2019 à 14:41
→ See the demo page on links in values for more examples!
Instead of using in-text annotation one can use the #set
parser function to avoid having to touch the $smwgLinksInValues
configuration parameter.
Annotation using the #set
parser function
{{#set: Has text=This text contains a link to the [[Main Page]] of this wiki.}}
Query using the #show
parser function
{{#show: {{PAGENAME}} |?Has text }}
This text contains a link to the Main Page of this wiki.
Query using the #ask
parser function
{{#ask: [[{{PAGENAME}}]] |?Has text }}
Has text | |
---|---|
Links in values | This text contains a link to the Main Page of this wiki. |