Template:Citation: Difference between revisions

From Vigyanwiki
Template>SEWilco
(Under development)
 
Template>COGDEN
(replace soon-to-be-deleted ifnone with booleq. Generalize citation HTML id.)
Line 1: Line 1:
'''This is a test template which is not yet to be used.'''
<noinclude>'''This is a test template which is not yet to be used.'''</noinclude>
<cite style="font-style:normal" {{if
<cite style="font-style:normal" {{if
   |1={{{Ref|}}}
   |1={{{Ref|}}}
   |2={{ifnone
   |2={{if
       |1={{{Ref}}}
       |1={{booleq
            |{{{Ref}}}
            |none
          }}
       |2=
       |2=
       |3=id="{{{Ref}}}"
       |3=id="{{{Ref}}}"
Line 9: Line 12:
   |3={{if
   |3={{if
       |1={{{Surname|{{{Last|{{{Surname1|{{{Last1}}}}}}}}}}}}
       |1={{{Surname|{{{Last|{{{Surname1|{{{Last1}}}}}}}}}}}}
       |2=id="HARV{{{Surname1|{{{Last1|{{{Surname|{{{Last}}}}}}}}}}}}{{{Surname2|{{{Last2|}}}}}}{{{Surname3|{{{Last3|}}}}}}{{{Surname4|{{{Last4|}}}}}}{{{Year}}}"
       |2=id="CITEREF{{{Surname1|{{{Last1|{{{Surname|{{{Last}}}}}}}}}}}}{{{Surname2|{{{Last2|}}}}}}{{{Surname3|{{{Last3|}}}}}}{{{Surname4|{{{Last4|}}}}}}{{{Year}}}"
     }}
     }}
}}>{{if
}}>{{if
Line 80: Line 83:
   |3={{if
   |3={{if
       |1={{{Chapter|{{{Contribution|}}}}}}
       |1={{{Chapter|{{{Contribution|}}}}}}
       |2={{if
       |2=, {{Link|1={{{URL|}}}|2="{{{Chapter|{{{Contribution}}}}}}"}} in {{if
            |1={{{Title|}}}
            |2=, {{Link|1={{{URL|}}}|2="{{{Title}}}"}}
          }}, "{{{Chapter|{{{Contribution}}}}}}" in {{if
             |{{{Editor|}}}
             |{{{Editor|}}}
             |{{{Editor}}}, ed.,&#32;
             |{{{Editor}}}, ed.,&#32;
           }}{{{Title}}}{{if
           }}''{{{Title}}}''{{if
               |{{{Edition|}}}
               |{{{Edition|}}}
               |&#32;({{{Edition}}} ed.)
               |&#32;({{{Edition}}} ed.)

Revision as of 03:08, 24 November 2005

This is a test template which is not yet to be used. {{ safesubst:p{{ safesubst:#if{{{Author1}}}

 :{{ safesubst:p{{ safesubst:#if
    :Template:Wikilink
    |1|2}}|{{{Last}}}{{ safesubst:p{{ safesubst:#if{{{Initials1}}}
           :, {{{First}}}
         |1|2}}|{{{3}}}|}}
     
  |}}{{ safesubst:p{{ safesubst:#if
    :{{ safesubst:p{{ safesubst:#if
       :, 
       |1|2}}| & 
     |}}{{ safesubst:p{{ safesubst:#if
       :Template:Wikilink
       |1|2}}|{{{3}}}
     |}}{{ safesubst:p{{ safesubst:#if
       : & {{ safesubst:p{{ safesubst:#if
          :Template:Wikilink
          |1|2}}|{{{3}}}
        |}}{{ safesubst:p{{ safesubst:#if
          :, et al.
        |1|2}}|{{{3}}}|}}
     |1|2}}|{{{3}}}|}}
  |1|2}}|{{{3}}}|}}
 |1|2}}|…

|}} ({{{Year}}}){{{3}}}{{ safesubst:p{{ safesubst:#if

             : ({{{Edition}}} ed.)
         |1|2}}|{{{3}}}|}}{{ safesubst:p{{ safesubst:#if
             :, {{{Publisher}}}
         |1|2}}|{{{3}}}|}}{{ safesubst:p{{ safesubst:#if
             :, {{{Place}}}
         |1|2}}|{{{3}}}|}}{{ safesubst:p{{ safesubst:#if
             :, ISBN {{{ISBN}}}
         |1|2}}|{{{3}}}|}}{{ safesubst:p{{ safesubst:#if
   : [{{{Access-date}}}]

|1|2}}|{{{3}}}|}}