Difference between revisions of "Template:SMWF"
(For cases where there should be a link) |
m (fix) |
||
Line 3: | Line 3: | ||
|{{#switch:{{{2}}} | |{{#switch:{{{2}}} | ||
|link = [[{{#explode:{{#explode:{{{1}}}|::|1}}|]]}}]] | |link = [[{{#explode:{{#explode:{{{1}}}|::|1}}|]]}}]] | ||
− | |{{#explode:{{#explode:{{{1}}}|::|1}}|]] | + | |{{#explode:{{#explode:{{{1}}}|::|1}}|]]}} |
}} | }} | ||
}}<noinclude> | }}<noinclude> |
Revision as of 16:44, 13 January 2011
{{{1}}}
Semantic MediaWiki is enabled. (refresh) |
{{SMWF}}
is a template used to produce a fallback if the extenstion Semantic MediaWiki is disabled. It uses string functions to remove the syntax used to add properties to a value.
This obviously won't fix inline queries that rely on the properties, but will remove broken code from pages.
Usage
{{SMWF|[[Property::Value]]}}
If SMW is enabled, this will give [[Property::Value]]
. If SMW is disabled, it will give Value
.
{{SMWF|[[Property::Value]]|link}}
If SMW is enabled, this will give [[Property::Value]]
. If SMW is disabled, it will give [[Value]]
.
See also
- {{IfSemantics}}
- {{SMW notice}}
- {{SMW banner}}