Permanently protected template

Difference between revisions of "Template:IfSemantics"

From Yugipedia
Jump to: navigation, search
(See also: +Template:IfNegref)
(Moved the documentation to a subpage.)
Line 1: Line 1:
<noinclude>{{TagSyncPage}}
+
<onlyinclude>{{#if:{{#arraymap:}}|{{{2|}}}|{{{1|1}}}}}</onlyinclude>
</noinclude><includeonly>{{#if:{{#arraymap:}}|{{{2|}}}|{{{1|1}}}}}</includeonly><noinclude>
 
{{TagSync|include: *}}
 
{{SMW banner}}
 
  
{{tlx|IfSemantics}} is a template used to control how content is displayed depending on whether the extension [[smw:|Semantic MediaWiki (SMW)]] is enabled or not.
+
{{documentation}}
 
 
==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. {{tlx|IfSemantics|X|Y}} will produce X if SMW is enabled and Y if it isn't enabled.
 
 
 
==See also==
 
* {{t|IfNegref}}
 
* {{t|SMWF}}
 
* {{t|SMW banner}}
 
* {{t|SMW notice}}
 
 
 
[[Category:Templates/technical|{{PAGENAME}}]]</noinclude>
 

Revision as of 23:41, 28 February 2011

1