Difference between revisions of "Template:Biblica"

From blackwiki
Jump to navigation Jump to search
imported>PBS
(if a parameter is passed in empty then some of the conditions in the other template fail)
imported>PBS
(put in prescript that handles inline and icon hiding.)
Line 1: Line 1:
{{source-attribution|{{cite Biblica|
+
{{#if: {{{no-icon|{{{noicon|}}}<!-- -->}}}|<!--empty-->|
|noicon={{{noicon|}}} <!-- none standard and not working yet-->
+
  <!--else-->{{#ifeq: {{{wstitle|}}}|<!--eq to empty-->|
 +
              <!--then-->[[File:PD-icon.svg|12px|alt=]]&nbsp;
 +
              |<!--else-->[[File:Wikisource-logo.svg|12px|alt=]]&nbsp;}}<!--endif
 +
-->}}{{{prescript|{{#ifeq: {{{inline|}}} |<!--eq to empty-->|<!--
 +
                      then display-->This article
 +
                      |<!--else display-->One or more of the preceding sentences
 +
                    }}<!-- no white space
 +
      --> incorporates text from a publication now in the [[public domain]]:&nbsp;}}}<!-- no white space
 +
-->{{cite Biblica|
 +
|noicon=1
  
 
  |author={{{author|}}}
 
  |author={{{author|}}}
Line 28: Line 37:
 
  |ref={{ref|harv}}
 
  |ref={{ref|harv}}
 
  |mode={{{mode|}}}
 
  |mode={{{mode|}}}
}} }}<noinclude>{{Documentation}}</noinclude>
+
}}<noinclude>{{Documentation}}</noinclude>

Revision as of 20:38, 14 January 2017

 This article incorporates text from a publication now in the public domainCheyne, 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 parameters
|noicon=y — remove the lead icon
|inline=1 – to change first few words of the prescript from "This article" to
            "One or more of the preceding sentences"
|wstitle=name —  set to name of the article on wikisource if it exists.
                     see also title below
Optional
|author=  — see Help:CS1
|first= — see Help:CS1
|last=  — see Help:CS1
|page= — see Help:CS1
|pages= — see Help:CS1
|ref= — see Help:CS1
|mode= — see Help:CS1
These are filled out with default values but can be overwritten
|year=
|editor-first=
|editor-last=
|editor-link=
|editor2-first=
|editor2-last=
|{location=
|publisher=
|encyclopedia=
other parameters
|volume=number — to be effective volume must be set to one of the following:
                     1, 2, 3, 4 or (I,II, III,IV)
|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

  • {{Cite Biblica}} — a similar template without the prescript