Difference between revisions of "Template:Release"

(Changed to a release range, with first and last parameters)
Line 21: Line 21:
 
Pages with content that vary by Release should place <code><nowiki>{{ReleaseBar}}</nowiki></code> at the top of the page.
 
Pages with content that vary by Release should place <code><nowiki>{{ReleaseBar}}</nowiki></code> at the top of the page.
 
</noinclude>
 
</noinclude>
 +
 +
=== Math within content ===
 +
It seems that you cannot have a <code>&lt;math>...&lt;math/></code> tag inside «content». When you do, it breaks. (If you find a way, document it here).

Revision as of 22:15, 17 November 2017

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.


Math within content

It seems that you cannot have a <math>...<math/> tag inside «content». When you do, it breaks. (If you find a way, document it here).