Difference between revisions of "Template:Cite EBD/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(sync)
imported>Trappist the monk
 
Line 1: Line 1:
{{#if:{{{noicon|}}}||{{#ifeq: {{{wstitle|{{{1|}}}}}}|<!--eq to empty-->|
+
{{#if:{{{noicon|}}}||{{#if:{{{wstitle|}}}||[[File:PD-icon.svg|12px|alt=]]&nbsp;}}}}<!--
              <!--then-->[[File:PD-icon.svg|12px|alt=]]&nbsp;
+
-->{{#if:{{{vb|}}}|This article incorporates text from a publication now in the [[public domain]]:&nbsp;}}<!--
              |<!--else-->[[File:Wikisource-logo.svg|12px|alt=]]&nbsp;}}<!--endif
+
 
-->}}<!--
+
-->{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia
-->{{#if:{{{vb|}}}|This article incorporates text from a publication now in the [[public domain]]:&nbsp;|}}<!--
+
  |_exclude=noicon, short, wstitle, _debug
-->{{cite encyclopedia
+
  |_reuse=title, url <!-- these are reused -->
 +
 
 
<!--Fixed entries-->
 
<!--Fixed entries-->
 
  |encyclopedia=[[Easton's Bible Dictionary]]
 
  |encyclopedia=[[Easton's Bible Dictionary]]
  |year={{{year|1897}}}
+
  |year=1897
 +
 
 
<!--Fixed entries but if the parameter short= is set they do not display-->
 
<!--Fixed entries but if the parameter short= is set they do not display-->
  |{{#if:{{{short|}}} |HIDE_PARAMETER1 |first}}={{#if:{{{short|}}}||{{{first|Matthew George}}} }}
+
  |first={{#if:{{{short|}}}||Matthew George}}
  |{{#if:{{{short|}}} |HIDE_PARAMETER2 |last}}={{#if:{{{short|}}}||Easton }}
+
  |last={{#if:{{{short|}}}||Easton}}
  |{{#if:{{{short|}}} |HIDE_PARAMETER3 |authorlink}}={{#if:{{{short|}}}||Matthew George Easton }}
+
  |author-link={{#if:{{{short|}}}||Matthew George Easton}}
  |{{#if:{{{short|}}} |HIDE_PARAMETER4 |edition}}={{#if:{{{short|}}}||{{{edition|New and revised}}} }}
+
  |edition={{#if:{{{short|}}}||New and revised}}
  |{{#if:{{{short|}}} |HIDE_PARAMETER5 |publisher}}={{#if:{{{short|}}}||{{{publisher|T. Nelson and Sons}}} }}
+
  |publisher={{#if:{{{short|}}}||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|}}}<!-- -->}}}]]
+
  |title={{#if:{{{wstitle|}}}|{{cite wikisource/make link
    |<!-- else -->
+
            |link=Easton's Bible Dictionary (1897)/{{{wstitle|}}}
      {{#if: {{{title|}}}|<!--then-->{{{title|}}}
+
            |label={{{display|{{{wstitle|}}}}}}
      |<!--else--><sup><span style="color:red">article name needed</span></sup>
+
            |noicon={{{no-icon|{{{noicon|}}}}}}
      }}<!--end title-->
+
          }}|{{#if:{{{title|}}}|{{{title|}}}}}}}
    }}<!--end of check wstitle-->
 
|{{#if:{{{title|}}} |url  |HIDE_PARAMETER6}}={{#if:{{{title|}}}|{{{url|}}} }}
 
  
<!-- Add in any additional parameters that may be useful-->
+
   |url={{#if:{{{wstitle|}}}||{{{url|}}}}}
|{{#if:{{{volume|}}} |volume  |HIDE_PARAMETER7}}={{{volume|}}}
 
|{{#if:{{{page|}}}   |page    |HIDE_PARAMETER8}}={{{page|}}}
 
|{{#if:{{{pages|}}} |pages    |HIDE_PARAMETER9}}={{{pages|}}}
 
|{{#if:{{{ref|}}}    |ref      |HIDE_PARAMETER10}}={{{ref|}}}
 
 
}}<noinclude>
 
}}<noinclude>
 +
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 19:53, 14 October 2020

 Easton, Matthew George (1897). Easton's Bible Dictionary (New and revised ed.). T. Nelson and Sons. Missing or empty |title= (help)

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