Difference between revisions of "Template:IfSemantics"

From Yugipedia
Jump to: navigation, search
(Documentation)
Line 1: Line 1:
 
<noinclude>{{TagSyncPage}}
 
<noinclude>{{TagSyncPage}}
 
</noinclude><includeonly>{{#if:{{#ask:[[*]]|limit=0}}|{{{2|}}}|{{{1|1}}}}}</includeonly><noinclude>
 
</noinclude><includeonly>{{#if:{{#ask:[[*]]|limit=0}}|{{{2|}}}|{{{1|1}}}}}</includeonly><noinclude>
{{TagSync|include: *}}[[Category:Templates/technical|{{PAGENAME}}]]</noinclude>
+
{{TagSync|include: *}}
 +
 
 +
{{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.
 +
 
 +
==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.
 +
 
 +
[[Category:Templates/technical|{{PAGENAME}}]]</noinclude>

Revision as of 21:16, 18 January 2011

Template:TagSyncPage

Template:TagSync

{{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.