Difference between revisions of "Template:IfSemantics"

From Yugipedia
Jump to: navigation, search
(Documentation)
(add {{SMW banner}} and see alsos)
Line 2: Line 2:
 
</noinclude><includeonly>{{#if:{{#ask:[[*]]|limit=0}}|{{{2|}}}|{{{1|1}}}}}</includeonly><noinclude>
 
</noinclude><includeonly>{{#if:{{#ask:[[*]]|limit=0}}|{{{2|}}}|{{{1|1}}}}}</includeonly><noinclude>
 
{{TagSync|include: *}}
 
{{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.
 
{{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.
Line 9: Line 10:
  
 
For example. {{tlx|IfSemantics|X|Y}} will produce X if SMW is enabled and Y if it isn't enabled.
 
For example. {{tlx|IfSemantics|X|Y}} will produce X if SMW is enabled and Y if it isn't enabled.
 +
 +
==See also==
 +
* {{t|SMWF}}
 +
* {{t|SMW banner}}
 +
* {{t|SMW notice}}
  
 
[[Category:Templates/technical|{{PAGENAME}}]]</noinclude>
 
[[Category:Templates/technical|{{PAGENAME}}]]</noinclude>

Revision as of 01:33, 19 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.

See also