Difference between revisions of "Template:Cite Notitia Parliamentaria"
imported>PBS (add the same for pages) |
imported>Chuntuk (Replaced = with {{=}} in pages switch, to stop bits of the url appearing in shown text. Dunno why this doesn't happen for page parameter, but it did for pages.) |
||
| Line 50: | Line 50: | ||
This construct places the correct HTML link into the page number depending on which part of the book the page appears in. | This construct places the correct HTML link into the page number depending on which part of the book the page appears in. | ||
*Two URLs are provided and the switch selects one based on the part parameter | *Two URLs are provided and the switch selects one based on the part parameter | ||
| − | * All "=" characters in the URL strings have to be replaced with | + | * All "=" characters in the URL strings have to be replaced with {{=}} otherwise the "switch" gets confused |
The string manipulation for the pages parameter is done using three template functions | The string manipulation for the pages parameter is done using three template functions | ||
*page numbers are entered either as "page number, page number" or as "page number-page number" so the template function {{Str number/trim {{{pages}}} }} will extract the first number and it is place into the URL and added a second time so that it is displayed. | *page numbers are entered either as "page number, page number" or as "page number-page number" so the template function {{Str number/trim {{{pages}}} }} will extract the first number and it is place into the URL and added a second time so that it is displayed. | ||
* The remained of the string is then extracted using two template functions. {{Str number|{{{pages}}} }} will return the position of the first non numeric character ("," or "-"), this is passed into {{Str right}} which extracts the remained of the string which is then printed out as a concatenation after the closing of the URL link. | * The remained of the string is then extracted using two template functions. {{Str number|{{{pages}}} }} will return the position of the first non numeric character ("," or "-"), this is passed into {{Str right}} which extracts the remained of the string which is then printed out as a concatenation after the closing of the URL link. | ||
--> | --> | ||
| + | |||
|pages={{#if:{{{pages|}}} | {{#switch: {{{part}}} | |pages={{#if:{{{pages|}}} | {{#switch: {{{part}}} | ||
| − | | 1 | I = [https://books.google.com/books?id{{=}}5V09AAAAYAAJ&pg{{=}}PA{{Str number/trim|{{{pages}}} }}#v | + | | 1 | I = [https://books.google.com/books?id{{=}}5V09AAAAYAAJ&pg{{=}}PA{{Str number/trim|{{{pages}}} }}#v{{=}}onepage&q&f{{=}}false {{Str number/trim|{{{pages}}}}}]{{Str right|{{{pages}}}|{{Str number|{{{pages}}} }}}} |
| − | | 2 | II = [https://books.google.com/books?id{{=}}5V09AAAAYAAJ&pg{{=}}RA1-PA{{Str number/trim|{{{pages}}} }}#v | + | | 2 | II = [https://books.google.com/books?id{{=}}5V09AAAAYAAJ&pg{{=}}RA1-PA{{Str number/trim|{{{pages}}} }}#v{{=}}onepage&q&f{{=}}false {{Str number/trim|{{{pages}}}}}]{{Str right|{{{pages}}}|{{Str number|{{{pages}}} }}}} |
| {{{pages}}} | | {{{pages}}} | ||
}} }} | }} }} | ||
Revision as of 23:18, 3 March 2020
Willis, Browne (1750). Notitia Parliamentaria, Containing an Account of the First Returns and Incorporations of the Cities, Towns and Broughs, in England and Wales, That send Members to Parliament; ... [and] A Series or Lists of the Representatives in the several Parliaments held from the Reformation 1541, to the Restoration 1660 ... London.
Contents
Usage
This does what it says on the bottle. It is a wrapper around {{Cite book}} which fills out some of those fields. It also allows some additional parameters to be passed in (see Cite book: documentation for more details):
- chapter=chapter name — useful for the name of a parliament (see below)
- chapterurl=URL — to link to the first page in the book of a parliament
- chapter-url=URL — an alternative name for chapterurl
- pages=pagenumbers or page=page number — Required for a full citaion:
- ref=harv — This parameter is used to link this template to the templates {{sfn}} {{harvnb}} or {{harv}} when they are used in short citations and this template is placed in a general references section
- mode=cs1 — This parameter defaults to "cs1" but can be changed to "cs2" as used by {{citation}} see Help:CS1#Display options
- postscript=character — This standard parameter is used to alter the character used as a postscript. The default is a dot "." postscript=none for none (as used in {{citation}})
The template takes one additional parameter called "part". Part can be set to:
- part=1 or part=I
- part=2 or part=II
Part affect the presentation of the template. If part is set then the title changes to
- Notitia Parliamentaria, Part I: Containing an Account of the First Returns and Incorporations of the Cities, Towns and Broughs, in England and Wales, That send Members to Parliament; ...
or
- Notitia Parliamentaria, Part II: A Series or Lists of the Representatives in the several Parliaments held from the Reformation 1541, to the Restoration 1660 ...
and if the parameter "page=" or "pages=" is set the Google Book URL will link to the (first) page in the correct part of the book.
List of parliaments with page numbers
The help aid navigation to the correct page here is a list of parliaments with their corresponding page numbers in Part II of the book (Willis is not consistent with his use of Old Style and New Style dates so the first column uses the date that the parliament assembled from the list of English parliaments):
Tudor Parliaments (1542–1601)
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Stuart Parliaments (1603–1642)
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Commonwealth and Protectorate parliaments
| ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
List of members indexed on surname
There is a list of members indexed on surname on pages 313–387.
| A (313) | B (315) | C (324) | D (331) | E (334) | F (336) | G (339) | H (343) | IJ (350) | K (352) | L (353) | M (356) | |
| N (361) | O (363) | P (363) | Q (368) | R (368) | S (370) | T (377) | UV (380) | W (381) | X (---) | (387) | Z (387) | |
This member index and the list of parliaments with page numbers can be used to find the page in any parliament where a member is mentioned. On the pages next to each member's entry can be found the constituency they represented.
For example, the first entry in the members index is for "Abbot, Daniel, 284". Looking at the list of parliaments with page numbers it can be seen that page is within the bounds of the "Second Protectorate Parliament (Parliament at Westminster, Anno 1658-9)" (pages 272 to 284) and turning to page 284 The entry reads "Counties of Tipperary and Waterford, Sir John Reynolds Kt, Daniel Abbot."
Hidden category
This template places the article name into a hidden category called Category:Wikipedia articles citing Notitia Parliamentaria. As the category is hidden the category does not appear at the bottom of the article page.
See also
| The above documentation is transcluded from Template:Cite Notitia Parliamentaria/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. |