Difference between revisions of "Template:SMWF"
Dinoguy1000 (talk | contribs) m (Changed protection level for "Template:SMWF": High traffic page: transcluded by Template:CardTable2 ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
(categories are in the /doc page) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{#if:{{#arraymap:}} | + | {{ |
− | |{{# | + | #if: {{#arraymap:}} |
− | + | | {{ | |
− | + | #if: {{{2|}}} | |
− | + | | [[{{ #explode: {{ #explode: {{{1}}} | :: | 1 }} | ]] }}]] | |
− | |{{{1}}} | + | | {{ #explode: {{ #explode: {{{1}}} | :: | 1 }} | ]] }} |
+ | }} | ||
+ | | {{{1}}} | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
− | + | </noinclude> | |
− |
Latest revision as of 18:50, 22 December 2012
{{{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[edit]
{{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[edit]
- {{IfSemantics}}
- {{SMW notice}}
- {{SMW banner}}