Template:DailyForecastCalc: Difference between revisions
From Ephinea PSO Wiki
(Template to calculate the Daily Forecast for any class) |
(Template rewrite to just use one parameter for character class) |
||
Line 1: | Line 1: | ||
{{#switch: {{{1}}} | |||
|HUmr = | |||
{{#expr: | |||
{{#ifeq:{{:Daily Forecast log|job}}|Hunters|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|race}}|Humans|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|sex}}|Males|1|0}} | |||
}} | |||
|HUnl = | |||
{{#expr: | |||
{{#ifeq:{{:Daily Forecast log|job}}|Hunters|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|race}}|Newmans|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|sex}}|Females|1|0}} | |||
}} | |||
|HUct = | |||
{{#expr: | |||
{{#ifeq:{{:Daily Forecast log|job}}|Hunters|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|race}}|Droids|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|sex}}|Males|1|0}} | |||
}} | |||
|HUcl = | |||
{{#expr: | |||
{{#ifeq:{{:Daily Forecast log|job}}|Hunters|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|race}}|Droids|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|sex}}|Females|1|0}} | |||
}} | |||
|RAmr = | |||
{{#expr: | |||
{{#ifeq:{{:Daily Forecast log|job}}|Rangers|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|race}}|Humans|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|sex}}|Males|1|0}} | |||
}} | |||
|RAml = | |||
{{#expr: | |||
{{#ifeq:{{:Daily Forecast log|job}}|Rangers|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|race}}|Humans|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|sex}}|Females|1|0}} | |||
}} | |||
|RAct = | |||
{{#expr: | |||
{{#ifeq:{{:Daily Forecast log|job}}|Rangers|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|race}}|Droids|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|sex}}|Males|1|0}} | |||
}} | |||
|RAcl = | |||
{{#expr: | |||
{{#ifeq:{{:Daily Forecast log|job}}|Rangers|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|race}}|Droids|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|sex}}|Females|1|0}} | |||
}} | |||
|FOmr = | |||
{{#expr: | |||
{{#ifeq:{{:Daily Forecast log|job}}|Forces|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|race}}|Humans|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|sex}}|Males|1|0}} | |||
}} | |||
|FOml = | |||
{{#expr: | |||
{{#ifeq:{{:Daily Forecast log|job}}|Forces|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|race}}|Humans|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|sex}}|Females|1|0}} | |||
}} | |||
|FOnm = | |||
{{#expr: | |||
{{#ifeq:{{:Daily Forecast log|job}}|Forces|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|race}}|Newmans|1|0}} | |||
+{{#ifeq:{{:Daily Forecast log|sex}}|Males|1|0}} | |||
}} | |||
|FOnl = | |||
{{#expr: | {{#expr: | ||
{{#ifeq:{{:Daily Forecast log|job}}| | {{#ifeq:{{:Daily Forecast log|job}}|Forces|1|0}} | ||
+{{#ifeq:{{:Daily Forecast log|race}}| | +{{#ifeq:{{:Daily Forecast log|race}}|Newmans|1|0}} | ||
+{{#ifeq:{{:Daily Forecast log|sex}}| | +{{#ifeq:{{:Daily Forecast log|sex}}|Females|1|0}} | ||
}}<noinclude> | }} | ||
}} | |||
<noinclude> | |||
==Usage== | ==Usage== | ||
<table style="clear:right; float:right"><tr><td>{{DailyForecast}}</td></tr></table> | <table style="clear:right; float:right"><tr><td>{{DailyForecast}}</td></tr></table> | ||
Template to calculate the Daily Forecast for any class. | Template to calculate the Daily Forecast for any class provided as a parameter. | ||
<br/> | <br/> | ||
For reference, here is a list of class descriptors: | For reference, here is a list of class descriptors: | ||
Line 40: | Line 123: | ||
==Example== | ==Example== | ||
<pre> | <pre> | ||
{{DailyForecastCalc | {{DailyForecastCalc|HUmr}} | ||
| | |||
</pre> | </pre> | ||
{{DailyForecastCalc| | {{DailyForecastCalc|HUmr}} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Latest revision as of 15:39, 17 January 2022
Usage[edit source]
|
Template to calculate the Daily Forecast for any class provided as a parameter.
For reference, here is a list of class descriptors:
Class | Job | Race | Sex |
---|---|---|---|
HUmr | Hunters | Humans | Males |
HUnl | Hunters | Newmans | Females |
HUct | Hunters | Droids | Males |
HUcl | Hunters | Droids | Females |
RAmr | Rangers | Humans | Males |
RAml | Rangers | Humans | Females |
RAct | Rangers | Droids | Males |
RAcl | Rangers | Droids | Females |
FOmr | Forces | Humans | Males |
FOml | Forces | Humans | Females |
FOnm | Forces | Newmans | Males |
FOnl | Forces | Newmans | Females |
Example[edit source]
{{DailyForecastCalc|HUmr}}
2