Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:EntryHead: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<!-- EntryHeader template
Usage:
{{EntryHeader | date = March 29, 2025 | desc = Description text. | update = 1 }}
-->
{{#if:{{{desc|}}}|{{SHORTDESC:{{{desc}}}}}}}
{{#if:{{{desc|}}}|{{SHORTDESC:{{{desc}}}}}}}
<div style="font-family: 'Alegreya Sans SC', sans-serif; background-color: #f9f9fc; padding: 0.1em 0.75em; margin-bottom: 0.5em; border-radius: 4px; border-bottom: 1px solid #ddd;">
<div style="font-family: 'Alegreya Sans SC', sans-serif; background-color: #f9f9fc; padding: 0.1em 0.75em; margin-bottom: 0.5em; border-radius: 4px; border-bottom: 1px solid #ddd;">
<div style="color: #999; font-size: 0.9em; letter-spacing: 0.05em; font-weight: normal;">
<div style="color: #999; font-size: 0.9em; letter-spacing: 0.05em; font-weight: normal;">
[[Journal|📝]] // {{#if:{{{date|}}}|{{{date}}}|{{MONTHNAME|{{REVISIONMONTH}}}} {{REVISIONDAY}}, {{REVISIONYEAR}}}}
[[Journal|📝]]
{{#ifeq:{{{update|}}}|1|// Last updated: {{MONTHNAME|{{REVISIONMONTH}}}} {{REVISIONDAY}}, {{REVISIONYEAR}} }}
</div></div>
<!-- Auto Category (safe fallback version) -->
{{#if:{{{date|}}}|
{{#if:{{{date|}}}|
  {{#switch:{{lc:{{#explode:{{{date}}}| |0}}}}
<!-- Manual date parsing -->
    |january=[[Category:01/{{#explode:{{{date}}}| |2}}]]
      {{#switch:{{substr:{{{date}}}|4|2}}
    |february=[[Category:02/{{#explode:{{{date}}}| |2}}]]
        |01=January
    |march=[[Category:03/{{#explode:{{{date}}}| |2}}]]
        |02=February
    |april=[[Category:04/{{#explode:{{{date}}}| |2}}]]
        |03=March
    |may=[[Category:05/{{#explode:{{{date}}}| |2}}]]
        |04=April
    |june=[[Category:06/{{#explode:{{{date}}}| |2}}]]
        |05=May
    |july=[[Category:07/{{#explode:{{{date}}}| |2}}]]
        |06=June
    |august=[[Category:08/{{#explode:{{{date}}}| |2}}]]
        |07=July
    |september=[[Category:09/{{#explode:{{{date}}}| |2}}]]
        |08=August
    |october=[[Category:10/{{#explode:{{{date}}}| |2}}]]
        |09=September
    |november=[[Category:11/{{#explode:{{{date}}}| |2}}]]
        |10=October
    |december=[[Category:12/{{#explode:{{{date}}}| |2}}]]
        |11=November
    |#default=[[Category:00/Unknown]]
        |12=December
  }}
      }} {{#expr:{{substr:{{{date}}}|6|2}}}}, {{substr:{{{date}}}|0|4}}
      |
<!-- Fallback to revision -->
{{MONTHNAME|{{REVISIONMONTH}}}} {{REVISIONDAY}}, {{REVISIONYEAR}}
    }}
{{#ifeq:{{{update|}}}|1|<br />Last updated: {{MONTHNAME|{{REVISIONMONTH}}}} {{REVISIONDAY}}, {{REVISIONYEAR}} }}</div></div>
<!-- Auto Category -->
{{#if:{{{date|}}}|
[[Category:{{substr:{{{date}}}|4|2}}/{{substr:{{{date}}}|0|4}}]]
|
|
[[Category:{{#padleft:{{REVISIONMONTH}}|2|0}}/{{REVISIONYEAR}}]]
[[Category:{{#padleft:{{REVISIONMONTH}}|2|0}}/{{REVISIONYEAR}}]]
}}
}}

Revision as of 08:51, 29 March 2025


📝 March 29, 2025

[[Category:{{#padleft:03|2|0}}/2025]]