Difference between revisions of "Template:Release"

(Documentation)
(Changed syntax to allow a Release range)
Line 1: Line 1:
{{#ifeq:{{#svarget:anarelease}}|{{{1}}}|{{{2}}}}}<noinclude>
+
{{#ifexpr:{{2|9.9}}>={{#svarget:analrelease}} and {{#svarget:anarelease}}>={{{1|0.0}}}|{{{3}}}}}<noinclude>
 
===Syntax===
 
===Syntax===
 
<nowiki>{{Release|«firstRelease»|«lastRelease»|«content»}}</nowiki>
 
<nowiki>{{Release|«firstRelease»|«lastRelease»|«content»}}</nowiki>

Revision as of 18:18, 26 April 2017

Expression error: Unrecognized punctuation character "[".

Syntax

{{Release|«firstRelease»|«lastRelease»|«content»}}

«firstRelease» and «lastRelease» must be in the form «major».«minor», or can be omitted.

Examples

This shows only in 5.0 and after: {{Release|5.0||use the hover icon.}}

This shows only in 4.6 and before: {{Release||4.6|use the arrow toolbar button.}}

This shows in 5.0 but not 5.1: {{Release|5.0|5.0|the icon looks like "?!"}}

Bar characters

Bar characters ('|') cannot appear within «content», except when they are inside links. This is primarily a problem in tables. Use the {{!}} template in place of bars.

Use the ReleaseBar

Pages with content that vary by Release should place {{ReleaseBar}} at the top of the page.