Template:If-number: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 13: Line 13:
Example:
Example:
* Source:
* Source:
<nowiki>Pressez le citron: {{if-number | 11}}</nowiki>
<nowiki>Pressez le citron: {{if-number|11}}</nowiki>
* Result:
* Result:
Pressez le citron: {{if-number | 11}}
Pressez le citron: {{if-number|11}}
</noinclude><includeonly><span style="padding-left:1em; padding-right:1em; background-color:black; color:white;">{{{1}}}</span></includeonly>
</noinclude><includeonly>[<span style="padding-left:0.3em; padding-right:0.3em; background-color:black; color:white;">{{{1}}}</span>]</includeonly>

Latest revision as of 18:34, 22 December 2011

  • This template can be used to document interfaces, i.e. it "puts some short text into a box".
  • Don't edit if you don't know who to create templates.

Usage

Syntax:

  • {{if-number | word(s) }}

Example:

  • Source:

Pressez le citron: {{if-number|11}}

  • Result:

Pressez le citron: [11]