Difference between revisions of "Template:Cite EBD"

From blackwiki
Jump to navigation Jump to search
imported>PBS
(forwards compatability with wstitle)
imported>PBS
(new code handles articles not yet ported to wikisource)
Line 1: Line 1:
{{#if:{{{noicon|}}}||[[Image:wikisource-logo.svg|12px|link=]]&nbsp;}}{{#if:{{{vb|}}}|This article incorporates text from a publication now in the [[public domain]]:&nbsp;|}}<!--
+
{{#if:{{{noicon|}}}||{{#ifeq: {{{wstitle|{{{1|}}}}}}|<!--eq to empty-->|
 +
              <!--then-->[[File:PD-icon.svg|12px|alt=]]&nbsp;
 +
              |<!--else-->[[File:Wikisource-logo.svg|12px|alt=]]&nbsp;}}<!--endif
 +
-->}}<!--
 +
-->{{#if:{{{vb|}}}|This article incorporates text from a publication now in the [[public domain]]:&nbsp;|}}<!--
 
-->{{cite encyclopaedia
 
-->{{cite encyclopaedia
|author={{{author|}}}
+
<!--Fixed entries-->
 
  |encyclopedia=[[Easton's Bible Dictionary]]
 
  |encyclopedia=[[Easton's Bible Dictionary]]
  |title=[[s:Easton's Bible Dictionary (1897)/{{{{{{wstitle|1}}}}}}|{{{display|{{{wstitle|{{{1}}}}}}}}}]]
+
|year={{{year|1897}}}
  |year=1897
+
<!--Fixed entries but if the parameter short= is set they do not display-->
 +
|{{#if:{{{short|}}} |HIDE_PARAMETER |first}}={{{first|Matthew George}}}
 +
|{{#if:{{{short|}}} |HIDE_PARAMETER |last}}=Easton
 +
|{{#if:{{{short|}}} |HIDE_PARAMETER |authorlink}}=Matthew George Easton
 +
|{{#if:{{{short|}}} |HIDE_PARAMETER |edition}}={{{edition|New and revised}}}
 +
|{{#if:{{{short|}}} |HIDE_PARAMETER |publisher}}={{{publisher|T. Nelson and Sons}}}
 +
<!--Check that either title or wstitle is set or display a warning in red -->
 +
  | title= {{#if: {{{wstitle|}}}|<!--then-->[[s:Easton's Bible Dictionary (1897)/{{{wstitle|}}}|{{{display|{{{wstitle|}}}<!-- -->}}}]]
 +
    |<!-- else -->
 +
      {{#if: {{{title|}}}|<!--then-->{{{title|}}}
 +
      |<!--else--><sup><span style="color:red">article name needed</span></sup>
 +
      }}<!--end title-->
 +
    }}<!--end of check wstitle-->
 +
|{{#if:{{{title|}}} |url  |HIDE_PARAMETER}}={{{url|}}}
 +
 
 +
<!-- Add in any additional parameters that may be useful-->
 +
|{{#if:{{{volume|}}} |volume  |HIDE_PARAMETER}}={{{volume|}}}
 +
|{{#if:{{{page|}}}  |page    |HIDE_PARAMETER}}={{{page|}}}
 +
|{{#if:{{{pages|}}} |pages    |HIDE_PARAMETER}}={{{pages|}}}
 +
  |{{#if:{{{ref|}}}    |ref      |HIDE_PARAMETER}}={{{ref|}}}
 
}}<noinclude>
 
}}<noinclude>
{{template doc}}
+
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 16:02, 26 June 2012

 Easton, Matthew George (1897). "article name needed". Easton's Bible Dictionary (New and revised ed.). T. Nelson and Sons.

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

Purpose

This template facilitates the citation of articles from either an external source or from the Wikisource project Easton's Bible Dictionary in the manner of {{cite encyclopedia}}.

Usage

List of parameters

noicon=x – if set removes the icon from the start of the citation
short=x  — prevents author, publisher and edition information being displayed
ref=harv — default. can be modified by setting the parameter
           to another value (see {{cite encyclopedia}})
encyclopedia=Easton's Bible Dictionary — default setting. Can be modified
year=1897 — default setting. Can be modified
last=Easton — default setting. Can be modified
authorlink=Matthew George Easton  — default setting. Can be modified
edition=New and revised — default setting. Can be modified
publisher=T. Nelson and Sons  — default setting. Can be modified
wstitle=EBD article name — set if the EBD article resides on Wikisource
title=EBD article name  — set if the EBD article does not reside on Wikisource
url=article link  — set if the EBD article resides on a known external web server
volume=volume number — not set by default see (see {{cite encyclopedia}})
page=page number  — not set by default see (see {{cite encyclopedia}})
pages=page number  — not set by default see (see {{cite encyclopedia}})

To link to an article on Wikisource:

  • {{Cite EBD|wstitle=EBD article name}}

or to name an article and optionally link to another site using the url parameter:

  • {{Cite EBD|title=EBD article name|url=url here}}

Using the article name Samaritan Pentateuch as an example with wstitle=:

{{Cite EBD|wstitle=Samaritan Pentateuch}}

and with title= and url=

{{Cite EBD|title=Samaritan Pentateuch|url=https://archive.org/stream/illustratedbible00east#page/598/mode/1up}}

The parameter noicon=1 stops the display of the icon:

If the parameter short=1 is set then author, edition and publisher are not displayed:

noicon=1 and short=1 can be combined:

See also

  • {{EBD}} use this for a prescript attributing the text to the source
  • {{EBD poster}} use this in the external section to link to an EBD article on Wikisource if the EBD article is not used as a citation in the Wikipedia article.
  • {{EBD POV}} if the Wikipedia article contains an EBD POV
  • Wikipedia:Sister projects