Difference between revisions of "Template:Cite Newgenbio/sandbox"
imported>PBS |
imported>PBS (version that will access the correct url given volume and page number) |
||
| Line 4: | Line 4: | ||
|author-link=Hugh James Rose | |author-link=Hugh James Rose | ||
|year=1857 | |year=1857 | ||
| − | |url= https://archive.org/stream/{{#switch:{{{volume|}}}<!-- select the volume number default to vol. one--> | + | |url={{{url|https://archive.org/stream/{{#switch:{{{volume|}}}<!-- select the volume number default to vol. one--> |
|1|I=bub_gb_UDd_ArBPBp0C#page/n | |1|I=bub_gb_UDd_ArBPBp0C#page/n | ||
| − | |2|II= | + | |2|II=bub_gb_bLbbsit9FY4C#page/n |
|3|III=anewgeneralbiog02rosegoog#page/n | |3|III=anewgeneralbiog02rosegoog#page/n | ||
|4|IV=anewgeneralbiog07rosegoog#page/n | |4|IV=anewgeneralbiog07rosegoog#page/n | ||
| Line 13: | Line 13: | ||
|7|VII=anewgeneralbiog10rosegoog#page/n | |7|VII=anewgeneralbiog10rosegoog#page/n | ||
|8|VIII=newgeneralbiogra08roseiala#page/n | |8|VIII=newgeneralbiogra08roseiala#page/n | ||
| − | |9|IX=bub_gb_3xdN7KG4de8C#page/ | + | |9|IX=bub_gb_3xdN7KG4de8C#page/n |
|10|X=anewgeneralbiog09rosegoog#page/n | |10|X=anewgeneralbiog09rosegoog#page/n | ||
|11|XI=anewgeneralbiog03rosegoog#page/n | |11|XI=anewgeneralbiog03rosegoog#page/n | ||
|12|XII=anewgeneralbiog05rosegoog#page/n | |12|XII=anewgeneralbiog05rosegoog#page/n | ||
| − | |bub_gb_UDd_ArBPBp0C#page/ | + | |bub_gb_UDd_ArBPBp0C#page/n}}<!-- |
page + offset -->{{#expr:{{#if:{{{page|}}}|{{Str number/trim|{{{page}}} }} +{{#switch:{{{volume|}}} | page + offset -->{{#expr:{{#if:{{{page|}}}|{{Str number/trim|{{{page}}} }} +{{#switch:{{{volume|}}} | ||
| − | 1|I | + | |1|I=8 |
| − | 2|II | + | |2|II=9 |
| − | 3|III|4|IV|5|V|8|VIII=10 | + | |3|III=10 |
| − | 11|XI=12 | + | |4|IV=9 |
| − | + | |5|V={{#ifexpr:{{Str number/trim|0{{{page|}}}}}<77|10|9}} | |
| − | | | + | |6|VI=8 |
| + | |7|VII=14 | ||
| + | |8|VIII=9 | ||
| + | |9|IX=5 | ||
| + | |10|X={{#ifexpr:{{Str number/trim|0{{{page|}}}}}<276|9|8}} | ||
| + | |11|XI={{#ifexpr:{{Str number/trim|0{{{page|}}}}}<19|12|{{#ifexpr:{{Str number/trim|0{{{page|}}}}}<68|10|{{#ifexpr:{{Str number/trim|0{{{page|}}}}}<155|9|{{#ifexpr:{{Str number/trim|0{{{page|}}}}}<366|6|4}}<!---->}}<!---->}}<!---->}} | ||
| + | |12|XII={{#ifexpr:{{Str number/trim|0{{{page|}}}}}<368|14|{{#ifexpr:{{Str number/trim|0{{{page|}}}}}<376|13|{{#ifexpr:{{Str number/trim|0{{{page|}}}}}<449|10|8}}<!---->}}<!---->}} | ||
| + | |8}}<!-- | ||
pages + offset -->|{{#if:{{{pages|}}}|{{Str number/trim|{{{pages}}} }} +{{#switch:{{{volume|}}} | pages + offset -->|{{#if:{{{pages|}}}|{{Str number/trim|{{{pages}}} }} +{{#switch:{{{volume|}}} | ||
| − | 1|I | + | |1|I=8 |
| − | 2|II | + | |2|II=9 |
| − | 3|III|4|IV|5|V|8|VIII=10 | + | |3|III=10 |
| − | 11|XI=12 | + | |4|IV=9 |
| − | + | |5|V={{#ifexpr:{{Str number/trim|0{{{pages|}}}}}<77|10|9}} | |
| − | | | + | |6|VI=8 |
| − | or title page-->| | + | |7|VII=14 |
| + | |8|VIII=9 | ||
| + | |9|IX=5 | ||
| + | |10|X={{#ifexpr:{{Str number/trim|0{{{pages|}}}}}<276|9|8}} | ||
| + | |11|XI={{#ifexpr:{{Str number/trim|0{{{pages|}}}}}<19|12|{{#ifexpr:{{Str number/trim|0{{{pages|}}}}}<68|10|{{#ifexpr:{{Str number/trim|0{{{pages|}}}}}<155|9|{{#ifexpr:{{Str number/trim|0{{{pages|}}}}}<366|6|4}}<!---->}}<!---->}}<!---->}} | ||
| + | |12|XII={{#ifexpr:{{Str number/trim|0{{{pages|}}}}}<368|14|{{#ifexpr:{{Str number/trim|0{{{pages|}}}}}<376|13|{{#ifexpr:{{Str number/trim|0{{{pages|}}}}}<449|10|8}}<!---->}}<!---->}} | ||
| + | |8}}<!-- | ||
| + | or title page-->|4}}<!--EOif-->}}<!--EOexpr-->}}/mode/1up<!--EOurl-->}}} | ||
|encyclopedia={{#if: {{{title|}}}|A New General Biographical Dictionary|}} | |encyclopedia={{#if: {{{title|}}}|A New General Biographical Dictionary|}} | ||
Revision as of 13:38, 11 May 2017
Rose, Hugh Jame (1857). A New General Biographical Dictionary. London: B. Fellowes et al.
| 50px | This is the template sandbox page for Template:Cite Newgenbio (diff). See also the companion subpage for test cases. |
Usage
This template should be placed on the main page of the article.
Fill in the parameters as you would for the standard citation templates such as {{cite encyclopedia}}. The difference is that this template will fill in some of the parameters for you; and if you provide volume number and page number it will automatically link to the correct page in the volumes at the internet archive web site.
Pre set parameters
|first= Hugh James |last= Rose |author-link= Hugh James Rose |year= 1857 |location= London |publisher= B. Fellowes et al
Partially set parameters
|title=dictionary article title – if name is not set then it defaults to A New General Biographical Dictionary |encyclopaedia=A New General Biographical Dictionary — if title not set then it does not display
If volume number is set
|volume=volume number – if set add the name ranges to the volume number
|url=set by volume number and page[s] number — if volume number is not set then defaults to volume 1;
if page or pages is not set will default to the first page of the volume.
The url parameter can be overwritten with a passed in value
Optional paramters:
|page=number — see Help:CS1 |pages=number–number — see Help:CS1 |ref= — see Help:CS1 |mode= — see Help:CS1
| volumes for the edition published in 1857 | Notes |
|---|---|
| 1 AA–ANS | |
| 2 ANZ–BAH | |
| 3 BAH–BEE | |
| 4 BEE–BRA | |
| 5 BRA–CAP | page 77 missing |
| 6 CAP–CZE | some pages at the end of volume are missing |
| 7 DAC–GEO | |
| 8 GEO–GEN | |
| 9 JEP–MAR | |
| 10 MAR–PAY | page 270 is a copy of 272, page 276 is missing |
| 11 PAY–SCU | pages 18-19, 68, 152-154, 364-356 are missing |
| 12 SEP–ZWI | pages 368, 374-376, 449-450 missing; after page 535 the pages are a mess |
Attribution
- see:WP:PLAGIARISM
If the Wikipedia article contains text copied from A New General Biographical Dictionary it must be attributed as describe in the plagiarism guideline. To do this surround the template {{Cite Newgenbio}} with {{source-attribution}}:
{{source-attribution|{{Cite Newgenbio |title=Aagard |volume=1 |page=1}} }}
It will appear thus:
- 12px This article incorporates text from a publication now in the public domain: Rose, Hugh James (1857). "Aagard". A New General Biographical Dictionary. 1 AA–ANS. London: B. Fellowes et al. p. 1.
Hidden categories
This template will add the articles transcluding it to the hidden category
- Category:Wikipedia articles incorporating text from the New General Biography.
- Category:Wikipedia articles incorporating a citation from Newgenbio with a missing parameter
| The above documentation is transcluded from Template:Cite Newgenbio/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |