Difference between revisions of "Template:Cite Biblica"

From blackwiki
Jump to navigation Jump to search
imported>PBS
(Only set the url if the title parameter is also set)
imported>Trappist the monk
(sync from sandbox;)
 
Line 1: Line 1:
{{#if:{{{noicon|}}}||[[Image:{{#if:{{{wstitle|}}}|wikisource-logo.svg|PD-icon.svg}}|12px|link=]]&nbsp;}}<!--  
+
{{#if:{{{noicon|}}}||{{#if:{{{wstitle|}}}||[[File:PD-icon.svg|12px|link=]]&nbsp;}}}}<!--  
-->{{cite encyclopaedia|
+
-->{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia
|author={{{author|}}}
+
    |_exclude=display, noicon, no-icon, short, wstitle, _debug
|first={{{first|}}}
+
    |_reuse=title, url
|last={{{last|}}}
 
|volume={{{volume|}}}
 
  
  | year = {{{year|{{#switch:{{{volume}}}
+
  |year={{#switch:{{{volume|}}}
 
     | 1 | I = 1899
 
     | 1 | I = 1899
 
     | 2 | II = 1901
 
     | 2 | II = 1901
 
     | 3 | III = 1902
 
     | 3 | III = 1902
 
     | 4 | IV = 1903
 
     | 4 | IV = 1903
     |  1899–1903<!--eos-->}}<!--eoy-->}}}
+
     |  1899–1903<!--eos-->}}
  
  |encyclopedia={{{encyclopedia|[[Encyclopaedia Biblica]]}}}
+
  |encyclopedia=[[Encyclopaedia Biblica]]
  
  |editor-first = {{#if: {{{short|}}}|<!-- eq to empty -->|{{{editor-first|Thomas Kelly}}} }}
+
  |editor-first={{#if:{{{short|}}}||Thomas Kelly}}
  |editor-last = {{#if: {{{short|}}}|<!-- eq to empty -->|{{{editor-last|Cheyne}}} }}
+
  |editor-last={{#if:{{{short|}}}||Cheyne}}
  |editor-link = {{#if: {{{short|}}}|<!-- eq to empty -->|{{{editor-link|Thomas Kelly Cheyne}}} }}
+
  |editor-link={{#if:{{{short|}}}||Thomas Kelly Cheyne}}
  |editor2-first = {{#if: {{{short|}}}|<!-- eq to empty -->|{{{editor2-first|J. Sutherland}}} }}
+
  |editor2-first={{#if:{{{short|}}}||J. Sutherland}}
  |editor2-last = {{#if: {{{short|}}}|<!-- eq to empty -->|{{{editor2-last|Black}}} }}
+
  |editor2-last={{#if:{{{short|}}}||Black}}
  |location = {{#if: {{{short|}}}|<!-- eq to empty -->|{{{location|Toronto }}} }}
+
  |location={{#if:{{{short|}}}||location|Toronto}}
  |publisher= {{#if: {{{short|}}}|<!-- eq to empty -->|{{{location|George N. Morang & Company }}} }}
+
  |publisher={{#if:{{{short|}}}||George N. Morang & Company }}
  
  |title= {{#if: {{{wstitle|}}}|{{{wstitle|}}}|{{{title|{{{article|[[Wikisource:Encyclopaedia Biblica|<span style="color:red">article name needed</span>]] }}} }}} }}
+
  |title= {{#if:{{{wstitle|}}}|{{{wstitle|}}}|{{{title|}}}}}
 
   
 
   
  |url={{#if: {{{title|}}}{{{article|}}}|{{{url|}}} }}
+
  |url={{#if:{{{wstitle|}}}||{{{url|}}}}}
 
 
|page={{{page|}}}
 
|pages={{{pages|}}}
 
|ref={{{ref|}}}
 
|mode={{{mode|}}}
 
|{{#if:{{{1|}}}  |1  |HIDE_PARAMETER1}}={{{1|}}}
 
 
}}<noinclude>{{Documentation}}</noinclude>
 
}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 14:21, 17 October 2020

PD-icon.svg Cheyne, Thomas Kelly; Black, J. Sutherland, eds. (1899–1903). Encyclopaedia Biblica. location: George N. Morang & Company. Missing or empty |title= (help)

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

Usage

none standard paramters
|noicon=y — remove the lead icon
|wstitle=name — see title below
|short=x — causes some standard parameters not to be displayed. 
               This is for use in the external links section to reduce the size of the display
|wstitle=name —  set to name of the article on wikisource if it exists.
                    see also title below
Optional
|author=name — see Help:CS1
|first=name — see Help:CS1
|last=name — see Help:CS1
|page= — see Help:CS1
|pages= — see Help:CS1
|ref= — see Help:CS1
|mode= — see Help:CS1
default values
|volume=number — to be effective volume must be set to one of the following:
                     1, 2, 3, 4 or (I,II, III,IV)
|year=year — if not set manually  defaults to a year depending on the volume number
                 1=1899, 2=1901, 3=1902, 4=1903. If volume not set defaults to 1899–1903
|encyclopedia= — defaults to Encyclopaedia Biblica, but can be overwritten

These are not displayed if the parameter short is set
|editor-first = — defaults to Thomas Kelly,  but can be overwritten
|editor-last = — defaults to Cheyne, but can be overwritten
|editor-link = — defaults to Thomas Kelly Cheyne, but can be overwritten
|editor2-first = — defaults to J. Sutherland, but can be overwritten
|editor2-last = — defaults to editor2-last|Black, but can be overwritten
|location = — defaults to Toronto, but can be overwritten
|publisher= — defaults to George N. Morang & Company, but can be overwritten
|title= — it can be set if wstitle is not set. If neither title or wstitle are set
          then a red warning message is displayed 
|url= — can only be set if title is set. For standard usage see Help:CS1

See also

  • {{Biblica}} — a similar template with a prescript attribution string, to meet the requirements of WP:PLAGIARISM