Difference between revisions of "Template:Energy Recharge Rate"

From Elite Wiki
(Created page with "<noinclude> <pre><nowiki>{{energy recharge rate|rate}}</nowiki></pre> Display energy rate classified as Poor (< 2.5), Medium (<3.5) , Good (< 4.5), or Excellent (>= 4.5) and s...")
 
(allow for non-numeric values, e.g. "Classified")
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
<pre><nowiki>{{energy recharge rate|rate}}</nowiki></pre>
 
<pre><nowiki>{{energy recharge rate|rate}}</nowiki></pre>
Display energy rate classified as Poor (< 2.5), Medium (<3.5) , Good (< 4.5), or Excellent (>= 4.5) and set the "ship energy recharge" property for the including wiki page
+
Display energy rate classified as Poor (< 2.5), Medium (<3.5) , Good (< 4.5), or Excellent (>= 4.5) and set the "ship energy recharge" property for the including wiki page. If given rate is not a number, just display it as it is, e.g. "Classified"
 
</noinclude>
 
</noinclude>
<includeonly>{{#if: {{{1}}} | {{#ifexpr: {{{1}}} < 2.5 |Poor | {{#ifexpr: {{{1}}} < 3.5 |Medium | {{#ifexpr: {{{1}}} < 4.5 |Good |Excellent }} }} }} ([[ship energy recharge::{{{1}}}]])| }}</includeonly>
+
<includeonly>{{#ifeq:{{{1}}}|{{#expr:{{{1}}}}}|{{#if: {{{1}}} | {{#ifexpr: {{{1}}} < 2.5 |Poor | {{#ifexpr: {{{1}}} < 3.5 |Medium | {{#ifexpr: {{{1}}} < 4.5 |Good |Excellent }} }} }} ([[ship energy recharge::{{{1}}}]])| }}|{{{1}}}}}</includeonly>

Latest revision as of 09:47, 29 June 2012

{{energy recharge rate|rate}}

Display energy rate classified as Poor (< 2.5), Medium (<3.5) , Good (< 4.5), or Excellent (>= 4.5) and set the "ship energy recharge" property for the including wiki page. If given rate is not a number, just display it as it is, e.g. "Classified"