Difference between revisions of "Template:DGRG/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>PBS
(convert all those optional parameters to only be set if they are set in the calling article)
imported>WOSlinker
(sync)
Line 22: Line 22:
 
  <!--Test below stops the setting of an empty named
 
  <!--Test below stops the setting of an empty named
 
     parameter not explicitly passed into this template-->
 
     parameter not explicitly passed into this template-->
  |{{#if:{{{first|}}}  |first  |HIDE_PARAMETER}}={{{first|}}}
+
  |{{#if:{{{first|}}}  |first  |HIDE_PARAMETER1}}={{{first|}}}
  |{{#if:{{{last|}}}    |last    |HIDE_PARAMETER}}={{{last|}}}
+
  |{{#if:{{{last|}}}    |last    |HIDE_PARAMETER2}}={{{last|}}}
  |{{#if:{{{author|}}}  |author  |HIDE_PARAMETER}}={{{author|}}}
+
  |{{#if:{{{author|}}}  |author  |HIDE_PARAMETER3}}={{{author|}}}
  |{{#if:{{{authorlink|}}} |authorlink |HIDE_PARAMETER}}={{{authorlink|}}}
+
  |{{#if:{{{authorlink|}}} |authorlink |HIDE_PARAMETER4}}={{{authorlink|}}}
  |{{#if:{{{coauthors|}}}  |coauthors  |HIDE_PARAMETER}}={{{coauthors|}}}
+
  |{{#if:{{{coauthors|}}}  |coauthors  |HIDE_PARAMETER5}}={{{coauthors|}}}
  |{{#if:{{{year|}}}    |year    |HIDE_PARAMETER}}={{{year|}}}
+
  |{{#if:{{{year|}}}    |year    |HIDE_PARAMETER6}}={{{year|}}}
  |{{#if:{{{wstitle|}}} |wstitle |HIDE_PARAMETER}}={{{wstitle|}}}
+
  |{{#if:{{{wstitle|}}} |wstitle |HIDE_PARAMETER7}}={{{wstitle|}}}
  |{{#if:{{{title|}}}  |title  |HIDE_PARAMETER}}={{{title|}}}
+
  |{{#if:{{{title|}}}  |title  |HIDE_PARAMETER8}}={{{title|}}}
  |{{#if:{{{volume|}}}  |volume  |HIDE_PARAMETER}}={{{volume|}}}
+
  |{{#if:{{{volume|}}}  |volume  |HIDE_PARAMETER9}}={{{volume|}}}
  |{{#if:{{{page|}}}    |page    |HIDE_PARAMETER}}={{{page|}}}
+
  |{{#if:{{{page|}}}    |page    |HIDE_PARAMETER10}}={{{page|}}}
  |{{#if:{{{pages|}}}  |pages  |HIDE_PARAMETER}}={{{pages|}}}
+
  |{{#if:{{{pages|}}}  |pages  |HIDE_PARAMETER11}}={{{pages|}}}
  |{{#if:{{{url|}}}    |url    |HIDE_PARAMETER}}={{{url|}}}
+
  |{{#if:{{{url|}}}    |url    |HIDE_PARAMETER12}}={{{url|}}}
  |{{#if:{{{accessdate|}}}  |accessdate  |HIDE_PARAMETER}}={{{accessdate|}}}  
+
  |{{#if:{{{accessdate|}}}  |accessdate  |HIDE_PARAMETER13}}={{{accessdate|}}}  
 
}}<!-- no white space
 
}}<!-- no white space
 
-->{{#ifeq: {{NAMESPACEE}} |<!--is set-->
 
-->{{#ifeq: {{NAMESPACEE}} |<!--is set-->
Line 42: Line 42:
 
--><noinclude>
 
--><noinclude>
 
{{Documentation}}
 
{{Documentation}}
</noinclude>
 
<!--
 
  Add your experimental template code above here
 
--><noinclude>
 
 
{{template sandbox notice}}
 
 
</noinclude>
 
</noinclude>

Revision as of 10:40, 25 October 2014

 This article incorporates text from a publication now in the public domainSmith, William, ed. (1854–1857). Dictionary of Greek and Roman Geography. London: John Murray. Missing or empty |title= (help)CS1 maint: ref=harv (link)

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

Usage

This template indicates that an article incorporates text from the third edition Dictionary of Greek and Roman Geography, which is now in the public domain.

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
{{DGRG|wstitle=DGRG article name}}  This article incorporates text from a publication now in the public domainSmith, 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
{{DGRG|title=|url=|first=|last=|pages=}}  This article incorporates text from a publication now in the public domainJames, 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.

Detailed notes

This template is wrapper around {{cite DGRG}}. In its default mode it attributes text to an article from the third edition of the Dictionary of Greek and Roman Geography.

This template calls {{cite DGRG}} that automatically sets some of the parameters passed for example "publisher = John Murray". Over and above the standard parameter passed into {{cite DGRG}} 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:{{DGRG|title=DGRG article name}} or {{DGRG|wstitle=DGRG article name}}.

Full set is:{{DGRG |wstitle= |inline=| noicon= |no-prescript= |author= |last= |first= |authorlink= |coauthors= |title= |url= |accessdate= |volume= |page= |pages=}}

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.
inline=1 Alters the prescript from "This article incorporates text from ..." to "One or more of the preceding sentences incorporates text ..."
noicon=1 Suppresses the lead icon.
no-prescript=1 Suppresses the prescript.
Parameters passed into {{cite DGRG}}
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
authorlink= authorlink= Set to the value of authorlink= or not set
coauthors= coauthors= 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.
accessdate= accessdate= Set to the value of accessdate= or not set
language= Not set
edition= third Automatically set within the template
date= Not set (see year)
year= 1911 Automatically set within the template
month= Not set
publisher= John Murray Automatically set within the template
volume= volume= Set to the value of volume= or not set
location= London Automatically set within the template
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= harv Automatically set within the template. It means that {{sfn}} and {{harvnb}} link to this template. (If you need to ask don't worry about it)

Hidden categories

This template adds the category Category:Wikipedia articles incorporating text from the DGRG to the articles it is used in.

The template calls {{Cite DGRG}} and depending on the parameters used it also adds the following hidden categories:

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

See also

Notes