Template:Sandbox: Difference between revisions

From Alpine Linux
m (Add documentation...)
 
(57 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{1}}} | short = 3.20 | v = v3.20 | 3.20.3 }}</includeonly>
<noinclude><!--                          ^^^^      ^^^^^  ^^^^^^
When updating this template, the latest version string must be changed three times, two lines above this comment
The first is the short version (major.minor)
The second is the short version prefixed with a lowercase v (vmajor.minor)
The final is the full version string (major.minor.patchlevel)--></noinclude>
<noinclude>{{Template}}
<noinclude>{{Template}}
This template produces a string containing the latest version of Alpine Linux


=== Usage ===
<pre>{{AlpineLatest|short|v}}</pre>


== [[Image:Newspaper_Cover.svg‎|32px|link=]] Recent News ==
{{define|short|The string produced will only contain the minor and major version}}
{{Sandbox|2010-07-16 Alpine 2.0.0 Beta3 released|
{{define|v|The string produced will only contain the minor and major version prefixed with a v}}
This is the first announced beta release for v2.0 series. See [[Release Notes for Alpine 2.0.0_beta3]] for more details of the release.
|[[User:ncopa|ncopa]] 20:58, 16 July 2010 (GMT)
}}


{{Sandbox|2010-07-16 Alpine 2.0.0 Beta3 released|
This template will only accept one parameter at a time, all parameters are optional.<br>
This is the first announced beta release for v2.0 series. See [[Release Notes for Alpine 2.0.0_beta3]] for more details of the release.
If no parameters are supplied, or the parameters which are supplied are invalid, the full version string (minor.major.patchlevel) will be produced.
|[[User:ncopa|ncopa]] 20:58, 16 July 2010 (GMT)
}}


=== Examples ===
Display the full version string of the latest Alpine Linux stable:
<pre>{{AlpineLatest}}</pre>
will produce:
{{AlpineLatest}}


</noinclude><onlyinclude>
Display the short version string of the latest Alpine Linux stable:
<span class="editsection plainlinks" id="doc_editlinks">[[{{fullurl:News_talk:{{{1}}}|}} Discuss]]</span>
<pre>{{AlpineLatest|short}}</pre>
<h5>{{{1}}}</h5>
will produce:
{{{2}}}
{{AlpineLatest|short}}
<div style="text-align: right;">{{{3}}}</div>
----
</onlyinclude>


 
Display the short version string of the latest Alpine Linux stable, prefixed with v:
== Note ==
<pre>{{AlpineLatest|v}}</pre>
<noinclude>{{Template}}
will produce:
 
{{AlpineLatest|v}}
'''A 'Note' box used to emphasize important information.'''
</noinclude>
 
<!--If you're updating the string containing the latest version of Alpine, go to the top!-->
====Usage====
 
{{Codeline|1=<nowiki>{{Note|This text should be noted, with a [[link to nowhere]] or a [[Special:Version| link to that works]].}}</nowiki>}}
 
====Example====
 
{{Note|This text should be noted, with a [[link to nowhere]] or a [[Special:Version| link to that works]].}}</noinclude><includeonly>{{Box BLUE|Note:|{{{1}}}}}</span></includeonly>

Latest revision as of 17:44, 6 September 2024

Template Documentation for Sandbox

This page is a template and should only be used as part of other articles. For more information, read Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to voice your opinion regarding this template.

This template produces a string containing the latest version of Alpine Linux

Usage

{{AlpineLatest|short|v}}

short
The string produced will only contain the minor and major version

v
The string produced will only contain the minor and major version prefixed with a v

This template will only accept one parameter at a time, all parameters are optional.
If no parameters are supplied, or the parameters which are supplied are invalid, the full version string (minor.major.patchlevel) will be produced.

Examples

Display the full version string of the latest Alpine Linux stable:

{{AlpineLatest}}

will produce: 3.20.3

Display the short version string of the latest Alpine Linux stable:

{{AlpineLatest|short}}

will produce: 3.20.3

Display the short version string of the latest Alpine Linux stable, prefixed with v:

{{AlpineLatest|v}}

will produce: 3.20.3