Difference between revisions of "Template:Cite Jewish Encyclopedia/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Daask
(Allow wstitle to stand in for article title for error message)
imported>Trappist the monk
(sync from live;)
Line 8: Line 8:
  
 
  <!--fill out some parameters with default values-->
 
  <!--fill out some parameters with default values-->
  | encyclopedia={{{encyclopedia|[[Jewish Encyclopedia]]}}}
+
  | encyclopedia={{{encyclopedia|[[The Jewish Encyclopedia]]}}}
  
 
  | year = {{{year | {{#switch:{{{volume}}}
 
  | year = {{{year | {{#switch:{{{volume}}}
Line 25: Line 25:
 
  | editor-link={{{editor-link|{{#if:{{{short|}}}| | Isidore Singer}}}}}
 
  | editor-link={{{editor-link|{{#if:{{{short|}}}| | Isidore Singer}}}}}
 
  | display-editors={{{display-editors|{{#if:{{{short|}}}| | etal}}}}}
 
  | display-editors={{{display-editors|{{#if:{{{short|}}}| | etal}}}}}
  | publisher={{{publisher|{{#if:{{{short|}}}| |Funk & Wagnalls Company}}}}}
+
  | publisher={{{publisher|{{#if:{{{short|}}}| |Funk & Wagnalls}}}}}
 
  | location={{{location|{{#if:{{{short|}}}| |New York}}}}}  
 
  | location={{{location|{{#if:{{{short|}}}| |New York}}}}}  
  
 
  <!--If wstitle set then use a wikisource link NOT YET PRESENT on Wikisource but put in code for future use-->
 
  <!--If wstitle set then use a wikisource link NOT YET PRESENT on Wikisource but put in code for future use-->
  | article=
+
  | title= {{#if: {{{wstitle|}}}|<!--then-->[[wikisource:Jewish Encyclopedia/{{{wstitle|}}}|{{{wstitle|}}}]]
    {{#if:{{{url|}}}
+
    |<!-- else -->
      |{{if empty| {{{article|}}} | {{{title|}}} | {{{wstitle|}}} | {{SUBJECTPAGENAME}} }}
+
      {{#if: {{{title|}}}|<!--then-->{{{title|}}}
      |{{#if:{{{wstitle|}}}
+
      |<!--else-->{{#if: {{{article|}}}|<!--then-->{{{article|}}}
        | [[wikisource:Jewish Encyclopedia/{{{wstitle}}}|{{if empty| {{{article|}}} | {{{title|}}} | {{{wstitle|}}} | {{SUBJECTPAGENAME}} }}]]|
+
                  |<!--else--><sup><span style="color:red">article name needed</span></sup>
        | {{if empty| {{{article|}}} | {{{title|}}} | {{{wstitle|}}} | {{SUBJECTPAGENAME}} }}
+
                  }}<!--end article-->
      }}
+
      }}<!--end title-->
    }}
+
    }}<!--end of check wstitle-->
 +
 
 
  <!--ignore url= if wstitle is set, otherwise set url if it has a value-->
 
  <!--ignore url= if wstitle is set, otherwise set url if it has a value-->
  |{{#if:{{{url|}}} |chapter-url  |HIDE_PARAMETER2url}}={{{url|}}}
+
  |{{#if: {{{wstitle|}}} |HIDE_PARAMETER2url |{{#if:{{{url|}}} |url  |HIDE_PARAMETER2url}}}}={{#if: {{{wstitle|}}} | |{{#if:{{{url|}}} |{{{url|}}} }}}}
  
 
  <!--ref= is set in {{tl|Jewish Encyclopedia}} treat it as a normal parameter here-->
 
  <!--ref= is set in {{tl|Jewish Encyclopedia}} treat it as a normal parameter here-->
Line 93: Line 94:
 
  |{{#if:{{{display-authors|}}}  |display-authors  |HIDE_PARAMETER7a}}={{{display-authors|}}}
 
  |{{#if:{{{display-authors|}}}  |display-authors  |HIDE_PARAMETER7a}}={{{display-authors|}}}
  
 +
|{{#if:{{{article|}}}  m |article    |HIDE_PARAMETER24}}={{{article|}}}
 
  |{{#if:{{{edition|}}}    |edition    |HIDE_PARAMETER25}}={{{edition|}}}
 
  |{{#if:{{{edition|}}}    |edition    |HIDE_PARAMETER25}}={{{edition|}}}
 
  |{{#if:{{{accessdate|}}} |accessdate  |HIDE_PARAMETER26}}={{{accessdate|}}}
 
  |{{#if:{{{accessdate|}}} |accessdate  |HIDE_PARAMETER26}}={{{accessdate|}}}
Line 103: Line 105:
 
  |{{#if:{{{mode|}}}      |mode        |HIDE_PARAMETER33}}={{{mode|}}}
 
  |{{#if:{{{mode|}}}      |mode        |HIDE_PARAMETER33}}={{{mode|}}}
 
  |{{#if:{{{1|}}}          |1            |HIDE_PARAMETER34}}={{{1|}}}
 
  |{{#if:{{{1|}}}          |1            |HIDE_PARAMETER34}}={{{1|}}}
}}{{if either| {{{article|}}} | {{{title|}}} | {{{wstitle|}}} | {{ifpreview|{{error|Please specify the Jewish Encyclopedia article name in case this page is renamed in the future}}|}} }}<includeonly><!--
+
}}<includeonly><!--
 
-->{{#ifeq: {{NAMESPACEE}} |<!--is not set-->
 
-->{{#ifeq: {{NAMESPACEE}} |<!--is not set-->
 
     |<!--Set: sort out the parameters-->
 
     |<!--Set: sort out the parameters-->
 
     [[Category:Wikipedia articles incorporating a citation from the 1906 Jewish Encyclopedia]]<!--
 
     [[Category:Wikipedia articles incorporating a citation from the 1906 Jewish Encyclopedia]]<!--
  -->{{#if: {{{wstitle|}}} |[[Category:Wikipedia articles incorporating a citation from the 1906 Jewish Encyclopedia with a Wikisource reference]]
+
  -->{{#if: {{{wstitle|}}} |[[Category:Wikipedia articles incorporating a citation from the 1906 Jewish Encyclopedia with a Wikisource reference]]<!--
        else-->|{{#if: {{#if: {{{title|}}}|{{{title}}}|{{{article|}}} }}|[[Category:Wikipedia articles incorporating a citation from the 1906 Jewish Encyclopedia without a Wikisource reference]]<!--
+
              else-->|{{#if: {{#if: {{{title|}}}|{{{title}}}|{{{article|}}} }}|[[Category:Wikipedia articles incorporating a citation from the 1906 Jewish Encyclopedia without a Wikisource reference]]<!--
 
               else-->|[[Category:Wikipedia articles incorporating a citation from the 1906 Jewish Encyclopedia with no article parameter]]<!--
 
               else-->|[[Category:Wikipedia articles incorporating a citation from the 1906 Jewish Encyclopedia with no article parameter]]<!--
 
             -->}}<!--
 
             -->}}<!--

Revision as of 21:41, 10 October 2020

 Singer, Isidore; et al., eds. (1901–1906). "article name needed". The Jewish Encyclopedia. New York: Funk & Wagnalls.

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

Usage

This template takes most of the named parameters used by {{cite encyclopedia}}

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:

Location Parameters Example Note
==References== {{Cite Jewish Encyclopedia |wstitle=Jewish Encyclopedia name}}

See Note →

Singer, Isidore; et al., eds. (1901–1906). "Atonement, Day of" . The Jewish Encyclopedia. New York: Funk & Wagnalls. Use wstitle=Jewish Encyclopedia name if the article exists on Wikisource; if not use title=Jewish Encyclopedia name
==References== {{Cite Jewish Encyclopedia |title=Jewish Encyclopedia name |url=http://... |first= |last= |volume= |page=}}  Jastrow, Morris (1902). "Atonement, Day of". In Singer, Isidore; et al. (eds.). The Jewish Encyclopedia. 2. New York: Funk & Wagnalls. p. 100. 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]. If volume is set then the year is set to the date the volume was published
==Further reading== {{Cite Jewish Encyclopedia |noicon=1 |url=http://... |title=Jewish Encyclopedia name}} Singer, Isidore; et al., eds. (1901–1906). "Atonement, Day of". The Jewish Encyclopedia. New York: Funk & Wagnalls. noicon=1 remove the lead icon (optional), title= for the article name not yet on Wikisource. url= for where the text can be found online. NB. consider using {{Jewish Encyclopedia poster}} instead.
==External links== {{Jewish Encyclopedia |noicon=1 |wstitle=Jewish Encyclopedia name}} Singer, Isidore; et al., eds. (1901–1906). "Atonement, Day of". The Jewish Encyclopedia. New York: Funk & Wagnalls. noicon=1, remove the lead icon (optional). NB. consider using {{Jewish Encyclopedia poster}} instead.
==External links== {{Jewish Encyclopedia |wstitle=Jewish Encyclopedia name|short=x}} "Atonement, Day of" . The Jewish Encyclopedia. 1901–1906. short=x (optional), blocks the display of editor and location and published.

Hidden categories

This template will add the article transcluding it to the hidden categories:

See also