Editing Template:DailyForecastLogRow

From Ephinea PSO Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
|-
|-
|{{subst:<noinclude/>#time:j F Y}}||{{{job|}}}||{{{race|}}}||{{{sex|}}}<noinclude>
|{{#ifeq:{{{1|}}}|date|{{subst:<noinclude/>#time:j F Y}}{{!}}{{!}}|}}|{{{job|}}}||{{{race|}}}||{{{sex|}}}<noinclude>
==Usage==
==Usage==
''This template must be substituted,''
''This template must be substituted,''
<br>
<br>
with the intention of writing to the page source table directly and print the at-time-of-submission day-month-year date properly.
with the intention of writing to the page source table directly and, if the optional date field is used, print the at-time-of-submission day-month-year date properly.


Meant for simple insertion in the [[Daily Forecast log]] page without having to work with #time function syntax.
Meant for simple insertion/replacement in the [[Daily Forecast log]] page, which will update the Main Page's [[Template:DailyForecast]] transclusion indirectly.
<br>
<br>
It is possible to omit fields, but it is good practice to instead omit the field values if missing for today's forecast to prevent user-created errors.
It is possible to omit fields other than time, but it is good practice to instead omit the field values if missing for today's forecast to prevent user-created errors.


==Examples==
==Examples==
<pre>
{| class="wikitable" style="text-align: center;"
! Profession !! Race !! Gender
{{subst:DailyForecastLogRow|job=Forces|race=Newmans|sex=Males}}
|}
</pre>
{| class="wikitable" style="text-align: center;"
! Profession !! Race !! Gender
|-
|{{#ifeq:{{{1}}}|time|1 January 2022{{!}}{{!}}|}}|Forces||Newmans||Males
|}
<pre>
<pre>
{| class="wikitable sortable" style="text-align: center;"
{| class="wikitable sortable" style="text-align: center;"
! Date !! class="unsortable" | Profession !! class="unsortable" | Race !! class="unsortable" | Gender
! Date !! class="unsortable" | Profession !! class="unsortable" | Race !! class="unsortable" | Gender
{{subst:DailyForecastLogRow|job=|race=Droids|sex=}}
{{subst:DailyForecastLogRow|job=|race=Droids|sex=|date}}
|}
|}
</pre>
</pre>
Line 20: Line 32:
! Date !! class="unsortable" | Profession !! class="unsortable" | Race !! class="unsortable" | Gender
! Date !! class="unsortable" | Profession !! class="unsortable" | Race !! class="unsortable" | Gender
|-
|-
|1 January 2022||||Droids||
|{{#ifeq:date|time|1 January 2022{{!}}{{!}}|}}|||Droids||
|}
|}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>
Please note that all contributions to Ephinea PSO Wiki are considered to be released under the CC BY-NC-SA 4.0 (see Ephinea PSO Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)