Difference between revisions of "Template:Top"

From radlines.org
Jump to navigation Jump to search
(plural)
m (br)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>''Author{{#if:{{{author2|}}}
 
<includeonly>''Author{{#if:{{{author2|}}}
 
           |s
 
           |s
           |}}
+
           |}}:
 
{{#if:{{{author1|}}}{{{last|}}}
 
{{#if:{{{author1|}}}{{{last|}}}
 
   | {{#if:{{{authorlink1|}}}
 
   | {{#if:{{{authorlink1|}}}
Line 86: Line 86:
 
         }}
 
         }}
 
     }}
 
     }}
}}{{#if:{{{author|}}}{{{last|}}}{{{editor|}}}{{{editors|}}}<!--Only display quotee and date here if these parameters present. Otherwise, display date after publisher's name.-->
+
}}<ref group="notes">For a full list of contributors, see article <span class="plainlinks">[{{SAFESUBST:<noinclude/>fullurl:{{SAFESUBST:<noinclude/>#ifeq:{{lc:{{{1|}}}}}|talk|{{SAFESUBST:<noinclude/>TALKPAGENAME:{{SAFESUBST:<noinclude/>SUBJECTPAGENAME}}}}|{{{1|{{SAFESUBST:<noinclude/>SUBJECTPAGENAME}}}}}}}|action=history}} {{SAFESUBST:<noinclude/>#ifeq:{{lc:{{{1|}}}}}|talk|{{{2|history}}}|{{{2|{{{1|history}}}}}}}}]</span>. Creators of images are attributed at the image description pages, seen by clicking on the images. See [[Radlines:Authorship]] for details.</ref><br></includeonly><noinclude>
  | {{#if:{{{quotee|}}}
+
Example coding:
      |, quoting {{{quotee|}}}&#32;
+
:<nowiki>{{Authors</nowiki>
    }}({{#if:{{{year|}}}
+
:<nowiki>|author1=[[User:Mikael Häggström|Mikael Häggström]]</nowiki>
      | {{#if:{{{month|}}}
+
:<nowiki>|author2=</nowiki>
          | {{{month}}} {{{year}}}
+
:<nowiki>}}</nowiki>
          | {{#switch:{{padleft:|2|{{{year}}}}}
+
 
              | a. = ''[[Appendix:Glossary#a.|a.]]'' {{#invoke:string|sub|{{{year}}}|4}}
+
Together with the {{tl|Bottom}} template, this will show as:<br>
              | c. = ''[[Appendix:Glossary#c.|c.]]'' {{#invoke:string|sub|{{{year}}}|4}}
+
{{Authors
              | p. = ''[[Appendix:Glossary#p.|p.]]'' {{#invoke:string|sub|{{{year}}}|4}}
+
|author1=[[User:Mikael Häggström|Mikael Häggström]]
              | {{{year}}}
+
|author2=
            }}
+
}}
        }}
+
 
      | {{#if:{{{date|}}}
+
{{Bottom}}
          | {{#formatdate:{{{date}}}}}
+
{{Wikimedia documentation|site=Wiktionary|url=https://en.wiktionary.org/w/index.php?title=Template:cite-meta&action=edit}}</noinclude>
          | {{#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:{{{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]]
 
    }}
 
}}</includeonly>
 
<noinclude>{{Wikimedia documentation|site=Wiktionary|url=https://en.wiktionary.org/w/index.php?title=Template:cite-meta&action=edit}}</noinclude>
 

Latest revision as of 11:41, 17 January 2019

Example coding:

{{Authors
|author1=[[User:Mikael Häggström|Mikael Häggström]]
|author2=
}}

Together with the {{Bottom}} template, this will show as:
Author: Mikael Häggström [notes 1]

Notes

  1. For a full list of contributors, see article history. Creators of images are attributed at the image description pages, seen by clicking on the images. See Radlines:Authorship for details.

References

This template is adapted from Wiktionary. See the corresponding page there for documentation

https://en.wiktionary.org/w/index.php?title=Template:cite-meta&action=edit