Difference between revisions of "Template:Cite DGRA"

From blackwiki
Jump to navigation Jump to search
imported>RL0919
(update parameters)
imported>Trappist the monk
 
Line 1: Line 1:
 
<!--
 
<!--
 
  optional icon - included by default
 
  optional icon - included by default
-->{{#if:{{{noicon|}}}||[[File:{{#if:{{{wstitle|}}}|wikisource-logo.svg|PD-icon.svg}}|12px|link=]]&nbsp;}}<!--
+
-->{{#if: {{{noicon|}}}||{{#if: {{{wstitle|}}}||[[File:PD-icon.svg|12px|alt=]]&nbsp;}}}}<!--
 
  optional verbatim message - not included by default
 
  optional verbatim message - not included by default
 
-->{{#if:{{{vb|}}}|{{#if: {{{inline|}}}|One or more of the preceding sentences|This article}} incorporates text from a publication now in the [[public domain]]:&nbsp;|}}<!--
 
-->{{#if:{{{vb|}}}|{{#if: {{{inline|}}}|One or more of the preceding sentences|This article}} incorporates text from a publication now in the [[public domain]]:&nbsp;|}}<!--
-->{{cite encyclopedia
+
-->{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia
 +
  |_exclude=inline, no-icon, noicon, short, wstitle, vb, _debug
 +
  |_reuse=article, author, title, url <!-- these are reused -->
  
<!--allow up to two authors to be set-->
+
  |encyclopedia=[[Dictionary of Greek and Roman Antiquities]]
  |{{#if:{{{last|}}}    |last    |HIDE_PARAMETER1}}={{{last|}}}
 
|{{#if:{{{last1|}}}    |last1    |HIDE_PARAMETER2}}={{{last1|}}}
 
|{{#if:{{{author|}}}  |author  |HIDE_PARAMETER3}}={{{author|}}}
 
|{{#if:{{{author1|}}}  |author1  |HIDE_PARAMETER4}}={{{author1|}}}
 
|{{#if:{{{authors|}}}  |authors  |HIDE_PARAMETER5}}={{{authors|}}}
 
 
 
|{{#if:{{{first|}}}    |first    |HIDE_PARAMETER6}}={{{first|}}}
 
|{{#if:{{{first1|}}}  |first1  |HIDE_PARAMETER7}}={{{first1|}}}
 
 
 
|{{#if:{{{authorlink|}}}  |author-link  |HIDE_PARAMETER8}}={{{authorlink|}}}
 
|{{#if:{{{author-link|}}}  |author-link  |HIDE_PARAMETER9}}={{{author-link|}}}
 
|{{#if:{{{author1-link|}}} |author1-link |HIDE_PARAMETER10}}={{{author1-link|}}}
 
|{{#if:{{{authorlink1|}}}  |author-link1  |HIDE_PARAMETER11}}={{{authorlink1|}}}
 
 
|{{#if:{{{last2|}}}    |last2    |HIDE_PARAMETER12}}={{{last2|}}}
 
|{{#if:{{{author2|}}}  |author2  |HIDE_PARAMETER13}}={{{author2|}}}
 
|{{#if:{{{first2|}}}  |first2    |HIDE_PARAMETER14}}={{{first2|}}}
 
 
 
|{{#if:{{{authorlink2|}}}  |author-link2  |HIDE_PARAMETER15}}={{{authorlink2|}}}
 
|{{#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={{#if:{{{wstitle|}}}|1890|1870}} <!--Wikisource edition is 1890-->
  |encyclopedia={{{encyclopedia|[[Dictionary of Greek and Roman Antiquities]]}}}
+
  |edition={{#if:{{{wstitle|}}}|3rd}}
|{{#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 -->
  | editor-first = {{{editor-first|{{#if: {{{short|}}}|<!-- eq to empty -->|William}} }}}
+
  | editor-first={{#if:{{{short|}}}||William}}
  | editor-last = {{{editor-last|{{#if: {{{short|}}}|<!-- eq to empty -->|Smith}} }}}
+
  | editor-last={{#if:{{{short|}}}||Smith}}
  | editor-link = {{{editorlink|{{#if: {{{short|}}}|<!-- eq to empty -->|William Smith (lexicographer)}} }}}
+
  | editor-link={{#if:{{{short|}}}||William Smith (lexicographer)}}
  | location = {{{location|{{#if: {{{short|}}}|<!-- eq to empty -->|{{{location|London}}} }} }}}
+
  | location={{#if:{{{short|}}}||London}}
  | publisher = {{{publisher|{{#if: {{{short|}}}|<!-- eq to empty -->|{{{publisher|John Murray}}} }} }}}
+
  | publisher={{#if:{{{short|}}}||John Murray}}
  
<!-- title and if set url -->
+
  |title={{#if:{{{wstitle|}}}|{{cite wikisource/make link
  | title= {{#if: {{{wstitle|}}}|<!--then-->[[s:A Dictionary of Greek and Roman Antiquities/{{{wstitle|}}}|{{{display|{{{wstitle|}}}<!-- -->}}}]]
+
            |link=A Dictionary of Greek and Roman Antiquities/{{{wstitle|}}}
    |<!-- else -->
+
            |label={{{display|{{{wstitle|}}}}}}
      {{#if: {{{title|}}}|<!--then-->{{{title|}}}
+
            |noicon={{{no-icon|{{{noicon|}}}}}}
        |{{#if: {{{article|}}}|<!--then-->{{{article|}}}
+
        }}|{{#if:{{{title|}}}|{{{title}}}|{{#if:{{{article|}}}|{{{article}}}}}}}}}
        |<!--else--><sup>[[s:A Dictionary of Greek and Roman Antiquities|<span style="color:red">article name needed</span>]]</sup>
 
        }}<!--end article-->
 
      }}<!--end title-->
 
    }}<!--end of check wstitle-->
 
|{{#if:{{{title|{{{article|}}} }}} |url  |HIDE_PARAMETER18}}={{#if:{{{title|{{{article|}}} }}} |{{{url|}}} }}
 
  
  <!-- if required allow some other parameters to be set-->
+
  <!--ignore url= if wstitle is set, otherwise set url if it has a value-->
  |{{#if:{{{volume|}}} |volume  |HIDE_PARAMETER19}}={{{volume|}}}
+
  |url={{#if:{{{wstitle|}}}||{{{url|}}}}}
|{{#if:{{{page|}}}   |page    |HIDE_PARAMETER20}}={{{page|}}}
 
|{{#if:{{{pages|}}}  |pages  |HIDE_PARAMETER21}}={{{pages|}}}
 
|{{#if:{{{ref|}}}    |ref    |HIDE_PARAMETER22}}={{{ref|}}}
 
|{{#if:{{{mode|}}}  |mode    |HIDE_PARAMETER23}}={{{mode|}}}
 
 
}}<includeonly>{{#ifeq: {{NAMESPACEE}} |<!--is set-->
 
}}<includeonly>{{#ifeq: {{NAMESPACEE}} |<!--is set-->
 
     |<!--Sort out the parameters-->
 
     |<!--Sort out the parameters-->

Latest revision as of 18:00, 12 October 2020

 Smith, William, ed. (1870). Dictionary of Greek and Roman Antiquities. London: John Murray. Missing or empty |title= (help)

Template documentation[view] [edit] [history] [purge]

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). "Abrogatio magistratus" . 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). "Abrogatio magistratus" . 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). "Abrogatio magistratus". 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 domainSmith, William, ed. (1890). "Abrogatio magistratus" . 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