Template:Journal ref: Difference between revisions

The Emma M. Lion Wiki
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
A citation for an Emma book. Links to day summaries.
</noinclude>
[[Summary:{{Friendly Month|{{{month}}}}}_{{{year}}}#{{{month}}}_{{Friendly Day|{{{day}}}}}|{{Short Month|{{{month}}}}} {{{day}}}, {{{year}}}]]
<templatedata>
<templatedata>
{
{
     "description": "Formats a date in a reference.",
     "description": "Creates a reference to one of Emma's journals and links the date",
     "params": {
     "params": {
         "month": {
         "1": {
             "label": "Month",
             "label": "Month",
             "description": "The month (e.g., 1, January, Jan, 3, June, or Aug).",
             "description": "The month (e.g., 1, January, Jan, 3, June, or Aug).",
Line 13: Line 10:
             "required": true
             "required": true
         },
         },
         "day": {
         "2": {
             "label": "Day",
             "label": "Day",
             "description": "The day of the month (e.g., 1 for the first, 15 for the fifteenth).",
             "description": "The day of the month (e.g., 1 for the first, 15 for the fifteenth).",
Line 19: Line 16:
             "required": true
             "required": true
         },
         },
         "year": {
         "3": {
             "label": "Year",
             "label": "Year",
             "description": "The year (e.g., 1883).",
             "description": "The year (e.g., 1883).",
Line 28: Line 25:
}
}
</templatedata>
</templatedata>
</noinclude><includeonly>{{#tag:ref
|{{Journal ref text|{{{1}}}|{{{2}}}|{{{3}}}}}
|name={{Month Number|{{{1}}}}}-{{{2}}}-{{{3}}}
}}</includeonly>

Latest revision as of 21:10, 8 January 2025

Creates a reference to one of Emma's journals and links the date

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Month1

The month (e.g., 1, January, Jan, 3, June, or Aug).

Stringrequired
Day2

The day of the month (e.g., 1 for the first, 15 for the fifteenth).

Stringrequired
Year3

The year (e.g., 1883).

Stringrequired