Template:Emma ref: Difference between revisions

From The Reed and Rite
No edit summary
No edit summary
Line 2: Line 2:
{{#if:{{{1|}}} | <!-- Check if book title (volume) is provided -->
{{#if:{{{1|}}} | <!-- Check if book title (volume) is provided -->
   {{#switch:{{lc:{{{1}}}}}
   {{#switch:{{lc:{{{1}}}}}
     | e1 =  
     | e1 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 1#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 1: {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}'']]
      {{#ifexpr: {{{2}}} >= 1 and {{{2}}} <= 31
     | e2 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 2#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 2: {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}'']]
        | {{#ifexpr: {{lc:{{{3}}}}} = january || {{lc:{{{3}}}}} = february || {{lc:{{{3}}}}} = march || {{lc:{{{3}}}}} = april || {{lc:{{{3}}}}} = may || {{lc:{{{3}}}}} = june || {{lc:{{{3}}}}} = july || {{lc:{{{3}}}}} = august || {{lc:{{{3}}}}} = september || {{lc:{{{3}}}}} = october || {{lc:{{{3}}}}} = november || {{lc:{{{3}}}}} = december
     | e3 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 3#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 3: {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}'']]
            | [[Summary:The Unselected Journals of Emma M. Lion: Volume 1#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 1: {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}'']]
     | e4 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 4#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 4: {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}'']]
            | <span style="color:red">Error: Invalid month "{{{3}}}" for volume 1</span>
          }}
        | <span style="color:red">Error: Invalid day "{{{2}}}" entered.</span>
      }}
     | e2 =  
      {{#ifexpr: {{{2}}} >= 1 and {{{2}}} <= 31
        | {{#ifexpr: {{lc:{{{3}}}}} = january || {{lc:{{{3}}}}} = february || {{lc:{{{3}}}}} = march || {{lc:{{{3}}}}} = april || {{lc:{{{3}}}}} = may || {{lc:{{{3}}}}} = june || {{lc:{{{3}}}}} = july || {{lc:{{{3}}}}} = august || {{lc:{{{3}}}}} = september || {{lc:{{{3}}}}} = october || {{lc:{{{3}}}}} = november || {{lc:{{{3}}}}} = december
            | [[Summary:The Unselected Journals of Emma M. Lion: Volume 2#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 2: {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}'']]
            | <span style="color:red">Error: Invalid month "{{{3}}}" for volume 2</span>
          }}
        | <span style="color:red">Error: Invalid day "{{{2}}}" entered.</span>
      }}
     | e3 =  
      {{#ifexpr: {{{2}}} >= 1 and {{{2}}} <= 31
        | {{#ifexpr: {{lc:{{{3}}}}} = january || {{lc:{{{3}}}}} = february || {{lc:{{{3}}}}} = march || {{lc:{{{3}}}}} = april || {{lc:{{{3}}}}} = may || {{lc:{{{3}}}}} = june || {{lc:{{{3}}}}} = july || {{lc:{{{3}}}}} = august || {{lc:{{{3}}}}} = september || {{lc:{{{3}}}}} = october || {{lc:{{{3}}}}} = november || {{lc:{{{3}}}}} = december
            | [[Summary:The Unselected Journals of Emma M. Lion: Volume 3#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 3: {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}'']]
            | <span style="color:red">Error: Invalid month "{{{3}}}" for volume 3</span>
          }}
        | <span style="color:red">Error: Invalid day "{{{2}}}" entered.</span>
      }}
     | e4 =  
      {{#ifexpr: {{{2}}} >= 1 and {{{2}}} <= 31
        | {{#ifexpr: {{lc:{{{3}}}}} = january || {{lc:{{{3}}}}} = february || {{lc:{{{3}}}}} = march || {{lc:{{{3}}}}} = april || {{lc:{{{3}}}}} = may || {{lc:{{{3}}}}} = june || {{lc:{{{3}}}}} = july || {{lc:{{{3}}}}} = august || {{lc:{{{3}}}}} = september || {{lc:{{{3}}}}} = october || {{lc:{{{3}}}}} = november || {{lc:{{{3}}}}} = december
            | [[Summary:The Unselected Journals of Emma M. Lion: Volume 4#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 4: {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}'']]
            | <span style="color:red">Error: Invalid month "{{{3}}}" for volume 4</span>
          }}
        | <span style="color:red">Error: Invalid day "{{{2}}}" entered.</span>
      }}
    <!-- Continue this pattern for other volumes -->
     | e5 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 5#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 5: {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}'']]
     | e5 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 5#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 5: {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}'']]
     <!-- Repeat for remaining volumes -->
     | e6 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 6#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 6: {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}'']]
    | e7 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 7#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 7: {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}'']]
    | e8 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 8#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 8: {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}'']]
    | e9 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 9#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 9: {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}'']]
    | e10 = [[Summary:The Unselected Journals of Emma M. Lion: Volume 10#{{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}|''Emma, Vol. 10: {{{2}}} {{ucfirst:{{lc:{{{3}}}}}}} {{{4}}}'']]
   }}
   }}
| <span style="color:red">Error: Missing volume</span>}}
| <span style="color:red">Error: Missing volume</span>}}

Revision as of 04:24, 19 February 2025




Test