Difference between revisions of "Template:Cite DGRG"

From blackwiki
Jump to navigation Jump to search
imported>1234qwer1234qwer4
(User:RL0919, your edit seems to have added two thousand pages to Category:Pages using duplicate arguments in template calls)
imported>Trappist the monk
(sync from sandbox;)
 
Line 1: Line 1:
<!--
+
{{#if:{{{noicon|}}}||{{#if:{{{wstitle|}}}||[[File:PD-icon.svg|12px|alt=]]&nbsp;}}}}<!--no white space
sort out the icon to use
 
-->{{#if: {{{noicon|}}}|<!--then do nothing-->
 
          |<!--else-->{{#if: {{{wstitle|}}}
 
            |<!--then-->[[File:Wikisource-logo.svg|12px|alt=]]&nbsp;
 
            |<!--else-->[[File:PD-icon.svg|12px|alt=]]&nbsp;
 
          }}<!--no white space
 
-->}}<!--no white space
 
-->{{cite encyclopedia
 
  
 +
-->{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia
 +
  |_exclude=noicon, short, wstitle, _debug
 +
  |_reuse=title, url <!-- these are reused -->
 +
 +
    | encyclopedia = [[Dictionary of Greek and Roman Geography]]
 
  <!--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|}}}| |William}} }}}
+
     | editor-first={{#if:{{{short|}}}||William}}
     | editor-last = {{{editor-last|{{#if: {{{short|}}}| |Smith}} }}}
+
     | editor-last={{#if:{{{short|}}}||Smith}}
     | editor-link = {{{editorlink|{{#if: {{{short|}}}| |William Smith (lexicographer)}} }}}
+
     | editor-link={{#if:{{{short|}}}||William Smith (lexicographer)}}
     | location = {{{location|{{#if: {{{short|}}}| |{{{location|London}}} }} }}}
+
     | location={{#if:{{{short|}}}||London}}
     | publisher = {{{publisher|{{#if: {{{short|}}}| |{{{publisher|John Murray}}} }} }}}
+
     | publisher={{#if:{{{short|}}}||John Murray}}
    | encyclopedia = [[Dictionary of Greek and Roman Geography]]
+
 
    | title= {{#if: {{{wstitle|}}}|<!--then-->[[s:Dictionary of Greek and Roman Geography/{{{wstitle|}}}|{{{wstitle|}}}]]
+
|title={{#if:{{{wstitle|}}}|{{cite wikisource/make link
    |<!-- else -->
+
                |link=Dictionary of Greek and Roman Geography/{{{wstitle|}}}
      {{#if: {{{title|}}}|<!--then-->{{{title|}}}
+
                |label={{{display|{{{wstitle|}}}}}}
      |<!--else--><sup>[[s:Dictionary of Greek and Roman Geography|<span style="color:red">article name needed</span>]]</sup>
+
                |noicon={{{no-icon|{{{noicon|}}}}}}
      }}<!--end title-->
+
              }}|{{#if:{{{title|}}}|{{{title|}}}}}}}
    }}<!--end of check wstitle-->
+
 
    |{{#if: {{{wstitle|}}}|HIDE_PARAMETER |{{#if: {{{title|}}} |url |HIDE_PARAMETER}} }} = {{#if: {{{wstitle|}}}| |{{#if: {{{title|}}} | {{{url|}}} }} }}
+
|url={{#if: {{{wstitle|}}}||{{{url|}}}}}
  
    | access-date = {{{accessdate|}}}
+
     | year={{#switch:{{{volume}}}
    | edition = {{{edition|}}}
 
     | year = {{{year|{{#switch:{{{volume}}}
 
 
       | 1 | I  = 1854
 
       | 1 | I  = 1854
 
       | 2 | II = 1857
 
       | 2 | II = 1857
 
       |<!-- default if no volume specified --> 1854–1857
 
       |<!-- default if no volume specified --> 1854–1857
       }} }}}
+
       }}
 
 
<!-- some standard parameters-->
 
    | last =  {{{last| {{{author|}}} }}}
 
    | first = {{{first|}}}
 
    | authorlink = {{{authorlink|}}}
 
    | author-link = {{{author-link|}}}
 
 
 
    | last2 =  {{{last2|}}}
 
    | first2 = {{{first2|}}}
 
    | author-link2 = {{{authorlink2|}}}
 
    | author2-link = {{{author2-link|}}}
 
 
 
    | last3 =  {{{last3|}}}
 
    | first3 = {{{first3|}}}
 
    | author-link3 = {{{authorlink3|}}}
 
    | author3-link = {{{author3-link|}}}
 
 
 
    | display-authors={{{display-authors|}}}
 
    | coauthors = {{{coauthors|}}}
 
 
 
    | volume = {{{volume|}}}
 
    | page = {{{page|}}}
 
    | pages = {{{pages|}}}
 
    | ref = {{{ref|}}}
 
    | mode = {{{mode|}}}
 
 
   }}<noinclude>
 
   }}<noinclude>
 
{{Documentation}}</noinclude><!--
 
{{Documentation}}</noinclude><!--

Latest revision as of 15:52, 13 October 2020

 Smith, William, ed. (1854–1857). Dictionary of Greek and Roman Geography. London: John Murray. Missing or empty |title= (help)

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

Usage

This template can be used in place of {{cite encyclopedia}} to indicate that the Dictionary of Greek and Roman Geography is being cited to support information in an article. The advantage is that it will fill in certain fields automatically.

The Dictionary of Greek and Roman Geography (1854–57) is now in the public domain. Text from the DGRG is incorporated into an article then use the template {{DGRG}} to attribution the text in compliance with the Plagiarism guideline.

Quick explanation (aide-mémoire)

The template can be placed in different locations and depending on the what it is required the parameters can be mixed and matched:

Parameters Example Note
{{Cite DGRG|wstitle=DGRG article name}} Smith, William, ed. (1854–1857). "Antilibanus" . Dictionary of Greek and Roman Geography. London: John Murray. Use wstitle=DGRG article name if the article exists on Wikisource. if not use title=DGRG article name
{{Cite DGRG|title=|url=|first=|last=|volume=|pages=}}  James, Edward Boucher (1854). "Antilibanus". In Smith, William (ed.). Dictionary of Greek and Roman Geography. 1. London: John Murray. pp. 140, 141. some additional information: title instead of wstitle, url to the external page instead of link to wikisource; the first and last names of the author of the article, the volume and page [number]s. Volume also set year.

Detailed notes

This template is wrapper around {{cite encyclopedia}}. In its default mode it attributes text to an article from the third edition of the Dictionary of Christian Biography and Literature to the End of the Sixth Century.

This template automatically sets some of the parameters passed into {{cite encyclopedia}} for example "publisher = John Murray". Over and above the standard parameter passed into {{cite encyclopedia}} there are some additional parameters and those are listed below in a separate table from the table of parameters passed into {{cite encyclopedia}}.

Minimum is:{{Cite DGRG|title=DGRG article name}} or {{Cite DGRG|wstitle=DGRG article name}}

Full set is:{{Cite DGRG|wstitle= |no-icon |author= |last= |first= |authorlink= |coauthors= |title= |url= |accessdate= |volume= |page= |pages= |ref=}}

Additional parameters
Parameter Note
wstitle=name of the article on wikisource If set, set link to a DGRG article name on wikisource, and unsets title and url if they are also set.
no-icon=1 Suppresses the lead icon (useful with {{Wikisource-inline}}).
short =x use this parameter in the "External links" to shorten the text displayed.
Parameters passed into {{cite encyclopedia}}
Parameter Set to Notes
last= author= or last= If author= and last= are set the value of last= is used.
first= first= Set to the value of first= or not set
author-link= author-link= Set to the value of author-link= or not set
displayauthors= displayauthors= Unlikely to be needed but can be set
editor-first= William Automatically set within the template
editor-last= Smith Automatically set within the template
editor-link= William Smith (lexicographer) Automatically set within the template
encyclopedia= Dictionary of Greek and Roman Geography Automatically set within the template
title= wstitle= or title= Set to wstitle= if set, if not to title= if set, if not set then left blank.
url= url= Set to the value of url= unless wstitle= is set in which case it is not set. If not set then a red super script warning string "article name needed" is displayed. The red text links to the Wikisource page s:Dictionary of Christian Biography and Literature to the End of the Sixth Century.
accessdate= accessdate= Set to the value of accessdate= or not set
language= Not set
edition= Not set
date= Not set (see year)
year= 1854–57 Automatically set within the template unless a year or a volume (volume=1 sets year=1854, volume=2 sets year=1857)
month= Not set
publisher= John Murray automatically set within the template
volume= volume= Set to the value of volume= or not set
location= London
id= Not set
isbn= Not set
oclc= Not set
doi= Not set
page= page= Set to the value of page= or not set
pages= pages= Set to the value of pages= or not set
quote= Not set
ref= ref = Set to the value of ref= or not set

Hidden categories

Depending on the parameters passed into this template, it adds the following hidden categories to the articles in which it is used:

For an overview group category of the above see:Category:Wikipedia articles incorporating a citation from the DGRG

See also

  • {{DGRG}}—calls this template, but a prescript for attribution of directly copied text.

Notes