Difference between revisions of "Template:Cite SBDEL/doc"

From blackwiki
Jump to navigation Jump to search
imported>PBS
imported>Library Guy
(title->wstitle: this is the usual name for linking to Wikisource; "title" works in a non-standard way here)
Line 7: Line 7:
 
<!--<pre>{{Cite SBDEL|put the name of the article here|optional comment|noicon=x}}</pre> discourage unnamed parameter usage-->
 
<!--<pre>{{Cite SBDEL|put the name of the article here|optional comment|noicon=x}}</pre> discourage unnamed parameter usage-->
 
<pre>{{Cite SBDEL
 
<pre>{{Cite SBDEL
  | title   = put the name of the article here
+
  | wstitle   = put the name of the article here
 
  | comment = optional comment
 
  | comment = optional comment
 
  | noicon  = x
 
  | noicon  = x
Line 21: Line 21:
 
=== Examples ===
 
=== Examples ===
 
====Simplest====
 
====Simplest====
<code><nowiki>{{Cite SBDEL|title=Shakespeare, William}}</nowiki></code>
+
<code><nowiki>{{Cite SBDEL|wstitle=Shakespeare, William}}</nowiki></code>
  
 
displays as:
 
displays as:
  
{{Cite SBDEL|title=Shakespeare, William}}
+
{{Cite SBDEL|wstitle=Shakespeare, William}}
  
 
====Comment====
 
====Comment====
  
<code><nowiki>{{Cite SBDEL|title=Shakespeare, William|comment=A versatile dramatist of Elizabethan England.}}</nowiki></code>
+
<code><nowiki>{{Cite SBDEL|wstitle=Shakespeare, William|comment=A versatile dramatist of Elizabethan England.}}</nowiki></code>
  
 
displays as:
 
displays as:
  
{{Cite SBDEL|title=Shakespeare, William|comment=A versatile dramatist of Elizabethan England.}}
+
{{Cite SBDEL|wstitle=Shakespeare, William|comment=A versatile dramatist of Elizabethan England.}}
  
 
And, actually, it is easy just to append the comment after the template invocation:
 
And, actually, it is easy just to append the comment after the template invocation:
  
<code><nowiki>{{Cite SBDEL|title=Shakespeare, William}} A versatile dramatist of Elizabethan England.</nowiki></code>
+
<code><nowiki>{{Cite SBDEL|wstitle=Shakespeare, William}} A versatile dramatist of Elizabethan England.</nowiki></code>
  
 
displays as:
 
displays as:
  
{{Cite SBDEL|title=Shakespeare, William}} A versatile dramatist of Elizabethan England.
+
{{Cite SBDEL|wstitle=Shakespeare, William}} A versatile dramatist of Elizabethan England.
  
 
====Using <code>noicon</code>====
 
====Using <code>noicon</code>====
  
<code><nowiki>{{Cite SBDEL|title=Shakespeare, William|noicon=x}}</nowiki></code>
+
<code><nowiki>{{Cite SBDEL|wstitle=Shakespeare, William|noicon=x}}</nowiki></code>
  
 
displays as:
 
displays as:
  
{{Cite SBDEL|title=Shakespeare, William|noicon=x}}
+
{{Cite SBDEL|wstitle=Shakespeare, William|noicon=x}}
  
 
====Using <code>short</code>====
 
====Using <code>short</code>====
  
<code><nowiki>{{Cite SBDEL|title=Shakespeare, William|short=x}}</nowiki></code>
+
<code><nowiki>{{Cite SBDEL|wstitle=Shakespeare, William|short=x}}</nowiki></code>
  
 
Removes the default editor publisher fields and displays as:
 
Removes the default editor publisher fields and displays as:
  
{{Cite SBDEL|title=Shakespeare, William|short=x}}
+
{{Cite SBDEL|wstitle=Shakespeare, William|short=x}}
  
 
=== Cite wikisource functions ===
 
=== Cite wikisource functions ===
  
This template is based on uses {{tl|Cite wikisource}} and can use some additional parameters from that template if necessary.  The most useful of these are:
+
This template uses {{tl|Cite wikisource}} and can use some additional parameters from that template if necessary.  The most useful of these are:
  
 
*'''wspage''': Page number in the original book.  This will link to the anchor corresponding to the page at Wikisource; although that will only be noticeable for longer entries.
 
*'''wspage''': Page number in the original book.  This will link to the anchor corresponding to the page at Wikisource; although that will only be noticeable for longer entries.

Revision as of 22:02, 23 January 2015

Purpose

This template enables the citation of articles from the Wikisource project A Short Biographical Dictionary of English Literature in the manner of non-link references and notes.

Usage

{{Cite SBDEL
 | wstitle   = put the name of the article here
 | comment = optional comment
 | noicon  = x
}}

Parameters

  • title: Title of the entry in Short Biographical Dictionary of English Literature. If not entered, it will use the title of the article to which the template has been added.
  • comment: Comment following the citation.
  • noicon:

All parameters are optional, although the first entry (title) is strongly recommended

Examples

Simplest

{{Cite SBDEL|wstitle=Shakespeare, William}}

displays as:

 Cousin, John William (1910), "Shakespeare, William", A Short Biographical Dictionary of English Literature, London: J. M. Dent & Sons – via Wikisource

Comment

{{Cite SBDEL|wstitle=Shakespeare, William|comment=A versatile dramatist of Elizabethan England.}}

displays as:

 Cousin, John William (1910), "Shakespeare, William", A Short Biographical Dictionary of English Literature, London: J. M. Dent & Sons – via Wikisource A versatile dramatist of Elizabethan England.

And, actually, it is easy just to append the comment after the template invocation:

{{Cite SBDEL|wstitle=Shakespeare, William}} A versatile dramatist of Elizabethan England.

displays as:

 Cousin, John William (1910), "Shakespeare, William", A Short Biographical Dictionary of English Literature, London: J. M. Dent & Sons – via Wikisource A versatile dramatist of Elizabethan England.

Using noicon

{{Cite SBDEL|wstitle=Shakespeare, William|noicon=x}}

displays as:

Cousin, John William (1910), "Shakespeare, William", A Short Biographical Dictionary of English Literature, London: J. M. Dent & Sons – via Wikisource

Using short

{{Cite SBDEL|wstitle=Shakespeare, William|short=x}}

Removes the default editor publisher fields and displays as:

 "Shakespeare, William", A Short Biographical Dictionary of English Literature, 1910 – via Wikisource

Cite wikisource functions

This template uses {{Cite wikisource}} and can use some additional parameters from that template if necessary. The most useful of these are:

  • wspage: Page number in the original book. This will link to the anchor corresponding to the page at Wikisource; although that will only be noticeable for longer entries.
    • page: This will display the page number but not link to wikisource.
  • scan: Link to the page scan at Wikisource. Must include the full pagename, including the Page: namespace.
  • quote: A quote from the book. A potential alternative to the comment parameter.

Example

{{Cite SBDEL|Shakespeare, William|wspage=350|scan=Page:Cousins's Short Biographical Dictionary of English Literature.djvu/350|quote=The genius of S. was so intensely dramatic that it is impossible to say confidently when he speaks in his own character.}}  Cousin, John William (1910), "Shakespeare, William", A Short Biographical Dictionary of English Literature, London: J. M. Dent & Sons, p. 350 – via Wikisource, The genius of S. was so intensely dramatic that it is impossible to say confidently when he speaks in his own character. [scan]

Hidden categories

This template places articles into a hidden category with sub-categories to aid maintenance:

  1. Category:Wikipedia articles incorporating a citation from SBDEL

See also