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=" | <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=" | <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 | <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 | <tr> | ||
<td colspan="3 | <td colspan="3" class="classCanUse topLeft">HUmr</td> | ||
<td colspan="3 | <td colspan="3" class="classCanUse">HUnl</td> | ||
<td colspan="3 | <td colspan="3" class="classCanUse">HUct</td> | ||
<td colspan="3 | <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></ | </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
|
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.