Template:Cite web: Difference between revisions

origyear per discussion
m>Gadget850
(TitleType)
m>Gadget850
(origyear per discussion)
Line 42: Line 42:
   |Editorlink3={{{editor3-link|}}}
   |Editorlink3={{{editor3-link|}}}
   |Editorlink4={{{editor4-link|}}}
   |Editorlink4={{{editor4-link|}}}
  |Year={{#if:{{{year|}}}|{{{year}}}   <!-- attempt to derive year from date, if possible -->
|Year={{{year|{{    <!-- attempt to derive year from date, if possible -->
          |{{#if: {{{date|}}}
            #if: {{{date|}}}
             |{{#iferror: {{#time:Y|{{{date|}}} }}
             |{{
                #iferror:{{#time:Y|{{{date|}}} }}
                 |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
                 |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
                 |{{#time:Y|{{{date|}}} }}
                 |{{#time:Y|{{{date|}}} }}
Line 50: Line 51:
             |{{{publication-date|}}} <!-- last resort -->
             |{{{publication-date|}}} <!-- last resort -->
           }}
           }}
         }}
         }}}
   |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{#if:{{{year|}}}|{{{year}}}|{{{publication-date|}}}}}}}
  |YearNote = {{{origyear|}}}
   |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}
   |Title={{{work|}}}
   |Title={{{work|}}}
   |TransTitle={{{trans_title|}}}
   |TransTitle={{{trans_title|}}}
Anonymous user