« Links in values » : différence entre les versions
De Semantic MediaWiki - Sandbox
(chg) |
(chg) |
||
Ligne 1 : | Ligne 1 : | ||
Instead of using [[semantic-mw:in-text annotation|in-text annotation]] one can use the <code>#set</code> parser function to avoid having to touch the [[semantic-mw:Help:$smwgLinksInValues|<code>$smwgLinksInValues</code> configuration parameter]]. | Instead of using [[semantic-mw:in-text annotation|in-text annotation]] one can use the <code>#set</code> parser function to avoid having to touch the [[semantic-mw:Help:$smwgLinksInValues|<code>$smwgLinksInValues</code> configuration parameter]]. | ||
== Annotation | == Annotation using the <code>#set</code> parser function == | ||
<pre> | <pre> | ||
{{#set: Has text=This text contains a link to the [[Main Page]] of this wiki.}} | {{#set: Has text=This text contains a link to the [[Main Page]] of this wiki.}} | ||
Ligne 6 : | Ligne 6 : | ||
{{#set: Has text=This text contains a link to the [[Main Page]] of this wiki.}} | {{#set: Has text=This text contains a link to the [[Main Page]] of this wiki.}} | ||
== Query | == Query using the <code>#show</code> parser function == | ||
<pre> | <pre> | ||
{{#show: | {{#show: | ||
Ligne 18 : | Ligne 18 : | ||
}} | }} | ||
== Query | == Query using the <code>#ask</code> parser function == | ||
<pre> | <pre> | ||
{{#ask: | {{#ask: |
Version du 24 octobre 2016 à 18:57
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. |