Template:Cite web: Difference between revisions

Refactoring. I believe this coding is easier to understand.
m>Ligulem
(Fixed a bug with ":". This is getting nasty)
m>Ligulem
(Refactoring. I believe this coding is easier to understand.)
Line 34: Line 34:
}}{{#if: {{{pages|}}}
}}{{#if: {{{pages|}}}
   |  pp. {{{pages}}}
   |  pp. {{{pages}}}
}}{{#if: {{{publisher|}}}
  |  {{{publisher}}}
}}{{#if: {{{author|}}}{{{last|}}}
}}{{#if: {{{author|}}}{{{last|}}}
   | {{#if: {{{publisher|}}} | . }}
   | {{#if: {{{publisher|}}} |  {{{publisher}}}. }}
   | {{#if: {{{publisher|}}}
   | {{#if: {{{date|}}}
     | {{#if: {{{date|}}}{{{year|}}}{{{month|}}} | : | . }}
     | {{#if: {{{publisher|}}} |  {{{publisher}}}: }} {{{date}}}.
    |}}{{#if: {{{date|}}}
    |  {{{date}}}.
     | {{#if: {{{year|}}}
     | {{#if: {{{year|}}}
       | {{#if: {{{month|}}}
       | {{#if: {{{month|}}}
         |  {{{month}}} {{{year}}}.
         | {{#if: {{{publisher|}}} |  {{{publisher}}}: }} {{{month}}} {{{year}}}.
         |  {{{year}}}.
         | {{#if: {{{publisher|}}} |  {{{publisher}}}: }} {{{year}}}.
       }}
       }}
     }}
     }}
Anonymous user