Difference between revisions of "Template:GVVersion"

From GreenVulcano Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
| style="padding: .1em .3em; border: 3px solid #e30; text-align: center;" | <span style="font-weight: bold; font-size: 180%;">{{{version|X.X}}}</span>
 
| style="padding: .1em .3em; border: 3px solid #e30; text-align: center;" | <span style="font-weight: bold; font-size: 180%;">{{{version|X.X}}}</span>
 
|}<noinclude>
 
|}<noinclude>
 +
 +
 
<div style="background-color: #ffe; border: 1px solid #888; padding:0.5em">
 
<div style="background-color: #ffe; border: 1px solid #888; padding:0.5em">
 
===Template documentation===
 
===Template documentation===
Line 8: Line 10:
 
This template shows the valid {{GVESB}} version for the paragraph. It appears on the right side of the window in a bordered text field.
 
This template shows the valid {{GVESB}} version for the paragraph. It appears on the right side of the window in a bordered text field.
 
==Example==
 
==Example==
{{GVVersion|version=3.1}}
+
{{GVVersion|version=&ge;3.1}}
If the paragraph is valid for {{GVESB}} version 3.1, you should write this.
+
If the paragraph is valid for {{GVESB}} version 3.1 and later, you should write this.
  
<nowiki>{{GVVersion|version=3.1}}</nowiki>
+
<nowiki>{{GVVersion|scope=&amp;ge;|version=3.1}}</nowiki>
 
==Usage==
 
==Usage==
This template does not require parameters.
+
<syntaxhighlight lang="xml">{{GVVersion[|scope = &gt;|&ge;|&lt;|&le;][|version = version number]}}</syntaxhighlight>
 +
*''scope'': is a symbol showing which scope is to be applied for the version. For instance, a &amp;ge; symbol (&ge;) states that the paragraph is appliable for {{GVESB}} 3.1 and later. If omitted, the paragraph is valid only for the version.
 +
*''version'': is the version to be shown.
 
</div>
 
</div>
 
<noinclude>
 
<noinclude>

Latest revision as of 16:30, 27 February 2012

Version: X.X


Template documentation

Purpose

This template shows the valid GreenVulcano® ESB version for the paragraph. It appears on the right side of the window in a bordered text field.

Example

Version: ≥3.1

If the paragraph is valid for GreenVulcano® ESB version 3.1 and later, you should write this.

{{GVVersion|scope=&ge;|version=3.1}}

Usage

{{GVVersion[|scope = &gt;|&ge;|&lt;|&le;][|version = version number]}}
  • scope: is a symbol showing which scope is to be applied for the version. For instance, a &ge; symbol (≥) states that the paragraph is appliable for GreenVulcano® ESB 3.1 and later. If omitted, the paragraph is valid only for the version.
  • version: is the version to be shown.