Template:Cite web: Difference between revisions

From Vigyanwiki
Template>Phil Boswell
(removing extraneous full-stop: there's one too many somewhere)
Template>Phil Boswell
(transplant {{{author}}} handling from {{cite book}})
Line 5: Line 5:
     }}
     }}
   |then=Error on call to [[template:cite web]]: Parameters '''url''' and '''title''' must be specified 
   |then=Error on call to [[template:cite web]]: Parameters '''url''' and '''title''' must be specified 
}}</includeonly>{{{author|}}}{{qif
}}</includeonly>{{qif
  |test={{{author|{{{last|}}}}}}
  |then={{qif
    |test={{{authorlink|}}}
    |then=[[{{{authorlink}}}|{{qif
      |test={{{last|}}}
      |then={{{last}}}{{qif
        |test={{{first|}}}
        |then=, {{{first}}}
      }}
      |else={{{author}}}
    }}]]
    |else={{qif
      |test={{{last|}}}
      |then={{{last}}}{{qif
        |test={{{first|}}}
        |then=, {{{first}}}
      }}
      |else={{{author}}}
    }}
  }}
}}{{qif
  |test={{{author|{{{last|}}}}}}
  |then={{qif
    |test={{{coauthors|}}}
    |then=, {{{coauthors}}}
  }}
}}{{qif
   |test={{{year|}}}
   |test={{{year|}}}
   |then=&#32;({{{year|}}})
   |then=&#32;({{{year|}}})

Revision as of 20:07, 2 March 2006

Template:QifTemplate:QifTemplate:QifTemplate:QifTemplate:QifTemplate:QifTemplate:QifTemplate:QifTemplate:Qif This template is a simpler replacement for template:web reference. It provides lower case parameters only.