Template:DailyForecast: Difference between revisions

From Ephinea PSO Wiki
(Force 100% width)
mNo edit summary
 
(36 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<table style="width:100%" class="psoBackground psoStyle">
<noinclude><table style="clear:right; float:right">
<tr><td></noinclude>
<table style="width:100%; border-spacing:0px; padding:3px 3px 2px 3px;" class="psoBackground psoStyle">  
<tr>
<tr>
<td style="width:8.33%"></td>
<th colspan="12" class="psoHeader psoStyle" style="padding-bottom:0.25em;">[[Daily forecast|Daily Forecast]] <sup>([[Daily forecast/Log|<span style="color: #77e8ff;">update/log</span>]])</sup></th>
<td style="width:8.33%"></td>
<td style="width:8.33%"></td>
<td style="width:8.33%"></td>
<td style="width:8.33%"></td>
<td style="width:8.33%"></td>
<td style="width:8.33%"></td>
<td style="width:8.33%"></td>
<td style="width:8.33%"></td>
<td style="width:8.33%"></td>
<td style="width:8.33%"></td>
<td style="width:8.33%"></td>
</tr> <!-- Hack to force 1/12 colspans -->
<tr>
<th colspan="12" class="psoHeader psoStyle" style="width: 100%; padding-bottom:4px;">Daily Forecast ([[Daily Forecast log|log/update]])</th>
</tr>
</tr>
<tr style="font-size:larger">
<tr style="font-size:larger">
<th colspan="12">{{:Daily Forecast log|date}} {{#ifeq:{{#time:j F Y}}|{{:Daily Forecast log|date}}||(<font color=orange>Not Updated</font>)}}</th>
<th colspan="12">{{:Daily Forecast log|date}} {{#ifeq:{{#time:j F Y}}|{{:Daily Forecast log|date}}||<br>(<font color=orange>Not updated</font>)}}</th>
</tr>
</tr>
<tr style="font-size:9px">
<tr align="center">
<th colspan="4">Profession</th><th colspan="4">Race</th><th colspan="4">Gender</th>
<td colspan="4">Profession:</td><td colspan="4">Species:</td><td colspan="4">Gender:</td>
</tr>
</tr>
<tr align="center" style="font-weight:bold">
<tr align="center" >
<td colspan="4">{{:Daily Forecast log|job}}</td><td colspan="4">{{:Daily Forecast log|race}}</td><td colspan="4">{{:Daily Forecast log|sex}}</td>
<th colspan="4">{{:Daily Forecast log|job}}</th><th colspan="4">{{:Daily Forecast log|race}}</th><th colspan="4">{{:Daily Forecast log|sex}}</th>
</tr>
</tr>
<tr>
<tr>
<td colspan="3" class="classCanUse">HUmr</td>
{{DailyForecastClassHead|HUmr|topLeft}}
<td colspan="3" class="classCanUse">HUnl</td>
{{DailyForecastClassHead|HUnl}}
<td colspan="3" class="classCanUse">HUct</td>
{{DailyForecastClassHead|HUct}}
<td colspan="3" class="classCanUse">HUcl</td>
{{DailyForecastClassHead|HUcl|topRight}}
</tr>
</tr>
<tr>
<tr style="height:25px; vertical-align: top; white-space:nowrap">
<!--HUmr-->
<!--HUmr-->
{{#switch:
{{DailyForecastNumberColor|
{{#expr:
{{DailyForecastCalc|HUmr}}
{{#ifeq:{{:Daily Forecast log|job}}|Hunters|1|0}}
+{{#ifeq:{{:Daily Forecast log|race}}|Humans|1|0}}
+{{#ifeq:{{:Daily Forecast log|sex}}|Males|1|0}}
}}
}}
|3 = <th colspan="3" style="color:#FDCB0A;">3
|2 = <th colspan="3" style="color:#FAFD00;">2
|1 = <th colspan="3" style="color:#FFFFCB;">1
|0 = <th colspan="3" style="color:#FFFFFF;">0
|#default=<th colspan="3" style="color:#FFFFFF;">0
}}</th>
<!--HUnl-->
<!--HUnl-->
{{#switch:
{{DailyForecastNumberColor|
{{#expr:
{{DailyForecastCalc|HUnl}}
{{#ifeq:{{:Daily Forecast log|job}}|Hunters|1|0}}
+{{#ifeq:{{:Daily Forecast log|race}}|Newmans|1|0}}
+{{#ifeq:{{:Daily Forecast log|sex}}|Females|1|0}}
}}
}}
|3 = <th colspan="3" style="color:#FDCB0A;">3
|2 = <th colspan="3" style="color:#FAFD00;">2
|1 = <th colspan="3" style="color:#FFFFCB;">1
|0 = <th colspan="3" style="color:#FFFFFF;">0
|#default=<th colspan="3" style="color:#FFFFFF;">0
}}</th>
<!--HUct-->
<!--HUct-->
{{#switch:
{{DailyForecastNumberColor|
{{#expr:
{{DailyForecastCalc|HUct}}
{{#ifeq:{{:Daily Forecast log|job}}|Hunters|1|0}}
+{{#ifeq:{{:Daily Forecast log|race}}|Droids|1|0}}
+{{#ifeq:{{:Daily Forecast log|sex}}|Males|1|0}}
}}
}}
|3 = <th colspan="3" style="color:#FDCB0A;">3
|2 = <th colspan="3" style="color:#FAFD00;">2
|1 = <th colspan="3" style="color:#FFFFCB;">1
|0 = <th colspan="3" style="color:#FFFFFF;">0
|#default=<th colspan="3" style="color:#FFFFFF;">0
}}</th>
<!--HUcl-->
<!--HUcl-->
{{#switch:
{{DailyForecastNumberColor|
{{#expr:
{{DailyForecastCalc|HUcl}}
{{#ifeq:{{:Daily Forecast log|job}}|Hunters|1|0}}
+{{#ifeq:{{:Daily Forecast log|race}}|Droids|1|0}}
+{{#ifeq:{{:Daily Forecast log|sex}}|Females|1|0}}
}}
}}
|3 = <th colspan="3" style="color:#FDCB0A;">3
|2 = <th colspan="3" style="color:#FAFD00;">2
|1 = <th colspan="3" style="color:#FFFFCB;">1
|0 = <th colspan="3" style="color:#FFFFFF;">0
|#default=<th colspan="3" style="color:#FFFFFF;">0
}}</th>
</tr>
</tr>
<tr>
<tr>
<td colspan="3" class="classCanUse">RAmr</td>
{{DailyForecastClassHead|RAmr}}
<td colspan="3" class="classCanUse">RAml</td>
{{DailyForecastClassHead|RAml}}
<td colspan="3" class="classCanUse">RAct</td>
{{DailyForecastClassHead|RAct}}
<td colspan="3" class="classCanUse">RAcl</td>
{{DailyForecastClassHead|RAcl}}
</tr>
</tr>
<tr>
<tr style="height:25px; vertical-align:top; white-space:nowrap">
<!--RAmr-->
<!--RAmr-->
{{#switch:
{{DailyForecastNumberColor|
{{#expr:
{{DailyForecastCalc|RAmr}}
{{#ifeq:{{:Daily Forecast log|job}}|Rangers|1|0}}
+{{#ifeq:{{:Daily Forecast log|race}}|Humans|1|0}}
+{{#ifeq:{{:Daily Forecast log|sex}}|Males|1|0}}
}}
}}
|3 = <th colspan="3" style="color:#FDCB0A;">3
|2 = <th colspan="3" style="color:#FAFD00;">2
|1 = <th colspan="3" style="color:#FFFFCB;">1
|0 = <th colspan="3" style="color:#FFFFFF;">0
|#default=<th colspan="3" style="color:#FFFFFF;">0
}}</th>
<!--RAml-->
<!--RAml-->
{{#switch:
{{DailyForecastNumberColor|
{{#expr:
{{DailyForecastCalc|RAml}}
{{#ifeq:{{:Daily Forecast log|job}}|Rangers|1|0}}
+{{#ifeq:{{:Daily Forecast log|race}}|Humans|1|0}}
+{{#ifeq:{{:Daily Forecast log|sex}}|Females|1|0}}
}}
}}
|3 = <th colspan="3" style="color:#FDCB0A;">3
|2 = <th colspan="3" style="color:#FAFD00;">2
|1 = <th colspan="3" style="color:#FFFFCB;">1
|0 = <th colspan="3" style="color:#FFFFFF;">0
|#default=<th colspan="3" style="color:#FFFFFF;">0
}}</th>
<!--RAct-->
<!--RAct-->
{{#switch:
{{DailyForecastNumberColor|
{{#expr:
{{DailyForecastCalc|RAct}}
{{#ifeq:{{:Daily Forecast log|job}}|Rangers|1|0}}
+{{#ifeq:{{:Daily Forecast log|race}}|Droids|1|0}}
+{{#ifeq:{{:Daily Forecast log|sex}}|Males|1|0}}
}}
}}
|3 = <th colspan="3" style="color:#FDCB0A;">3
|2 = <th colspan="3" style="color:#FAFD00;">2
|1 = <th colspan="3" style="color:#FFFFCB;">1
|0 = <th colspan="3" style="color:#FFFFFF;">0
|#default=<th colspan="3" style="color:#FFFFFF;">0
}}</th>
<!--RAcl-->
<!--RAcl-->
{{#switch:
{{DailyForecastNumberColor|
{{#expr:
{{DailyForecastCalc|RAcl}}
{{#ifeq:{{:Daily Forecast log|job}}|Rangers|1|0}}
+{{#ifeq:{{:Daily Forecast log|race}}|Droids|1|0}}
+{{#ifeq:{{:Daily Forecast log|sex}}|Females|1|0}}
}}
}}
|3 = <th colspan="3" style="color:#FDCB0A;">3
|2 = <th colspan="3" style="color:#FAFD00;">2
|1 = <th colspan="3" style="color:#FFFFCB;">1
|0 = <th colspan="3" style="color:#FFFFFF;">0
|#default=<th colspan="3" style="color:#FFFFFF;">0
}}</th>
</tr>
</tr>
<tr>
<tr>
<td colspan="3" class="classCanUse">FOmr</td>
{{DailyForecastClassHead|FOmr}}
<td colspan="3" class="classCanUse">FOml</td>
{{DailyForecastClassHead|FOml}}
<td colspan="3" class="classCanUse">FOnm</td>
{{DailyForecastClassHead|FOnm}}
<td colspan="3" class="classCanUse">FOnl</td>
{{DailyForecastClassHead|FOnl}}
</tr>
</tr>
<tr>
<tr style="height:25px; vertical-align:top; white-space:nowrap">
<!--FOmr-->
<!--FOmr-->
{{#switch:
{{DailyForecastNumberColor|
{{#expr:
{{DailyForecastCalc|FOmr}}
{{#ifeq:{{:Daily Forecast log|job}}|Forces|1|0}}
+{{#ifeq:{{:Daily Forecast log|race}}|Humans|1|0}}
+{{#ifeq:{{:Daily Forecast log|sex}}|Males|1|0}}
}}
}}
|3 = <th colspan="3" style="color:#FDCB0A;">3
|2 = <th colspan="3" style="color:#FAFD00;">2
|1 = <th colspan="3" style="color:#FFFFCB;">1
|0 = <th colspan="3" style="color:#FFFFFF;">0
|#default=<th colspan="3" style="color:#FFFFFF;">0
}}</th>
<!--FOml-->
<!--FOml-->
{{#switch:
{{DailyForecastNumberColor|
{{#expr:
{{DailyForecastCalc|FOml}}
{{#ifeq:{{:Daily Forecast log|job}}|Forces|1|0}}
+{{#ifeq:{{:Daily Forecast log|race}}|Humans|1|0}}
+{{#ifeq:{{:Daily Forecast log|sex}}|Females|1|0}}
}}
}}
|3 = <th colspan="3" style="color:#FDCB0A;">3
|2 = <th colspan="3" style="color:#FAFD00;">2
|1 = <th colspan="3" style="color:#FFFFCB;">1
|0 = <th colspan="3" style="color:#FFFFFF;">0
|#default=<th colspan="3" style="color:#FFFFFF;">0
}}</th>
<!--FOnm-->
<!--FOnm-->
{{#switch:
{{DailyForecastNumberColor|
{{#expr:
{{DailyForecastCalc|FOnm}}
{{#ifeq:{{:Daily Forecast log|job}}|Forces|1|0}}
+{{#ifeq:{{:Daily Forecast log|race}}|Newmans|1|0}}
+{{#ifeq:{{:Daily Forecast log|sex}}|Males|1|0}}
}}
}}
|3 = <th colspan="3" style="color:#FDCB0A;">3
|2 = <th colspan="3" style="color:#FAFD00;">2
|1 = <th colspan="3" style="color:#FFFFCB;">1
|0 = <th colspan="3" style="color:#FFFFFF;">0
|#default=<th colspan="3" style="color:#FFFFFF;">0
}}</th>
<!--FOnl-->
<!--FOnl-->
{{#switch:
{{DailyForecastNumberColor|
{{#expr:
{{DailyForecastCalc|FOnl}}
{{#ifeq:{{:Daily Forecast log|job}}|Forces|1|0}}
+{{#ifeq:{{:Daily Forecast log|race}}|Newmans|1|0}}
+{{#ifeq:{{:Daily Forecast log|sex}}|Females|1|0}}
}}
}}
|3 = <th colspan="3" style="color:#FDCB0A;">3
|2 = <th colspan="3" style="color:#FAFD00;">2
|1 = <th colspan="3" style="color:#FFFFCB;">1
|0 = <th colspan="3" style="color:#FFFFFF;">0
|#default=<th colspan="3" style="color:#FFFFFF;">0
}}</th>
</tr>
</tr>
</table><noinclude>
<tr class="noPadding"> <!-- Hack to force 1/12 colspans -->
<td style="width:8.33%;"></td>
<td style="width:8.33%;"></td>
<td style="width:8.33%;"></td>
<td style="width:8.33%;"></td>
<td style="width:8.33%;"></td>
<td style="width:8.33%;"></td>
<td style="width:8.33%;"></td>
<td style="width:8.33%;"></td>
<td style="width:8.33%;"></td>
<td style="width:8.33%;"></td>
<td style="width:8.33%;"></td>
<td style="width:8.33%;"></td>
</tr>
</table><noinclude></table>
==Usage==
==Usage==
This template is currently semi-automatic, as it does not query the game server, and is meant to be updated daily after midnight UTC.
This template is currently semi-automatic, as it does not query the game server, and is meant to be updated daily after midnight UTC.
<br/>
<br/>
Currently, said updating is to be done indirectly through the [[Daily Forecast log]] transclusion.
Currently, said updating is to be done indirectly through the [[Daily forecast/Log]] transclusion.
<br/>
<br/>
Simply transclude the infobox onto the desired destination page by typing <code><nowiki>{{DailyForecast}}</nowiki></code>, for example at the [[Main Page]].
Simply transclude the infobox onto the desired destination page by typing <code><nowiki>{{DailyForecast}}</nowiki></code>, for example at the [[Main Page]].


Should the Daily Forecast read "<span style="font-weight:bold;">(<span style="color:orange;">Not Updated</span>)</span>", please click "<span style="font-weight:bold;">(log/update)</span>" just above it for adjusting the day's forecast.
Should the Daily Forecast read "<span style="font-weight:bold;">(<span style="color:orange;">Not updated</span>)</span>," please click "<span style="font-weight:bold;">(<span style="color: #77e8ff;">update/log</span>)</span>" just above it for adjusting the day's forecast.
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 00:29, 16 March 2025

Daily Forecast (update/log)
15 March 2025
(Not updated)
Profession:Species:Gender:
NoneHumansFemales
HUmr HUnl HUct HUcl
1% 1% 0% 1%
RAmr RAml RAct RAcl
1% 3% / 2% 0% 1%
FOmr FOml FOnm FOnl
1% 3% / 2% 0% 1%

Usage

This template is currently semi-automatic, as it does not query the game server, and is meant to be updated daily after midnight UTC.
Currently, said updating is to be done indirectly through the Daily forecast/Log transclusion.
Simply transclude the infobox onto the desired destination page by typing {{DailyForecast}}, for example at the Main Page.

Should the Daily Forecast read "(Not updated)," please click "(update/log)" just above it for adjusting the day's forecast.