Difference between revisions of "Template:Wr-damage-ranged/doc"

From Discworld MUD Wiki
Jump to: navigation, search
(header)
(tweak)
 
Line 5: Line 5:
 
{| class=wikitable | border=1
 
{| class=wikitable | border=1
 
  ! string
 
  ! string
  ! number
+
  ! rating
 
  |-
 
  |-
 
  |{{{{#titleparts:{{PAGENAME}}|1|1}}|0|reverse=1}} || 0
 
  |{{{{#titleparts:{{PAGENAME}}|1|1}}|0|reverse=1}} || 0
Line 36: Line 36:
 
<pre>{{Wr-damage-ranged|powerful}}</pre>
 
<pre>{{Wr-damage-ranged|powerful}}</pre>
 
{{Wr-damage-ranged|powerful}}
 
{{Wr-damage-ranged|powerful}}
 
  
 
<pre>{{Wr-damage-ranged|8}}</pre>
 
<pre>{{Wr-damage-ranged|8}}</pre>
 
{{Wr-damage-ranged|8}}
 
{{Wr-damage-ranged|8}}
 
  
 
<pre>{{Wr-damage-ranged|8|reverse=true}}</pre>
 
<pre>{{Wr-damage-ranged|8|reverse=true}}</pre>
 
{{Wr-damage-ranged|8|reverse=true}}
 
{{Wr-damage-ranged|8|reverse=true}}

Latest revision as of 14:12, 3 September 2011

  This template returns a number based on a 'damage' ranged judge rating, according to the following table:

string rating
pathetic 0
very poor 1
poor 2
reasonable 3
quite good 4
good 5
very good 6
extremely good 7
quite powerful 8
powerful 9
very powerful 10

If you add an argument named "reverse" with any value it will take a number and output the string instead.

If you pass the template a number but do not put an argument named "reverse" it will just return the same number.

Examples
{{Wr-damage-ranged|powerful}}

9

{{Wr-damage-ranged|8}}

8

{{Wr-damage-ranged|8|reverse=true}}

quite powerful