Links in values

De Semantic MediaWiki - Sandbox

(Redirigé depuis Links in values)

→ 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[modifier | modifier le wikicode]

{{#set: Has text=This text contains a link to the [[Main Page]] of this wiki.}}


Query using the #show parser function[modifier | modifier le wikicode]

{{#show:
 {{PAGENAME}}
 |?Has text
}}

This text contains a link to the Main Page of this wiki.

Query using the #ask parser function[modifier | modifier le wikicode]

{{#ask:
 [[{{PAGENAME}}]]
 |?Has text
}}
 Has textUsed to store strings of arbitrary length.
Links in valuesThis text contains a link to the Main Page of this wiki.
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.