Difference between revisions of "Template:BLKO"

From blackwiki
Jump to navigation Jump to search
imported>Howcheng
imported>Trappist the monk
(-HIDE_PARAMETER0–HIDE_PARAMETER3; -{{{5|}}};)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>{{#ifeq: {{{wstitle|}}}|<!--eq to empty-->|<span style="color:red">Supply at least the article title (<code>wstitle</code> parameter)</span>{{main other|[[Category:BLKO template error]]}} (see [[Template:BLKO/doc|help page]])|<!--else
 
<includeonly>{{#ifeq: {{{wstitle|}}}|<!--eq to empty-->|<span style="color:red">Supply at least the article title (<code>wstitle</code> parameter)</span>{{main other|[[Category:BLKO template error]]}} (see [[Template:BLKO/doc|help page]])|<!--else
-->{{cite wikisource
+
-->{{cite wikisource  
 +
|noicon={{{noicon|}}}
 
  |wslanguage=de
 
  |wslanguage=de
 
  |language=German
 
  |language=German
Line 6: Line 7:
 
  |trans-title=Biographical Encyclopedia of the Austrian Empire
 
  |trans-title=Biographical Encyclopedia of the Austrian Empire
 
  |chapter=X<!--dummy value, otherwise plainchapter doesn't show up-->
 
  |chapter=X<!--dummy value, otherwise plainchapter doesn't show up-->
  |plainchapter=[[s:de:BLKÖ:{{{wstitle}}}|{{{wstitle}}}]]
+
  |plainchapter={{#ifeq: {{{wstitle|}}}|<!--eq to empty-->
 +
                |<!--then--><sup>[[s:de:Biographisches Lexikon des Kaiserthums Oesterreich|<span style="color:red">article name needed</span>]]</sup>
 +
                |<!--else-->[[s:de:BLKÖ:{{{wstitle}}}|{{{wstitle}}}]]
 +
              }}
 
  |volume={{{volume|}}}
 
  |volume={{{volume|}}}
|year={{#if:{{{year|}}}|{{{year}}}|{{#switch: {{{volume|}}}
+
|year={{{year|{{#if:{{{volume|}}}|{{BLKO/year|{{{volume}}}}}}}}}}
| 1=1856
+
|pages={{{pages|}}}
| 2=1857
+
|page={{{page|}}}
| 3=1858
 
| 4=1858
 
| 5=1859
 
| 6=1860
 
| 7=1861
 
| 8=1862
 
| 9=1863
 
| 10=1863
 
| 11=1864
 
| 12=1864
 
| 13=1865
 
| 14=1865
 
| 15=1866
 
| 16=1867
 
| 17=1867
 
| 18=1868
 
| 19=1868
 
| 20=1869
 
| 21=1870
 
| 22=1870
 
| 23=1872
 
| 24=1872
 
| 25=1873
 
| 26=1874
 
| 27=1874
 
| 28=1874
 
| 29=1875
 
| 30=1875
 
| 31=1875
 
| 32=1876
 
| 33=1877
 
| 34=1877
 
| 35=1877
 
| 36=1878
 
| 37=1878
 
| 38=1879
 
| 39=1879
 
| 40=1880
 
| 41=1880
 
| 42=1881
 
| 43=1881
 
| 44=1882
 
| 45=1882
 
| 46=1882
 
| 47=1883
 
| 48=1883
 
| 49=1884
 
| 50=1884
 
| 51=1885
 
| 52=1885
 
| 53=1886
 
| 54=1886
 
| 55=1887
 
| 56=1888
 
| 57=1889
 
| 58=1889
 
| 59=1890
 
| 60=1891
 
| #default = <span class="error">Error in volume number</span>{{main other|[[Category:BLKO template error]]}}
 
}}
 
|{{#if:{{{pages|}}}|pages|HIDE_PARAMETER1}}={{{pages|}}}}}
 
|{{#if:{{{page|}}}|page|HIDE_PARAMETER2}}={{{page|}}}
 
 
  |editor-first=Constantin, von
 
  |editor-first=Constantin, von
 
  |editor-last=Wurzbach
 
  |editor-last=Wurzbach
Line 79: Line 21:
 
       |{{harvid
 
       |{{harvid
 
         |Wurzbach
 
         |Wurzbach
         |{{#if:{{{year|}}}|{{{year}}}|{{NDB/Jahr|{{{1}}} }} }}
+
         |{{#if:{{{year|}}}|{{{year}}}|{{#if:{{{volume|}}}|{{BLKO/year|{{{volume}}}}} }} }}
 
       }}
 
       }}
 
     }}
 
     }}
  |{{#if:{{{postscript|}}}{{{5|}}}|postscript |HIDE_PARAMETER3}}={{#if:{{{5|}}}|none|{{{postscript|}}}}}<!-- unset the postscript here-->
+
  |postscript={{{postscript|}}}
 
}}
 
}}
 
}}
 
}}

Latest revision as of 19:52, 3 March 2019

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

Purpose

Template for web links to Biographisches Lexikon des Kaiserthums Oesterreich (BLKO) articles in German Wikisource, which contains more than 21,000 biographies of Austrian people. It wraps {{cite wikisource}}.

Error message

This template requires a title parameter: wstitle= to associate the source of the text being used with a specific part of the massive encyclopaedia that is being referenced. More information on these and other parameters are set out below. In the absence of a title parameter being supplied, the template will display the error message article name needed and set a category flagging that no article name has been given.[nb 1]

Usage

All field names must be in lowercase.

Minimum is: {{BLKO |wstitle=EB article name}}

Full set is: {{BLKO |wstitle= |noicon= |volume= |page= |pages= |year= }}

Additional named parameters (see the {{citation}} documentation for more details)

|postscript=defaults to the value in {{citation}} — it can be altered to another value
|ref=defaults to Wurzbach, year — like the other parameters the default values can be overridden (which can be useful when used with {{harv}} templates (see more than one work in a year). 
|year=defaults to a value set by volume. — it can be altered to another value, which is sometimes useful in combination with the parameter and value ref=harv.

Example

{{BLKO |wstitle=Mozart, Wolfgang Amadeus |volume=19 |page=170 |postscript=. I am a postscript!}}

produces:

Wurzbach, Constantin, von, ed. (1868). "Mozart, Wolfgang Amadeus" . Biographisches Lexikon des Kaiserthums Oesterreich [Biographical Encyclopedia of the Austrian Empire] (in German). 19. p. 170 – via Wikisource. I am a postscript!


{{BLKO |wstitle=Habsburg, Maria Anna von Bayern}}

produces:

Wurzbach, Constantin, von (ed.). "Habsburg, Maria Anna von Bayern" . Biographisches Lexikon des Kaiserthums Oesterreich [Biographical Encyclopedia of the Austrian Empire] (in German) – via Wikisource.


Usage notes

The template does not include an item bullet and so is easy to use in a footnote citation. In a list, the template should be preceded by an asterisk, as specified in the usage section above.

Notes

  1. It is not much use to the reader to inform them that a Wikipedia article contains some text supported by a citation from somewhere in the 60-volumes of the Biographisches Lexikon des Kaiserthums Oesterreich!