Template:Emma ref: Difference between revisions
Created page with "<includeonly>{{#tag:ref| {{#if:{{{1|}}} | <!-- Check if book title is provided --> {{#ifexpr: {{{2}}} >= 1 and {{{2}}} <= 31 | [[Summary:{{{1}}}#{{{2}}} March 1883|''{{{1}}}'', {{{2}}} March 1883]] | <span style="color:red">Error: Day exceeds 31</span> }} | {{#if:{{{2}}}|<span style="color:red">Error: Invalid day number</span>|<span style="color:red">Error: Missing day number</span>}} <!-- Add more error checks --> }} | <span style="color:re..." |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#tag:ref| | <includeonly>{{#tag:ref| | ||
{{#if:{{{1|}}} | <!-- Check if | {{#if:{{{1|}}} | <!-- Check if day is provided --> | ||
{{# | {{#if:{{{2|}}} | <!-- Check if month is provided --> | ||
{{#if:{{{3|}}} | <!-- Check if year is provided --> | |||
[[Summary:{{{4}}}#{{{1}}} {{{2}}} {{{3}}}|''{{{4}}}'', {{{1}}} {{{2}}} {{{3}}}]] | |||
| <span style="color:red">Error: Missing year</span>}} | |||
| <span style="color:red">Error: Missing month</span>}} | |||
| <span style="color:red">Error: Missing day</span>}} | |||
| <span style="color:red">Error: Missing | |||
}}</includeonly> | }}</includeonly> | ||