Difference between revisions of "Template:Cite DGRA"
(simplify) |
imported>WOSlinker (dedupe HIDE_PARAMETER to stop adding to Category:Pages using duplicate arguments in template calls) |
||
| Line 7: | Line 7: | ||
<!--allow up to two authors to be set--> | <!--allow up to two authors to be set--> | ||
| − | |{{#if:{{{last|}}} |last | | + | |{{#if:{{{last|}}} |last |HIDE_PARAMETER1}}={{{last|}}} |
| − | |{{#if:{{{last1|}}} |last1 | | + | |{{#if:{{{last1|}}} |last1 |HIDE_PARAMETER2}}={{{last1|}}} |
| − | |{{#if:{{{author|}}} |author | + | |{{#if:{{{author|}}} |author |HIDE_PARAMETER3}}={{{author|}}} |
| − | |{{#if:{{{author1|}}} |author1 | | + | |{{#if:{{{author1|}}} |author1 |HIDE_PARAMETER4}}={{{author1|}}} |
| − | |{{#if:{{{authors|}}} |authors | | + | |{{#if:{{{authors|}}} |authors |HIDE_PARAMETER5}}={{{authors|}}} |
| − | |{{#if:{{{first|}}} |first | | + | |{{#if:{{{first|}}} |first |HIDE_PARAMETER6}}={{{first|}}} |
| − | |{{#if:{{{first1|}}} |first1 | + | |{{#if:{{{first1|}}} |first1 |HIDE_PARAMETER7}}={{{first1|}}} |
| − | |{{#if:{{{authorlink|}}} |authorlink | | + | |{{#if:{{{authorlink|}}} |authorlink |HIDE_PARAMETER8}}={{{authorlink|}}} |
| − | |{{#if:{{{author-link|}}} |author-link | | + | |{{#if:{{{author-link|}}} |author-link |HIDE_PARAMETER9}}={{{author-link|}}} |
| − | |{{#if:{{{author1-link|}}} |author1-link | | + | |{{#if:{{{author1-link|}}} |author1-link |HIDE_PARAMETER10}}={{{author1-link|}}} |
| − | |{{#if:{{{authorlink1|}}} |authorlink1 | | + | |{{#if:{{{authorlink1|}}} |authorlink1 |HIDE_PARAMETER11}}={{{authorlink1|}}} |
| − | |{{#if:{{{last2|}}} |last2 | | + | |{{#if:{{{last2|}}} |last2 |HIDE_PARAMETER12}}={{{last2|}}} |
| − | |{{#if:{{{author2|}}} |author2 | | + | |{{#if:{{{author2|}}} |author2 |HIDE_PARAMETER13}}={{{author2|}}} |
| − | |{{#if:{{{first2|}}} |first2 | | + | |{{#if:{{{first2|}}} |first2 |HIDE_PARAMETER14}}={{{first2|}}} |
| − | |{{#if:{{{authorlink2|}}} |authorlink2 | | + | |{{#if:{{{authorlink2|}}} |authorlink2 |HIDE_PARAMETER15}}={{{authorlink2|}}} |
| − | |{{#if:{{{author2-link|}}} |author2-link | | + | |{{#if:{{{author2-link|}}} |author2-link |HIDE_PARAMETER16}}={{{author2-link|}}} |
<!-- set defaults for some parameters--> | <!-- set defaults for some parameters--> | ||
|year={{{year|{{#if:{{{wstitle|}}}|1890|1870}}<!-- -->}}} <!--Wikisource edition is 1890--> | |year={{{year|{{#if:{{{wstitle|}}}|1890|1870}}<!-- -->}}} <!--Wikisource edition is 1890--> | ||
|encyclopedia={{{encyclopedia|[[Dictionary of Greek and Roman Antiquities]]}}} | |encyclopedia={{{encyclopedia|[[Dictionary of Greek and Roman Antiquities]]}}} | ||
| − | |{{#if:{{{wstitle|}}} |edition | | + | |{{#if:{{{wstitle|}}} |edition |HIDE_PARAMETER17}}={{#if:{{{wstitle|}}}|{{{edition|3rd}}} }} |
<!--set defaults but do not display defaults if the short parameter is set --> | <!--set defaults but do not display defaults if the short parameter is set --> | ||
| Line 49: | Line 49: | ||
}}<!--end title--> | }}<!--end title--> | ||
}}<!--end of check wstitle--> | }}<!--end of check wstitle--> | ||
| − | |{{#if:{{{title|{{{article|}}} }}} |url | | + | |{{#if:{{{title|{{{article|}}} }}} |url |HIDE_PARAMETER18}}={{#if:{{{title|{{{article|}}} }}} |{{{url|}}} }} |
<!-- if required allow some other parameters to be set--> | <!-- if required allow some other parameters to be set--> | ||
| − | |{{#if:{{{volume|}}} |volume | | + | |{{#if:{{{volume|}}} |volume |HIDE_PARAMETER19}}={{{volume|}}} |
| − | |{{#if:{{{page|}}} |page | | + | |{{#if:{{{page|}}} |page |HIDE_PARAMETER20}}={{{page|}}} |
| − | |{{#if:{{{pages|}}} |pages | | + | |{{#if:{{{pages|}}} |pages |HIDE_PARAMETER21}}={{{pages|}}} |
| − | |{{#if:{{{ref|}}} |ref | | + | |{{#if:{{{ref|}}} |ref |HIDE_PARAMETER22}}={{{ref|}}} |
}}<includeonly>{{#ifeq: {{NAMESPACEE}} |<!--is set--> | }}<includeonly>{{#ifeq: {{NAMESPACEE}} |<!--is set--> | ||
|<!--Sort out the parameters--> | |<!--Sort out the parameters--> | ||
Revision as of 11:17, 25 October 2014
Smith, William, ed. (1870). "article name needed". Dictionary of Greek and Roman Antiquities. London: John Murray.
Contents
Purpose
This template facilitates the citation of articles from editions of Dictionary of Greek and Roman Antiquities (DGRA). Links to Wikisource or external sources are provided for. {{cite encyclopedia}} is used for the implementation.
Usage
{{Cite DGRA|wstitle=put the name of the Cite DGRA article here}}
or with a specification of additional options:
|vb =1 or x — prescript to attribute copied text (see WP:PLAGIARISM) |noicon =1 — no leading icon |inline =1 — alters the prescript to make it suitable for inline citations |wstitle=name of the DGRA article on Wikisource |display=alternative name to display in place of the DGRA article name on Wikisource |title=name of the DGRA article if not on Wikisource |url=only set it title= is set |year= —defaults to 1890 if linked to Wikisource otherwise 1870. |short =1 or x — A shorter display intended for use in external links as an alternative to {{DGRA poster}} These parameters are preset and will not be displayed if short is set |editor-first=William — will not be displayed if short is set |editor-last=Smith |editorlink=William Smith (lexicographer) |location=London |publisher=John Murray For the following parameters see the documentation of {{cite encyclopedia}} |first= |last= |author= |authorlink= |volume= |page= |pages= |ref= |mode=
Examples
Simple
{{Cite DGRA|wstitle=Abrogatio magistratus}}
displays as:
Smith, William, ed. (1890). . Dictionary of Greek and Roman Antiquities (3rd ed.). London: John Murray.
With comment
{{Cite DGRA|wstitle=Abrogatio magistratus}} A German historian and activist for freedom of the press.
displays as:
Smith, William, ed. (1890). . Dictionary of Greek and Roman Antiquities (3rd ed.). London: John Murray. A German historian and activist for freedom of the press.
Using noicon
{{Cite DGRA|wstitle=Cogniet, Leon|noicon=x}}
displays as:
Smith, William, ed. (1890). . Dictionary of Greek and Roman Antiquities (3rd ed.). London: John Murray.
Using vb
If text is incorporated verbatim into an article, the vb parameter can be used to tack on a notice appropriate to the policy in Wikipedia:Plagiarism.
{{Cite DGRA|wstitle=Abrogatio magistratus|vb=x}}
displays as:
This article incorporates text from a publication now in the public domain: Smith, William, ed. (1890). . Dictionary of Greek and Roman Antiquities (3rd ed.). London: John Murray.
Using title (no Wikisource link)
{{Cite DGRA|title=Argyraspides}}
displays as:
Smith, William, ed. (1870). "Argyraspides". Dictionary of Greek and Roman Antiquities. London: John Murray.
When title is being used, url can be used to specify an external link.
{{Cite DGRA|title=Argyraspides |url=http://www.ancientlibrary.com/smith-dgra/0140.html}}
displays as:
Smith, William, ed. (1870). "Argyraspides". Dictionary of Greek and Roman Antiquities. London: John Murray.
Hidden categories
This template places articles into a hidden categories with sub-categories to aid maintenance:
See also
{{DGRA}}— for use in a Wikipedia article that includes text copied from the DGRA article{{DGRA poster}}— display an DGRA article in a top box on the right.- Wikimedia sister projects
| The above documentation is transcluded from Template:Cite DGRA/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |