Template:Cite web: Difference between revisions

    From Nonbinary Wiki
    m>Ligulem
    (Warning: drastic change: Replaced {{if}} with new {{qif}}. I have tested that but please revert quickly if you see anything that doesn't work. Thanks!)
    m>Ligulem
    (reworked space char handling)
    Line 5: Line 5:
           |2={{{Title|{{{title|}}}}}}
           |2={{{Title|{{{title|}}}}}}
         }}
         }}
         |2={{{Date|{{{date|}}}}}}
         |2={{{Date|{{{date|}}}}}}}}
      }}
       |then={{tl|web reference}}: Parameter '''url''', '''title''' and '''date''' must be specified
       |then={{tl|web reference}}: Parameter '''url''', '''title''' and '''date''' must be specified
    }}{{{Author|{{{author|}}}}}}{{qif
    }}{{{Author|{{{author|}}}}}}{{qif
       |test={{{PublishYear|{{{publishyear|}}}}}}
       |test={{{PublishYear|{{{publishyear|}}}}}}
       |then= ({{{PublishYear|{{{publishyear|}}}}}})
       |then= ({{{PublishYear|{{{publishyear|}}}}}})
    }}{{qif
    }}{{qif
       |test={{boolor
       |test={{boolor
         |1={{{Author|{{{author|}}}}}}
         |1={{{Author|{{{author|}}}}}}
         |2={{{PublishYear|{{{publishyear|}}}}}}
         |2={{{PublishYear|{{{publishyear|}}}}}}}}
      }}
       |then=.}}{{qif
       |then=. 
    }}{{qif
       |test={{booland
       |test={{booland
         |1={{{URL|{{{url|}}}}}}
         |1={{{URL|{{{url|}}}}}}
         |2={{{Title|{{{title|}}}}}}
         |2={{{Title|{{{title|}}}}}}}}
      }}
       |then= [{{{URL|{{{url}}}}}} {{{Title|{{{title}}}}}}].
       |then=[{{{URL|{{{url}}}}}} {{{Title|{{{title}}}}}}]. 
    }}{{qif
    }}{{qif
       |test={{{format|{{{Format|}}}}}}
       |test={{{format|{{{Format|}}}}}}
       |then= ({{{Format|{{{format}}}}}})
       |then= ({{{Format|{{{format}}}}}})
    }}{{qif
    }}{{qif
       |test={{{Work|{{{work|}}}}}}
       |test={{{Work|{{{work|}}}}}}
       |then=''{{{Work|{{{work}}}}}}''.
       |then= ''{{{Work|{{{work}}}}}}''.}}{{qif
    }} {{qif
       |test={{{Publisher|{{{publisher|}}}}}}
       |test={{{Publisher|{{{publisher|}}}}}}
       |then={{{Publisher|{{{publisher}}}}}}.
       |then= {{{Publisher|{{{publisher}}}}}}.
    }} {{qif
    }}{{qif
       |test={{{Date|{{{date|}}}}}}
       |test={{{Date|{{{date|}}}}}}
       |then=URL accessed on [[{{{Date|{{{date}}}}}}]]
       |then= URL accessed on [[{{{Date|{{{date}}}}}}]]
    }} {{qif
    }}{{qif
       |test={{{Year|{{{year|}}}}}}
       |test={{{Year|{{{year|}}}}}}
       |then=[[{{{Year|{{{year}}}}}}]]
       |then=&#32;[[{{{Year|{{{year}}}}}}]]}}.<noinclude>
      }}.<noinclude>
    {{esoteric}}
    {{esoteric}}
    </noinclude>
    </noinclude>

    Revision as of 12:26, 30 November 2005