<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.stiles.casa/index.php?action=history&amp;feed=atom&amp;title=Template%3ACite_Notitia_Parliamentaria</id>
	<title>Template:Cite Notitia Parliamentaria - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.stiles.casa/index.php?action=history&amp;feed=atom&amp;title=Template%3ACite_Notitia_Parliamentaria"/>
	<link rel="alternate" type="text/html" href="https://wiki.stiles.casa/index.php?title=Template:Cite_Notitia_Parliamentaria&amp;action=history"/>
	<updated>2026-05-06T22:32:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://wiki.stiles.casa/index.php?title=Template:Cite_Notitia_Parliamentaria&amp;diff=7908&amp;oldid=prev</id>
		<title>imported&gt;GKFX: Swap out nested string functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.stiles.casa/index.php?title=Template:Cite_Notitia_Parliamentaria&amp;diff=7908&amp;oldid=prev"/>
		<updated>2021-06-16T21:27:29Z</updated>

		<summary type="html">&lt;p&gt;Swap out nested string functions&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite book&lt;br /&gt;
    |_exclude=converted, part, _debug&lt;br /&gt;
    |_reuse=page, pages, url&lt;br /&gt;
&lt;br /&gt;
 |last=Willis&lt;br /&gt;
 |first=Browne&lt;br /&gt;
 |author-link=Browne Willis&lt;br /&gt;
 |year=1750&lt;br /&gt;
 |title = {{#switch:{{{part}}}&lt;br /&gt;
   | 1 | I     = 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; ...&lt;br /&gt;
   | 2 | II    = Notitia Parliamentaria, Part II:  A Series or Lists of the Representatives in the several Parliaments held from the Reformation 1541, to the Restoration 1660 ...&lt;br /&gt;
   |&amp;lt;!-- default if no part  specified --&amp;gt;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; ... &amp;amp;#91;and&amp;amp;#93; A Series or Lists of the Representatives in the several Parliaments held from the Reformation 1541, to the Restoration 1660 ...&lt;br /&gt;
  }}&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
If chapter is set then do not set url to anything that is not passed into the template. If chapter is not set then set the URL to the start page in the relevant part of the book&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
    |url={{#if: {{{chapter|}}}&lt;br /&gt;
            |{{{url|}}}&lt;br /&gt;
            |{{#switch:{{{part}}}&lt;br /&gt;
                         &amp;lt;!--replace &amp;quot;=&amp;quot; with &amp;quot;&amp;amp;#61;&amp;quot;--&amp;gt;&lt;br /&gt;
              | 2 | II = https://books.google.com/books?id{{=}}5V09AAAAYAAJ&amp;amp;pg{{=}}RA1-PA1                       &lt;br /&gt;
              | https://books.google.com/books?id{{=}}5V09AAAAYAAJ&amp;amp;pg{{=}}PR1&lt;br /&gt;
              }}&lt;br /&gt;
        }}&lt;br /&gt;
 |location=London&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
This construct places the correct HTML link into the page number depending on which part of the book the page appears in.&lt;br /&gt;
*Two URLs are provided and the switch selects one based on the part parameter&lt;br /&gt;
* All &amp;quot;=&amp;quot; characters in the URL strings have to be replaced with the HTML equivalent of &amp;quot;&amp;amp;#61;&amp;quot; otherwise the &amp;quot;switch&amp;quot; gets confused&lt;br /&gt;
*The page parameter is added to the URL string and added a second time so that it is displayed&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 |page={{#if:{{{page|}}} | {{#switch: {{{part}}}&lt;br /&gt;
   | 1 | I = [https://books.google.com/books?id{{=}}5V09AAAAYAAJ&amp;amp;pg{{=}}PA{{Str number/trim|{{{page}}} }}#v&amp;amp;#61;onepage&amp;amp;q&amp;amp;f&amp;amp;#61;false {{Str number/trim|{{{page}}}}}]{{#invoke:string|replace|{{{page}}}|^[0-9]*|plain=}}&lt;br /&gt;
   | 2 | II = [https://books.google.com/books?id{{=}}5V09AAAAYAAJ&amp;amp;pg{{=}}RA1-PA{{Str number/trim|{{{page}}} }}#v&amp;amp;#61;onepage&amp;amp;q&amp;amp;f&amp;amp;#61;false {{Str number/trim|{{{page}}}}}]{{#invoke:string|replace|{{{page}}}|^[0-9]*|plain=}}&lt;br /&gt;
   | {{{page}}}&lt;br /&gt;
   }} }}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
This construct places the correct HTML link into the page number depending on which part of the book the page appears in.&lt;br /&gt;
*Two URLs are provided and the switch selects one based on the part parameter&lt;br /&gt;
* All &amp;quot;=&amp;quot; characters in the URL strings have to be replaced with {{=}} otherwise the &amp;quot;switch&amp;quot; gets confused&lt;br /&gt;
The string manipulation for the pages parameter is done using three template functions&lt;br /&gt;
*page numbers are entered either as &amp;quot;page number, page number&amp;quot; or as  &amp;quot;page number-page number&amp;quot; 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.&lt;br /&gt;
* 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 (&amp;quot;,&amp;quot; or &amp;quot;-&amp;quot;), 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.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 |pages={{#if:{{{pages|}}} | {{#switch: {{{part}}}&lt;br /&gt;
   | 1 | I = [https://books.google.com/books?id{{=}}5V09AAAAYAAJ&amp;amp;pg{{=}}PA{{Str number/trim|{{{pages}}} }}#v{{=}}onepage&amp;amp;q&amp;amp;f{{=}}false {{Str number/trim|{{{pages}}}}}]{{#invoke:string|replace|{{{pages}}}|^[0-9]*|plain=}}&lt;br /&gt;
   | 2 | II = [https://books.google.com/books?id{{=}}5V09AAAAYAAJ&amp;amp;pg{{=}}RA1-PA{{Str number/trim|{{{pages}}} }}#v{{=}}onepage&amp;amp;q&amp;amp;f{{=}}false {{Str number/trim|{{{pages}}}}}]{{#invoke:string|replace|{{{pages}}}|^[0-9]*|plain=}}&lt;br /&gt;
   | {{{pages}}}&lt;br /&gt;
  }} }}&lt;br /&gt;
}}&amp;lt;includeonly&amp;gt;{{#ifeq: {{NAMESPACEE}} |&amp;lt;!--is not set--&amp;gt;&lt;br /&gt;
                  |&amp;lt;!--Set: sort out the parameters--&amp;gt;&lt;br /&gt;
                  {{#if: {{{converted|}}}|[[Category:Stiles.casa Wiki articles citing Notitia Parliamentaria that were auto-converted and need a page number check]]&lt;br /&gt;
                  |[[Category:Stiles.casa Wiki articles citing Notitia Parliamentaria]]&lt;br /&gt;
                  }}&lt;br /&gt;
               }}&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;{{Documentation}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;GKFX</name></author>
	</entry>
</feed>