Difference between revisions of "Template:Top"

From radlines.org
Jump to navigation Jump to search
(simplified)
Line 1: Line 1:
''Author{{#if:{{{author2|}}}{{{last2|}}}
+
''Author{{#ifexist: author2 | s | }}:
      |s}}
 
 
{{#if:{{{author|}}}{{{last|}}}
 
{{#if:{{{author|}}}{{{last|}}}
 
   | {{#if:{{{authorlink|}}}
 
   | {{#if:{{{authorlink|}}}
Line 85: Line 84:
 
         }}
 
         }}
 
     }}
 
     }}
 +
}}{{#if:{{{author|}}}{{{last|}}}{{{editor|}}}{{{editors|}}}<!--Only display quotee and date here if these parameters present. Otherwise, display date after publisher's name.-->
 +
  | {{#if:{{{quotee|}}}
 +
      |, quoting {{{quotee|}}}&#32;
 +
    }}({{#if:{{{year|}}}
 +
      | {{#if:{{{month|}}}
 +
          | {{{month}}} {{{year}}}
 +
          | {{#switch:{{padleft:|2|{{{year}}}}}
 +
              | a. = ''[[Appendix:Glossary#a.|a.]]'' {{#invoke:string|sub|{{{year}}}|4}}
 +
              | c. = ''[[Appendix:Glossary#c.|c.]]'' {{#invoke:string|sub|{{{year}}}|4}}
 +
              | p. = ''[[Appendix:Glossary#p.|p.]]'' {{#invoke:string|sub|{{{year}}}|4}}
 +
              | {{{year}}}
 +
            }}
 +
        }}
 +
      | {{#if:{{{date|}}}
 +
          | {{#formatdate:{{{date}}}}}
 +
          | {{#if:{{{accessdate|}}}
 +
              | accessed {{#formatdate:{{{accessdate}}}}}<!--Use accessdate as a backstop if year or date not specified.-->
 +
              | {{rfdate|nocat=<noinclude>true</noinclude>}}
 +
            }}
 +
        }}
 +
    }})
 
}}{{#if:{{{author|}}}{{{last|}}}{{{editor|}}}{{{editors|}}}
 
}}{{#if:{{{author|}}}{{{last|}}}{{{editor|}}}{{{editors|}}}
 +
  | {{#if:{{{accessdate|}}}{{{date|}}}{{{year|}}}
 +
      | {{#if:{{{chapter|}}}{{{entry|}}}
 +
          |,&#32;<!--Add a comma before chapter or entry if author or editor specified together with date or year. Otherwise, do nothing. (If chapter or entry, and date or year, are specified but author or editor not specified, date or year is relocated after the publisher's name.)-->
 +
        }}
 +
    }}
 +
}}{{#if:{{{entry|}}}
 +
  | {{#invoke:italics|unitalicize_brackets|{{#if:{{{url|}}}
 +
      | “[{{{url}}} {{{entry}}}]
 +
      | “{{{entry}}}
 +
    }}}}{{#if:{{{trans-chapter|}}}
 +
      |&#32;&#91;{{#invoke:italics|unitalicize_brackets|{{{trans-chapter}}}}}&#93;”
 +
      |”
 +
    }}, in&#32;
 +
  | {{#if:{{{chapter|}}}
 +
      | {{#if:{{num|{{{chapter}}}}}<!--Arabic chapter number?-->
 +
          |&#32;chapter {{#if:{{{chapterurl|}}}
 +
              | [{{{chapterurl}}} {{{chapter}}}]
 +
              | {{{chapter}}}
 +
            }}
 +
          | {{#if:{{R2A|{{{chapter}}}|no_error=1}}<!--Roman chapter number?-->
 +
              |&#32;chapter {{#if:{{{chapterurl|}}}
 +
                  | [{{{chapterurl}}} {{uc:{{{chapter}}}}}]
 +
                  | {{uc:{{{chapter}}}}}
 +
                }}
 +
              |&#32;“{{#invoke:italics|unitalicize_brackets|{{#if:{{{chapterurl|}}}<!--Must be a chapter name-->
 +
                  | [{{{chapterurl}}} {{{chapter}}}]
 +
                  | {{{chapter}}}
 +
                }}}}{{#if:{{{trans-chapter|}}}
 +
                |&#32;&#91;{{#invoke:italics|unitalicize_brackets|{{{trans-chapter}}}}}&#93;
 +
                }}”
 +
            }}
 +
        }}, in&#32;
 +
    }}
 +
}}{{#if:{{{author|}}}{{{last|}}}<!--Only display editor here if author also provided. If author not provided, do nothing – editor is displayed before date.-->
 +
  | {{#if:{{{editor|}}}{{{editors|}}}
 +
      | {{#if:{{{chapter|}}}{{{entry|}}}|<!--Do nothing.-->|,&#32;}}{{#if:{{{editor|}}}
 +
          | {{{editor}}}, editor,&#32;
 +
          | {{#if:{{{editors|}}}
 +
              | {{{editors}}}, editors,&#32;
 +
            }}
 +
        }}
 +
    }}
 +
}}{{#if:{{{chapter|}}}{{{entry|}}}|<!--Do nothing.-->|&#32;<!--If these parameters are not used, add a space.-->}}{{#if:{{{title|}}}
 +
  |<cite>{{#invoke:italics|unitalicize_brackets|{{{title}}}}}</cite>
 +
  |
 +
}}{{#if:{{{trans-title|}}}
 +
  | &#32;&#91;<cite>{{#invoke:italics|unitalicize_brackets|{{{trans-title}}}}}</cite>&#93;
 +
}}{{#if:{{{series|}}}
 +
  | &#32;({{{series}}}{{#if:{{{seriesvolume|}}}|&#59; {{{seriesvolume}}}}})
 +
}}{{#if:{{{url|}}}
 +
  | {{#if:{{{entry|}}}
 +
      |<!--Do nothing.-->
 +
      | {{#if:{{{archiveurl|}}}
 +
          | &lrm;<!--Left-to-right mark to manage right-to-left languages--><sup>[{{{archiveurl}}}]</sup>
 +
          | &lrm;<sup>[{{{url}}}]</sup>
 +
        }}
 +
    }}
 +
}}{{#if:{{{format|}}}{{{genre|}}}
 +
  | {{#if:{{{language|}}}
 +
      | &#32;({{#if:{{{format|}}}
 +
          | {{{format}}}
 +
          | {{#if:{{{genre|}}}
 +
              | {{{genre}}}
 +
            }}
 +
        }}, in {{{language}}})
 +
      | &#32;({{#if:{{{format|}}}
 +
          | {{{format}}}
 +
          | {{#if:{{{genre|}}}
 +
              | {{{genre}}}
 +
            }}
 +
        }})
 +
    }}
 +
  | {{#if:{{{language|}}}
 +
      | &#32;(in {{{language}}})
 +
    }}
 +
}}{{#if:{{{version|}}}
 +
  |, {{{version}}}
 +
}}{{#if:{{{volume|}}}
 +
  |, volume {{{volume}}}
 +
}}{{#if:{{{others|}}}
 +
  |, {{{others}}}
 +
}}{{#if:{{{issue|}}}
 +
  |, issue {{{issue}}}
 +
}}{{#if:{{{edition|}}}
 +
  |, {{{edition}}} edition
 +
}}{{#if:{{{publisher|}}}
 +
  | {{#if:{{{location|}}}
 +
      |, {{{location}}}&#58;<!--colon-->
 +
      |,
 +
    }} {{{publisher}}}
 +
  | {{#if:{{{location|}}}
 +
      |, {{{location}}}
 +
    }}
 +
}}{{#if:{{{author|}}}{{{last|}}}
 +
  |<!--Do nothing if present.-->
 +
  | {{#if:{{{editor|}}}{{{editors|}}}
 +
      |<!--Do nothing if present.-->
 +
      |, {{#if:{{{year|}}}<!--If author and editor both absent, display date here.-->
 +
          | {{#if:{{{month|}}}
 +
              | {{{month}}} {{{year}}}
 +
              | {{{year}}}
 +
            }}
 +
          | {{#if:{{{date|}}}
 +
              | {{#formatdate:{{{date}}}}}
 +
              | {{#if:{{{accessdate|}}}
 +
                  | accessed {{#formatdate:{{{accessdate}}}}}<!--Use accessdate as a backstop if year or date not specified.-->
 +
                  |
 +
                }}
 +
            }}
 +
        }}
 +
    }}
 +
}}{{#if:{{{year_published|}}}
 +
  |, published {{{year_published}}}
 +
}}{{#if:{{{bibcode|}}}
 +
  |, <small>[[w:Bibcode|Bibcode]]:&nbsp;[http://adsabs.harvard.edu/abs/{{urlencode:{{{bibcode}}}}} {{{bibcode}}}]</small>
 +
}}{{#if:{{{doi|}}}
 +
  |, <small>[[w:Digital object identifier|DOI]]:{{#if:{{{doi_brokendate|}}}
 +
    | {{#tag:nowiki|{{{doi}}}}} (inactive [[{{{doi_brokendate}}}]]){{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Pages with DOIs broken since {{#time:Y|{{{doi_brokendate}}} }}]]}}
 +
    | <span class="neverexpand">[http://dx.doi.org/{{urlencode:{{{doi}}}}} {{#tag:nowiki|{{{doi}}}}}]</span>
 +
  }}</small>
 +
}}{{#if:{{{isbn|}}}
 +
  |, <small>{{ISBN|{{{isbn}}}}}</small>
 +
}}{{#if:{{{issn|}}}
 +
  |, <small>{{ISSN|{{{issn}}}}}</small>
 +
}}{{#if:{{{jstor|}}}
 +
  |, <small>[[w:JSTOR|JSTOR]] [http://www.jstor.org/stable/{{urlencode:{{{jstor}}}}} {{{jstor}}}]</small>
 +
}}{{#if:{{{lccn|}}}
 +
  |, <small>[[w:Library of Congress Control Number|LCCN]] [http://lccn.loc.gov/{{urlencode:{{{lccn}}}}} {{{lccn}}}]</small>
 +
}}{{#if:{{{oclc|}}}
 +
  |, <small>[[w:OCLC|OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]</small>
 +
}}{{#if:{{{pmid|}}}
 +
  |, <small>[[w:PubMed Identifier|PMID]] [http://www.ncbi.nlm.nih.gov/pubmed/{{urlencode:{{{pmid}}}}} {{{pmid}}}]</small>
 +
}}{{#if:{{{ssrn|}}}
 +
  |, <small>[[w:Social Science Research Network|SSRN]] [http://ssrn.com/abstract={{urlencode:{{{ssrn}}}}} {{{ssrn}}}]</small>
 +
}}{{#if:{{{id|}}}
 +
  |, <small>{{{id}}}</small>
 +
}}{{#if:{{{archiveurl|}}}
 +
  |, archived from [{{{url}}} the original] on {{#formatdate:{{{archivedate}}}}}
 +
}}{{#if:{{{accessdate|}}}
 +
  | {{#if:{{{date|}}}{{{year|}}}<!--Only display accessdate if either date or year is specified, as accessdate is already used earlier in place of these parameters if they are missing.-->
 +
      |, retrieved {{#formatdate:{{{accessdate}}}}}
 +
    }}
 +
}}{{#if:{{{section|}}}
 +
  |, {{#if:{{{sectionurl|}}}
 +
      | [{{{sectionurl}}} {{{section}}}]
 +
      | {{{section}}}
 +
    }}
 +
}}{{#if:{{{pages|}}}
 +
  | {{#if:{{{page|}}}
 +
      |, {{#if:{{{pageurl|}}}
 +
          | [{{{pageurl}}} page {{{page}}}]
 +
          | page {{{page}}}
 +
        }}&#32;of {{{pages}}}
 +
      |, {{#if:{{{pageurl|}}}
 +
          | [{{{pageurl}}} pages {{{pages}}}]
 +
          | pages {{{pages}}}
 +
        }}
 +
    }}
 +
  | {{#if:{{{page|}}}
 +
      |, {{#if:{{{pageurl|}}}
 +
          | [{{{pageurl}}} page {{{page}}}]
 +
          | page {{{page}}}
 +
        }}
 +
    }}
 +
}}{{#if:{{{column|}}}
 +
  |, column {{{column}}}
 +
  | {{#if:{{{columns|}}}
 +
      |, columns {{{columns}}}
 +
    }}
 +
}}{{#if:{{{passage_block|}}}
 +
  | {{#ifeq:{{{passage_block|}}}|no
 +
      | {{#if:{{{passage|}}}
 +
          |&#58; “{{{passage}}}”
 +
        }}
 +
      |&#58;<!--colon--><blockquote>{{{passage_block}}}</blockquote>
 +
    }}
 +
  | {{#if:{{{passage|}}}
 +
      | {{#ifexpr:{{#invoke:string|len|{{{passage}}}}}>300
 +
          |&#58;<blockquote>{{{passage}}}</blockquote>
 +
          |&#58; “{{{passage}}}”
 +
        }}
 +
    }}
 +
}}{{#if:{{{archiveurl|}}}
 +
  | {{#if:{{{archivedate|}}}
 +
      |<!--Do nothing-->
 +
      | [[Category:Quotations using archiveurl without archivedate]]
 +
    }}
 +
}}

Revision as of 09:40, 23 May 2018

Author: ,