Template:DailyForecast: Difference between revisions

From Ephinea PSO Wiki
No edit summary
Tag: Undo
(redo 1/12 colspans (like a shitty bootscrap clone) and do spacing based on padding and not borderspacing)
Line 1: Line 1:
<noinclude><table style="clear:right; float:right">
<noinclude><table style="clear:right; float:right">
<tr><td></noinclude>
<tr><td></noinclude>
 
<table style="width:100%;border-spacing:0px;padding:5px;" class="psoBackground psoStyle">  
<table style="width: 100%;" class="psoBackground psoStyle">  
<tr>
<tr>
<th colspan="3" class="psoHeader psoStyle" style="width: 100%; padding-bottom:0.2em;">Daily Forecast ([[Daily Forecast log|log/update]])</th>
<th colspan="12" class="psoHeader psoStyle" style="padding-bottom:0.25em;">Daily Forecast ([[Daily Forecast log|log/update]])</th>
</tr>
</tr>
<tr style="font-size:larger">
<tr style="font-size:larger">
<th colspan="3">{{: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}}||(<font color=orange>Not Updated</font>)}}</th>
</tr>
</tr>
<tr style="font-size:9px">
<tr style="font-size:9px">
<th style="width:33%">Profession</th><th style="width:33%">Race</th><th style="width:33%">Gender</th>
<th colspan="4">Profession</th><th colspan="4">Race</th><th colspan="4">Gender</th>
</tr>
</tr>
<tr align="center" style="font-weight:bold">
<tr align="center" style="font-weight:bold">
<td>{{:Daily Forecast log|job}}</td><td>{{:Daily Forecast log|race}}</td><td>{{:Daily Forecast log|sex}}</td>
<td colspan="4">{{:Daily Forecast log|job}}</td><td colspan="4">{{:Daily Forecast log|race}}</td><td colspan="4">{{:Daily Forecast log|sex}}</td>
</tr>
</tr>
<tr><td colspan="3"><table style="border-spacing: 0; width:100%;">
<tr>
<td colspan="3" style="width: 25%;" class="classCanUse topLeft">HUmr</td>
<td colspan="3" class="classCanUse topLeft">HUmr</td>
<td colspan="3" style="width: 25%;" class="classCanUse">HUnl</td>
<td colspan="3" class="classCanUse">HUnl</td>
<td colspan="3" style="width: 25%;" class="classCanUse">HUct</td>
<td colspan="3" class="classCanUse">HUct</td>
<td colspan="3" style="width: 25%;" class="classCanUse topRight">HUcl</td>
<td colspan="3" class="classCanUse topRight">HUcl</td>
</tr>
</tr>
<tr>
<tr style="height: 25px;vertical-align: top;">
<!--HUmr-->
<!--HUmr-->
{{DailyForecastNumberColor|
{{DailyForecastNumberColor|
Line 57: Line 56:
<td colspan="3" class="classCanUse">RAcl</td>
<td colspan="3" class="classCanUse">RAcl</td>
</tr>
</tr>
<tr>
<tr style="height: 25px;vertical-align: top;">
<!--RAmr-->
<!--RAmr-->
{{DailyForecastNumberColor|
{{DailyForecastNumberColor|
Line 88: Line 87:
</tr>
</tr>
<tr>
<tr>
<td colspan="3" class="classCanUse">FOmr</td>
<td colspan="3" class="classCanUse bottomLeft">FOmr</td>
<td colspan="3" class="classCanUse">FOml</td>
<td colspan="3" class="classCanUse">FOml</td>
<td colspan="3" class="classCanUse">FOnm</td>
<td colspan="3" class="classCanUse">FOnm</td>
<td colspan="3" class="classCanUse">FOnl</td>
<td colspan="3" class="classCanUse bottomRight">FOnl</td>
</tr>
</tr>
<tr>
<tr style="height: 25px;vertical-align: top;">
<!--FOmr-->
<!--FOmr-->
{{DailyForecastNumberColor|
{{DailyForecastNumberColor|
Line 122: Line 121:
+{{#ifeq:{{:Daily Forecast log|sex}}|Females|1|0}}
+{{#ifeq:{{:Daily Forecast log|sex}}|Females|1|0}}
}}}}
}}}}
</td></table></tr>
</tr>
<tr class="noPadding"> <!-- Hack to force 1/12 colspans -->
<td style="width:8.33%;padding:0px"></td>
<td style="width:8.33%;padding:0px"></td>
<td style="width:8.33%;padding:0px"></td>
<td style="width:8.33%;padding:0px"></td>
<td style="width:8.33%;padding:0px"></td>
<td style="width:8.33%;padding:0px"></td>
<td style="width:8.33%;padding:0px"></td>
<td style="width:8.33%;padding:0px"></td>
<td style="width:8.33%;padding:0px"></td>
<td style="width:8.33%;padding:0px"></td>
<td style="width:8.33%;padding:0px"></td>
<td style="width:8.33%;padding:0px"></td>
</tr>
</table><noinclude></table>
</table><noinclude></table>
==Usage==
==Usage==

Revision as of 12:36, 14 January 2022

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%

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 "(log/update)" just above it for adjusting the day's forecast.