Template:Cite book: Difference between revisions

    From Nonbinary Wiki
    m>Gracefool
    (rv)
    m>Gracefool
    (updated from User:Gracefool/cite book)
    Line 1: Line 1:
    <cite style="font-style:normal">{{qif
    <cite class="book" style="font-style:normal">{{qif
       |test={{{authorlink|}}}
       |test={{{author|{{{last|}}}}}}
      |then={{wikilink
      |then={{qif
        |1={{{authorlink}}}
        |test={{{authorlink|}}}
        |2={{qif
        |then={{wikilink
          |test={{{author|}}}
          |1={{{authorlink}}}
          |then={{{author}}}
          |2={{qif
           |else={{{last|}}}{{qif
            |test={{{last|}}}
            |then={{{last}}}{{qif
              |test={{{first|}}}
              |then=, {{{first}}}
            }}
            |else={{{author}}}
           }}
        }}
        |else={{qif
          |test={{{last|}}}
          |then={{{last}}}{{qif
             |test={{{first|}}}
             |test={{{first|}}}
             |then=, {{{first}}}
             |then=, {{{first}}}
           }}
           }}
          |else={{{author}}}
         }}
         }}
       }}
       }}
    }}{{qif
      |test={{{author|{{{last|}}}}}}
      |then={{qif
        |test={{{coauthors|}}}
        |then=, {{{coauthors}}}
      }}
    }}{{qif
      |test={{{origdate|}}}
      |then=&#32;<nowiki>[</nowiki>[[{{{origdate}}}]]]
       |else={{qif
       |else={{qif
         |test={{{author|}}}
         |test={{{origyear|}}}
         |then={{{author}}}
         |then={{qif
        |else={{{last|}}}{{qif
          |test={{{origmonth|}}}
           |test={{{first|}}}
           |then=&#32;<nowiki>[</nowiki>[[{{{origmonth}}} {{{origyear}}}]]]
           |then=, {{{first}}}
           |else=&#32;<nowiki>[</nowiki>[[{{{origyear}}}]]]
         }}
         }}
       }}
       }}
    }}{{qif
      |test={{{coauthors|}}}
      |then=<nowiki>,</nowiki> {{{coauthors}}}
    }}{{qif
    }}{{qif
       |test={{{date|}}}
       |test={{{date|}}}
       |then=&#32;({{{date}}})
       |then=&#32;([[{{{date}}}]])
       |else={{qif
       |else={{qif
         |test={{{year|}}}
         |test={{{year|}}}
         |then={{qif
         |then={{qif
           |test={{{month|}}}
           |test={{{month|}}}
           |then=&#32;({{{month}}} {{{year}}})
           |then=&#32;([[{{{month}}} {{{year}}}]])
           |else=&#32;({{{year}}})
           |else=&#32;([[{{{year}}}]])
         }}
         }}
       }}
       }}
    }}{{qif
    }}{{qif
       |test={{{author|{{{last|{{{year|}}}}}}}}}
       |test={{{last|}}}
       |then=.
       |then=.
    }}{{qif
    }}{{qif
    Line 47: Line 64:
       |then=&#32;{{{editor}}}
       |then=&#32;{{{editor}}}
    }} ''{{qif
    }} ''{{qif
       |test={{{link|}}}
       |test={{{url|}}}
      |then={{wikilink
       |then=[{{{url}}} {{{title}}}]
        |1={{{link}}}
      |else={{{title}}}
        |2={{{title}}}
        }}
       |else={{qif
        |test={{{url|}}}
        |then=[{{{url}}} {{{title}}}]
        |else={{{title}}}
      }}
    }}''{{qif
    }}''{{qif
       |test={{{link|}}}
       |test={{{format|}}}
       |then=
       |then=&#32;({{{format}}})
      |else={{qif
        |test={{{format|}}}
        |then=&#32;({{{format}}})
      }}
    }}{{qif
    }}{{qif
       |test={{{others|}}}
       |test={{{others|}}}
    Line 70: Line 76:
       |test={{{edition|}}}
       |test={{{edition|}}}
       |then=, {{{edition}}}
       |then=, {{{edition}}}
    }}{{qif
      |test={{{language|}}}
      |then=&#32;(in {{{language}}})
    }}{{qif
    }}{{qif
       |test={{{pages|}}}
       |test={{{pages|}}}
    Line 83: Line 92:
       |then=. {{{id}}}
       |then=. {{{id}}}
    }}{{qif
    }}{{qif
       |test={{{link|}}}
       |test={{{accessdate|}}}
       |then=
       |then=. URL accessed [[{{{accessdate}}}]]
       |else={{qif
       |else={{qif
         |test={{{accessdate|}}}
         |test={{{accessyear|}}}
         |then=. URL accessed {{{accessdate}}}
         |then=. URL accessed {{qif
        |else={{qif
           |test={{{accessmonth|}}}
           |test={{{accessyear|}}}
           |then=on [[{{{accessmonth}}} {{{accessyear}}}]]
           |then=. URL accessed {{qif
          |else=during [[{{{accessyear}}}]]
            |test={{{accessmonth|}}}
            |then=on {{{accessmonth}}} {{{accessyear}}}
            |else=during {{{accessyear}}}
          }}
         }}
         }}
       }}
       }}

    Revision as of 03:31, 20 February 2006