Difference between revisions of "Template:Codename"

From CRIU
Jump to navigation Jump to search
(created)
 
(added doc)
Line 1: Line 1:
{{#switch: {{{1}}}
+
<includeonly>{{#switch: {{{1}}}
 
  | 2.1  = Steel Lapwing
 
  | 2.1  = Steel Lapwing
 
  | 2.2  = Carbon Nightingale
 
  | 2.2  = Carbon Nightingale
Line 11: Line 11:
 
  | 2.10 = Brass Waxwing
 
  | 2.10 = Brass Waxwing
 
  | <!-- no codename -->
 
  | <!-- no codename -->
}}
+
}}</includeonly><noinclude>
 +
 
 +
This template is used to get the codename of a specified release. If there is no codename, empty string is produced.
 +
 
 +
== Usage ==
 +
 
 +
<pre><nowiki>{{Codename|VERSION}}</nowiki></pre>
 +
 
 +
Examples:
 +
 
 +
{| class="wikitable"
 +
! Markup
 +
! Result
 +
|-
 +
| <pre><nowiki>{{Codename|2.10}}</nowiki></pre>
 +
| {{Codename|2.10}}
 +
|-
 +
| <pre><nowiki>{{Codename|2.0}}</nowiki></pre>
 +
| {{Codename|2.0}}
 +
|}
 +
 
 +
</noinclude>

Revision as of 18:01, 24 January 2017


This template is used to get the codename of a specified release. If there is no codename, empty string is produced.

Usage

{{Codename|VERSION}}

Examples:

Markup Result
{{Codename|2.10}}
Steel Lapwing
{{Codename|2.0}}