[edit] [ ] Template documentation
Arquivo:Imbox speedy deletion.png | Semantic MediaWiki is disabled. (refresh) |
{{{{ #arraydefine: links | Predefinição:IfSemantics | * | unique }}{{ #arrayprint: links || $x$ | 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. {{{{ #arraydefine: links | Predefinição:IfSemantics | * | unique }}{{ #arrayprint: links || $x$ | IfSemantics }}|X|Y}}
will produce X if SMW is enabled and Y if it isn't enabled.
See also[]
- {{{{ #arraydefine: links | Template:IfNegref | * | unique }}{{ #arrayprint: links || $x$ | IfNegref }}}}
- {{{{ #arraydefine: links | Template:SMWF | * | unique }}{{ #arrayprint: links || $x$ | SMWF }}}}
- {{{{ #arraydefine: links | Template:SMW banner | * | unique }}{{ #arrayprint: links || $x$ | SMW banner }}}}
- {{{{ #arraydefine: links | Template:SMW notice | * | unique }}{{ #arrayprint: links || $x$ | SMW notice }}}}
The above documentation is transcluded from Predefinição:IfSemantics/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |