Šablona:Citace periodika: Porovnání verzí

Z Enviwiki
Skočit na navigaci Skočit na vyhledávání
cs>Beren
m (oprava kat)
cs>Danny B.
({{qif}} {{Booland}} {{Booleq}} nahrazeny funkcemi parseru; {{wikilink}} rozepsán)
Řádek 1: Řádek 1:
<cite style="font-style:normal" {{qif
<cite style="font-style: normal;" {{
   |test={{{Ref|}}}
#if: {{{Ref|}}}
   |then={{qif
   | {{
        |test={{booleq
    #ifeq: {{{Ref}}} | none
              |{{{Ref}}}
      |
              |none
      | id="{{{Ref}}}"
              }}
    }}
         |then=
  | {{
        |else=id="{{{Ref}}}"
    #if: {{{Příjmení|}}}{{{Rok|}}}
      | id="Reference-{{{Příjmení}}}-{{{Rok}}}"
    }}
   }}
}}>{{
#if: {{{Odkaz autora|}}}
  | [[{{{Odkaz autora}}}|{{{Autor|{{{Příjmení|}}}{{
    #if: {{{Jméno|}}}
      | , {{{Jméno}}}
    }}
    }}}]]
  | {{{Autor|{{{Příjmení|}}}{{
    #if: {{{Jméno|}}}
      | , {{{Jméno}}}
    }}
    }}}
}}{{
#if: {{{Spoluautoři|}}}
  | , {{{Spoluautoři}}}
}}{{
#if: {{{Datum|}}}
  | &#32;({{{Datum}}})
  | {{
    #if: {{{Rok|}}}
      | {{
         #if: {{{Měsíc|}}}
          | &#32;({{{Měsíc}}} {{{Rok}}})
          | &#32;({{{Rok}}})
         }}
         }}
  |else={{qif
     }}
        |test={{booland
}}{{
              |1={{{Příjmení|}}}
#if: {{{Autor|{{{Příjmení|{{{Rok|}}}}}}}}}  
              |2={{{Rok|}}}
   | .&#32;
              }}
}}{{
        |then=id="Reference-{{{Příjmení}}}-{{{Rok}}}"
#if: {{{URL|}}}  
        }}
   | [{{{URL}}} {{{Název}}}] | {{{Název}}}
}}>{{qif
}}{{
  |test={{{Odkaz autora|}}}
#if: {{{Časopis|}}}
  |then={{wikilink
   | . ''{{{Časopis}}}''
        |1={{{Odkaz autora}}}
}}{{
        |2={{{Autor|{{{Příjmení|}}}{{qif|test={{{Jméno|}}}|then=, {{{Jméno}}}}}}}}
#if: {{{Ročník|}}}
        }}
   | &#32;{{{Ročník}}}
  |else={{{Autor|{{{Příjmení|}}}{{qif|test={{{Jméno|}}}|then=, {{{Jméno}}}}}}}}
}}{{
}}{{qif
#if: {{{Číslo|}}}
  |test={{{Spoluautoři|}}}
   | &#32;({{{Číslo}}})
  |then=<nowiki>,</nowiki> {{{Spoluautoři}}}
}}{{
}}{{qif
#if: {{{Strany|}}}
  |test={{{Datum|}}}
   | &#x3a; {{{Strany}}}
  |then=&#32;({{{Datum}}})
}}{{
  |else={{qif
#if: {{{ID|}}}  
     |test={{{Rok|}}}
   | . {{{ID}}}
    |then={{qif
      |test={{{Měsíc|}}}
      |then=&#32;({{{Měsíc}}} {{{Rok}}})
      |else=&#32;({{{Rok}}})
    }}
  }}
}}{{qif
  |test={{{Autor|{{{Příjmení|{{{Rok|}}}}}}}}}
   |then=.&#32;
}}{{qif
  |test={{{URL|}}}
   |then=[{{{URL}}}
  |else=
}} {{{Název}}}{{qif
  |test={{{URL|}}}
  |then=]
  |else=
}}{{qif
  |test={{{Časopis|}}}
   |then=. ''{{{Časopis}}}''
}}{{qif
  |test={{{Ročník|}}}
   |then=&#32;{{{Ročník}}}
}}{{qif
  |test={{{Číslo|}}}
   |then=&#32;({{{Číslo}}})
}}{{qif
  |test={{{Strany|}}}
   |then=<nowiki>:</nowiki> {{{Strany}}}
}}{{qif
  |test={{{ID|}}}
   |then=. {{{ID}}}
}}.</cite><noinclude>
}}.</cite><noinclude>
[[Kategorie:Šablony pro citování|{{PAGENAME}}]]
[[Kategorie:Šablony pro citování|{{PAGENAME}}]]
[[en:Template:Journal reference]]
[[en:Template:Journal reference]]
</noinclude>
</noinclude>

Verze z 4. 6. 2006, 17:44