Template:DailyForecastLogRow: Difference between revisions

From Ephinea PSO Wiki
(Adjusted parameters, will require a 2nd edit)
(Rephrasing)
 
Line 2: Line 2:
|{{subst:<noinclude/>#time:j F Y}}||{{{job|}}}||{{{race|}}}||{{{sex|}}}<noinclude>
|{{subst:<noinclude/>#time:j F Y}}||{{{job|}}}||{{{race|}}}||{{{sex|}}}<noinclude>
==Usage==
==Usage==
 
''This template must be substituted,''
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 other than date, but it is good practice to instead omit the field values if missing for today's forecast to prevent user-created errors.
with the intention of writing to the page source table directly and print the at-time-of-submission day-month-year date properly.


''This template must be substituted,''
Meant for simple insertion in the [[Daily Forecast log]] page without having to work with #time function syntax.
<br>
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.
<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.


==Examples==
==Examples==
Line 22: Line 20:
! Date !! class="unsortable" | Profession !! class="unsortable" | Race !! class="unsortable" | Gender
! Date !! class="unsortable" | Profession !! class="unsortable" | Race !! class="unsortable" | Gender
|-
|-
|{{#ifeq:|date|1 January 2022{{!}}{{!}}|}}|||Droids||
|1 January 2022||||Droids||
|}
|}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 23:23, 1 January 2022

|- |{{subst:#time:j F Y}}||||||

Usage[edit source]

This template must be substituted,
with the intention of writing to the page source table directly and 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.
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.

Examples[edit source]

{| class="wikitable sortable" style="text-align: center;"
! Date !! class="unsortable" | Profession !! class="unsortable" | Race !! class="unsortable" | Gender
{{subst:DailyForecastLogRow|job=|race=Droids|sex=}}
|}
Date Profession Race Gender
1 January 2022 Droids