Difference between revisions of "Template:XP"

From Legends of Hyrule
Jump to navigationJump to search
m (typo)
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{1}}}|0|10}}
+
<includeonly>{{#switch: {{{1}}}
{{#ifeq:{{{1}}}|1/8|25}}
+
|0=10
{{#ifeq:{{{1}}}|1/4|50}}
+
|0.125=25
{{#ifeq:{{{1}}}|1/2|100}}
+
|1/8=25
{{#ifeq:{{{1}}}|1|200}}
+
|0.25=50
{{#ifeq:{{{1}}}|2|450}}
+
|1/4=50
{{#ifeq:{{{1}}}|3|700}}
+
|0.5=100
{{#ifeq:{{{1}}}|4|1,100}}
+
|1/2=100
{{#ifeq:{{{1}}}|5|1,800}}
+
|1=200
{{#ifeq:{{{1}}}|6|2,300}}
+
|2=450
{{#ifeq:{{{1}}}|7|2,900}}
+
|3=700
{{#ifeq:{{{1}}}|8|3,900}}
+
|4=1,100
{{#ifeq:{{{1}}}|9|5,000}}
+
|5=1,800
{{#ifeq:{{{1}}}|10|5,900}}
+
|6=2,300
{{#ifeq:{{{1}}}|11|7,200}}
+
|7=2,900
{{#ifeq:{{{1}}}|12|8,400}}
+
|8=3,900
{{#ifeq:{{{1}}}|13|10,000}}
+
|9=5,000
{{#ifeq:{{{1}}}|14|11,500}}
+
|10=5,900
{{#ifeq:{{{1}}}|15|13,000}}
+
|11=7,200
{{#ifeq:{{{1}}}|16|15,000}}
+
|12=8,400
{{#ifeq:{{{1}}}|17|18,000}}
+
|13=10,000
{{#ifeq:{{{1}}}|18|20,000}}
+
|14=11,500
{{#ifeq:{{{1}}}|19|22,000}}
+
|15=13,000
{{#ifeq:{{{1}}}|20|25,000}}
+
|16=15,000
{{#ifeq:{{{1}}}|21|33,000}}
+
|17=18,000
{{#ifeq:{{{1}}}|22|41,000}}
+
|18=20,000
{{#ifeq:{{{1}}}|23|50,000}}
+
|19=22,000
{{#ifeq:{{{1}}}|24|62,000}}
+
|20=25,000
{{#ifeq:{{{1}}}|25|75,000}}
+
|21=33,000
{{#ifeq:{{{1}}}|26|90,000}}
+
|22=41,000
{{#ifeq:{{{1}}}|27|105,000}}
+
|23=50,000
{{#ifeq:{{{1}}}|28|120,000}}
+
|24=62,000
{{#ifeq:{{{1}}}|29|135,000}}
+
|25=75,000
{{#ifeq:{{{1}}}|30|155,000}}</includeonly><noinclude>==Usage==
+
|26=90,000
 +
|27=105,000
 +
|28=120,000
 +
|29=135,000
 +
|30=155,000
 +
|31=175,000
 +
|32=195,000
 +
|33=215,000
 +
|34=240,000
 +
|35=265,000
 +
|36=290,000
 +
|37=315,000
 +
|38=345,000
 +
|39=375,000
 +
|40=400,000
 +
|Unknown}}</includeonly><noinclude>==Usage==
 
This template takes a Challenge Rating (CR) you plug in, and it returns how much Experience (XP) that CR is worth.  To use it, type the following, but replace "10" with whatever CR number is appropriate.
 
This template takes a Challenge Rating (CR) you plug in, and it returns how much Experience (XP) that CR is worth.  To use it, type the following, but replace "10" with whatever CR number is appropriate.
  
 
<pre>{{XP|10}}</pre>
 
<pre>{{XP|10}}</pre>
  
For a CR of less than one, several options can be used.  These include 1/2, 1/4, 1/8, and 0.  Aside from those options, the template only accepts positive integers up to 30.
+
For a CR of less than one, several options can be used.  These include 0, 1/2, 1/4, 1/8, 0.5, 0.25, and 0,125.  Aside from those options, the template only accepts positive integers up to 40.  XP values over 30 are modest estimates based on page 9 of the ''Monster Manual'' and may conflict with official guidance for CR above 30 if such guidance is ever published.
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 17:08, 2 June 2020

Usage

This template takes a Challenge Rating (CR) you plug in, and it returns how much Experience (XP) that CR is worth. To use it, type the following, but replace "10" with whatever CR number is appropriate.

{{XP|10}}

For a CR of less than one, several options can be used. These include 0, 1/2, 1/4, 1/8, 0.5, 0.25, and 0,125. Aside from those options, the template only accepts positive integers up to 40. XP values over 30 are modest estimates based on page 9 of the Monster Manual and may conflict with official guidance for CR above 30 if such guidance is ever published.