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}}|{{{job}}}|1|0}}
{{#ifeq:{{:Daily Forecast log|job}}|Forces|1|0}}
+{{#ifeq:{{:Daily Forecast log|race}}|{{{race}}}|1|0}}
+{{#ifeq:{{:Daily Forecast log|race}}|Newmans|1|0}}
+{{#ifeq:{{:Daily Forecast log|sex}}|{{{sex}}}|1|0}}
+{{#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}}
|job=Hunters
|race=Humans
|sex=Males}}
</pre>
</pre>
{{DailyForecastCalc|job=Hunters|race=Humans|sex=Males}}
{{DailyForecastCalc|HUmr}}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 15:39, 17 January 2022


Usage[edit source]

Daily Forecast (log/update)
12 November 2024 (Not Updated)
ProfessionRaceGender
HuntersHumansFemales
HUmr HUnl HUct HUcl
3% / 2% 3% / 2% 1% 3% / 2%
RAmr RAml RAct RAcl
1% 3% / 2% 0% 1%
FOmr FOml FOnm FOnl
1% 3% / 2% 0% 1%

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