Difference between revisions of "Template:IfSemantics"
Dinoguy1000 (talk | contribs) (simpler syntax, and without any db queries (unless I'm mistaken and #arraymap is waaay less efficient than it could be)) |
Dinoguy1000 (talk | contribs) (→See also: +Template:IfNegref) |
||
Line 12: | Line 12: | ||
==See also== | ==See also== | ||
+ | * {{t|IfNegref}} | ||
* {{t|SMWF}} | * {{t|SMWF}} | ||
* {{t|SMW banner}} | * {{t|SMW banner}} |
Revision as of 19:25, 26 January 2011
Semantic MediaWiki is enabled. (refresh) |
{{IfSemantics}}
is a template used to control how content is displayed depending on whether the extension Semantic MediaWiki (SMW) is enabled or not.
Usage
The content of the first unnamed parameter is what displays if SMW is enabled. The content of the second unnamed parameter is what will be displayed if SMW is not enabled.
For example. {{IfSemantics|X|Y}}
will produce X if SMW is enabled and Y if it isn't enabled.
See also
- {{IfNegref}}
- {{SMWF}}
- {{SMW banner}}
- {{SMW notice}}