Difference between revisions of "Template:London Gazette/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Trappist the monk
imported>Trappist the monk
(delete unsupported parameters;)
Line 2: Line 2:
 
{{London Gazette/doc/parameterlist}}
 
{{London Gazette/doc/parameterlist}}
  
{{collapse top|1=Test with unnamed parameters, and named quote parameter}}
+
{{collapse top|1=Test with unnamed parameters, and named quote parameter (unnamed parameters no longer supported)}}
 
==Main template test quote==
 
==Main template test quote==
 
* [[Template:London Gazette]]
 
* [[Template:London Gazette]]
;Unnamed parameters 1 and 2, but no third (date parameter):
+
;Unnamed parameters 1 and 2:
 
* {{London Gazette|34233|2312}}
 
* {{London Gazette|34233|2312}}
;unnamed parameters 1 and 2 and 3:
+
;unnamed parameters 1 and 2:
 
* {{London Gazette|34233|2312|date=1935-12-20}}
 
* {{London Gazette|34233|2312|date=1935-12-20}}
;unnamed parameters 1 and 2 and 3 and quote parameter
+
;unnamed parameters 1 and 2 and quote parameter
 
* {{London Gazette|34233|2312|date=1935-12-20|quote=Test.}}
 
* {{London Gazette|34233|2312|date=1935-12-20|quote=Test.}}
  
 
==Sandbox template test quote==
 
==Sandbox template test quote==
 
* [[Template:London Gazette/sandbox]]
 
* [[Template:London Gazette/sandbox]]
;Unnamed parameters 1 and 2, but no third (date parameter):
+
;Unnamed parameters 1 and 2:
 
* {{London Gazette/sandbox|34233|2312}}
 
* {{London Gazette/sandbox|34233|2312}}
;unnamed parameters 1 and 2 and 3:
+
;unnamed parameters 1 and 2:
 
* {{London Gazette/sandbox|34233|2312|date=1935-12-20}}
 
* {{London Gazette/sandbox|34233|2312|date=1935-12-20}}
;unnamed parameters 1 and 2 and 3 and quote parameter
+
;unnamed parameters 1 and 2, and quote parameter
 
* {{London Gazette/sandbox|34233|2312|date=1935-12-20|quote=Test.}}
 
* {{London Gazette/sandbox|34233|2312|date=1935-12-20|quote=Test.}}
  
Line 35: Line 35:
 
*sandbox: {{London Gazette/sandbox |issue=18901 }}
 
*sandbox: {{London Gazette/sandbox |issue=18901 }}
 
---
 
---
;issue with date:
+
;date without issue:
 
*template: {{London Gazette |date=7 February 1832}}
 
*template: {{London Gazette |date=7 February 1832}}
 
----
 
----
Line 51: Line 51:
 
----
 
----
 
;Standard with issue and date and page number without and with nolink:
 
;Standard with issue and date and page number without and with nolink:
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 }}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |page=259 }}
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |nolink=1}} (+ nolink=1)
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |page=259 |nolink=1}} (+ nolink=1)
  
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |startpage=259 }}
+
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |page=259 }}
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |startpage=259 |nolink=1}} (+ nolink=1)
+
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |page=259 |nolink=1}} (+ nolink=1)
  
 
----
 
----
;Standard with issue, date and start and end page numbers:   
+
;Standard with issue, date and pages:   
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259}}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |pages=259–259}}
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |startpage=259  |endpage=259}}
+
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |pages=259–259}}
  
;Standard with unnamed parameters 1 and 2 date and end page numbers:
+
;Standard issue, date, pages and supp=y:
*template: {{London Gazette |18901 |date=7 February 1832 |259 |endpage=259}}
+
*template: {{London Gazette |issue=30250 |date=24 August 1917 |pages=8799–8799 |supp=y}}
*sandbox: {{London Gazette/sandbox  |18901 |date=7 February 1832 |259 |endpage=259}}
+
*sandbox: {{London Gazette/sandbox  |issue=30250 |date=24 August 1917 |pages=8799–8799  |supp=y}}
  
;Standard issue date and start and end page numbers and supp=yes:
+
;Standard issue date page and city=e:
*template: {{London Gazette |issue=30250 |date=24 August 1917 |startpage=8799 |endpage=8799 |supp=yes}}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |pages=645 | city=e}}
*sandbox: {{London Gazette/sandbox  |issue=30250 |date=24 August 1917 |startpage=8799  |endpage=8799  |supp=yes}}
+
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |pages=645 |city=e}}
 
 
;Standard isuue date and start and end page numbers and city=e:
 
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 | city=e}}
 
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 |city=e}}
 
 
----
 
----
;Standard issue date and start and end page numbers and city=b and city=Belfast:
+
;Standard issue date pages and city=b and city=Belfast:
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 | city=b}}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |pages=259–259 | city=b}}
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 | city=Belfast}}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |pages=259–259 | city=Belfast}}
 
----
 
----
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 |city=b}}
+
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |pages=259–259 |city=b}}
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 |city=Belfast}}
+
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |pages=259–259 |city=Belfast}}
 
----
 
----
;Standard issue date and start and end page numbers and city=e and city=Edinburgh:   
+
;Standard issue date and pages and city=e and city=Edinburgh:   
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 | city=e}}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |pages=645 | city=e}}
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 | city=Edinburgh}}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |pages=645 | city=Edinburgh}}
 
----
 
----
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 |city=e}}
+
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |pages=645 |city=e}}
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 |city=Edinburgh}}
+
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |pages=645 |city=Edinburgh}}
 
----
 
----
;Standard issue date and start and end page numbers and city=o and city=Oxford:   
+
;Standard issue date pages and city=o and city=Oxford:   
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 | city=o}}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |pages=259–259 | city=o}}
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 | city=Oxford}}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |pages=259–259 | city=Oxford}}
 
----
 
----
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 |city=o}}
+
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |pages=259–259 |city=o}}
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 |city=Oxford}}
+
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |pages=259–259 |city=Oxford}}
 
----
 
----
;Standard issue date and start and end page numbers and city=d city=Dublin ({{red|''defaults to London as expected''}}):
+
;Standard issue date pages and city=d city=Dublin ({{red|''defaults to London as expected''}}):
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 | city=d}}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |pages=259–259 | city=d}}
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 | city=Dublin}}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |pages=259–259 | city=Dublin}}
 
----
 
----
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 |city=d}}
+
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |pages=259–259 |city=d}}
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 |city=Dublin}}
+
*sandbox: {{London Gazette/sandbox  |issue=18901 |date=7 February 1832 |pages=259–259 |city=Dublin}}
 
----
 
----
;Standard with issue, date; start and end page numbers and accessdate:   
+
;Standard with issue, date; pages and accessdate:   
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |pages=259–259 |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |startpage=259  |endpage=259 |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
+
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |pages=259–259 |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
 
----
 
----
;Standard with issue, date; start and end page numbers and separator=.:   
+
;Standard with issue, date; pages and separator=.:   
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 |separator=. |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |pages=259–259 |separator=. |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |startpage=259  |endpage=259 |separator=. |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
+
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |pages=259–259 |separator=. |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
;Standard with issue, date; start and end page numbers and separator=, ({{red|''NB. changes Retrieved to lower case retrieved''}}):
+
;Standard with issue, date; pages and separator=, ({{red|''NB. changes Retrieved to lower case retrieved''}}):
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 |separator=, |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |pages=259–259 |separator=, |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |startpage=259  |endpage=259 |separator=, |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
+
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |pages=259–259 |separator=, |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
;Standard with issue, date; start and end page numbers and separator=^ ({{red|''defaults to "." as expected — separator no longer supported in standard template, replaced with mode''}}):   
+
;Standard with issue, date; pages and separator=^ ({{red|''defaults to "." as expected — separator no longer supported in standard template, replaced with mode''}}):   
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 |separator=^}}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |pages=259–259 |separator=^}}
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |startpage=259  |endpage=259 |separator=^}}
+
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |pages=259–259 |separator=^}}
 
----
 
----
;Standard with issue, date; start and end page numbers and postscript ps=! ({{red|''now supports the standard "postscript" parameter as well}}):
+
;Standard with issue, date; pages and postscript ps=! ({{red|''now supports the standard "postscript" parameter as well}}):
 
*with ps
 
*with ps
**template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 |ps=!}}
+
**template: {{London Gazette |issue=18901 |date=7 February 1832 |pages=259–259 |ps=!}}
**sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |startpage=259  |endpage=259 |ps=!}}
+
**sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |pages=259–259 |ps=!}}
 
*with postscript
 
*with postscript
**template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |endpage=259 |postscript=!}}
+
**template: {{London Gazette |issue=18901 |date=7 February 1832 |pages=259–259 |postscript=!}}
**sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |startpage=259  |endpage=259 |postscript=!}}
+
**sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |pages=259–259 |postscript=!}}
 
{{collapse bottom}}
 
{{collapse bottom}}
  
Line 128: Line 124:
 
{{collapse top|1=Test, mode= ref= title= }}
 
{{collapse top|1=Test, mode= ref= title= }}
 
;Standard with issue and page number, mode=cs2 ({{red|''NB. changes Retrieved to lower case retrieved''}}):
 
;Standard with issue and page number, mode=cs2 ({{red|''NB. changes Retrieved to lower case retrieved''}}):
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |mode=cs2 |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |page=259 |mode=cs2 |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |startpage=259  |mode=cs2 |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
+
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |page=259  |mode=cs2 |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
 
;Standard with issue and page number, mode=cs1:
 
;Standard with issue and page number, mode=cs1:
*template: {{London Gazette |issue=18901 |date=7 February 1832 |startpage=259 |mode=cs1 |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
+
*template: {{London Gazette |issue=18901 |date=7 February 1832 |page=259 |mode=cs1 |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |startpage=259  |mode=cs1 |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
+
*sandbox: {{London Gazette/sandbox |issue=18901 |date=7 February 1832 |page=259  |mode=cs1 |accessdate={{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
  
 
----
 
----
 
;Standard with issue and page number, ref=Gazette 18902({{red|the default}}):  
 
;Standard with issue and page number, ref=Gazette 18902({{red|the default}}):  
*template: {{London Gazette |issue=18902 |date=7 February 1832 |startpage=259}}
+
*template: {{London Gazette |issue=18902 |date=7 February 1832 |page=259}}
*sandbox: {{London Gazette/sandbox |issue=18902 |date=7 February 1832 |startpage=259}}
+
*sandbox: {{London Gazette/sandbox |issue=18902 |date=7 February 1832 |page=259}}
  
 
;Standard with issue and page number, ref=none ({{red|no link — useful when this template is in the external links section}}):
 
;Standard with issue and page number, ref=none ({{red|no link — useful when this template is in the external links section}}):
*template: {{London Gazette |issue=18903 |date=7 February 1833 |startpage=259 |ref=none}}
+
*template: {{London Gazette |issue=18903 |date=7 February 1833 |page=259 |ref=none}}
*sandbox: {{London Gazette/sandbox |issue=18903 |date=7 February 1833 |startpage=259 |ref=none}}
+
*sandbox: {{London Gazette/sandbox |issue=18903 |date=7 February 1833 |page=259 |ref=none}}
  
 
;Standard with issue and page number, ref=<nowiki>{{</nowiki>harvid|London Gazette|2017}} ({{red|set the ref to another value}}):
 
;Standard with issue and page number, ref=<nowiki>{{</nowiki>harvid|London Gazette|2017}} ({{red|set the ref to another value}}):
*template: {{London Gazette |issue=18903 |date=7 February 2017 |startpage=259 |ref={{harvid|London Gazette|2017}}}}
+
*template: {{London Gazette |issue=18903 |date=7 February 2017 |page=259 |ref={{harvid|London Gazette|2017}}}}
*sandbox: {{London Gazette/sandbox |issue=18903 |date=7 February 2017 |startpage=259 |ref={{harvid|London Gazette|2017}}}}
+
*sandbox: {{London Gazette/sandbox |issue=18903 |date=7 February 2017 |page=259 |ref={{harvid|London Gazette|2017}}}}
  
 
*{{harv|''Gazette''|18902}}
 
*{{harv|''Gazette''|18902}}
Line 152: Line 148:
 
----
 
----
 
;Title |title=Supplement Brumath, June, 27, 1815:
 
;Title |title=Supplement Brumath, June, 27, 1815:
*template: {{London Gazette |issue=17039 |date=11 July 1815 |startpage=1412  |endpage=1412 |title=Supplement: Brumath, June, 27, 1815 }}
+
*template: {{London Gazette |issue=17039 |date=11 July 1815 |pages=1412–1412 |title=Supplement: Brumath, June, 27, 1815 }}
*sandbox: {{London Gazette/sandbox |issue=17039 |date=11 July 1815 |startpage=1412 |endpage=1412 |title=Supplement: Brumath, June, 27, 1815}}
+
*sandbox: {{London Gazette/sandbox |issue=17039 |date=11 July 1815 |pages=1412–1412 |title=Supplement: Brumath, June, 27, 1815}}
  
;Standard issue date and start and end page numbers and supp=yes title=A Supplement:
+
;Standard issue date pages and supp=y title=A Supplement:
*template: {{London Gazette |issue=30250 |date=24 August 1917 |startpage=8799 |endpage=8799 |supp=yes |title=A Supplement}}
+
*template: {{London Gazette |issue=30250 |date=24 August 1917 |pages=8799–8799 |supp=y |title=A Supplement}}
*sandbox: {{London Gazette/sandbox  |issue=30250 |date=24 August 1917 |startpage=8799  |endpage=8799 |supp=yes |title=A Supplement}}
+
*sandbox: {{London Gazette/sandbox  |issue=30250 |date=24 August 1917 |pages=8799–8799 |supp=y |title=A Supplement}}
 
{{collapse bottom}}
 
{{collapse bottom}}
  
 
{{collapse top|1=Test numbered supp=}}
 
{{collapse top|1=Test numbered supp=}}
;Standard issue date and start and end page numbers and supp=4, title=Central Chancery of the Orders of Knighthood:
+
;Standard issue date pages and supp=4, title=Central Chancery of the Orders of Knighthood:
*template: {{London Gazette |issue=31712 |date=30 December 1919 |startpage=1 |endpage=9 |supp=4 |title=Central Chancery of the Orders of Knighthood}}
+
*template: {{London Gazette |issue=31712 |date=30 December 1919 |pages=1–9 |supp=4 |title=Central Chancery of the Orders of Knighthood}}
*sandbox: {{London Gazette/sandbox |issue=31712 |date=30 December 1919 |startpage=1 |endpage=9 |supp=Fourth |title=Central Chancery of the Orders of Knighthood}} – sandbox
+
*sandbox: {{London Gazette/sandbox |issue=31712 |date=30 December 1919 |pages=1–9 |supp=4 |title=Central Chancery of the Orders of Knighthood}} – sandbox
 
----
 
----
 
;Test a numbered supp parameter
 
;Test a numbered supp parameter
 
;supp=1:
 
;supp=1:
*template: {{London Gazette |issue=29565 |date=2 May 1916 |startpage=4428 |supp=1}}
+
*template: {{London Gazette |issue=29565 |date=2 May 1916 |page=4428 |supp=1}}
*sandbox: {{London Gazette/sandbox |issue=29565 |date=2 May 1916 |startpage=4428 |supp=1}}
+
*sandbox: {{London Gazette/sandbox |issue=29565 |date=2 May 1916 |page=4428 |supp=1}}
 
;supp=2:
 
;supp=2:
*template: {{London Gazette |issue=29195 |date=15 June 1915 |startpage=1 |supp=2}}
+
*template: {{London Gazette |issue=29195 |date=15 June 1915 |page=1 |supp=2}}
*sandbox: {{London Gazette/sandbox |issue=29195 |date=15 June 1915 |startpage=1 |supp=2}}
+
*sandbox: {{London Gazette/sandbox |issue=29195 |date=15 June 1915 |page=1 |supp=2}}
 
;supp=3:
 
;supp=3:
*template: {{London Gazette |issue=30051 |date=4 May 1917 |startpage=4311  |supp=3}}
+
*template: {{London Gazette |issue=30051 |date=4 May 1917 |page=4311  |supp=3}}
*sandbox: {{London Gazette/sandbox |issue=30051 |date=4 May 1917 |startpage=4311  |supp=3}}
+
*sandbox: {{London Gazette/sandbox |issue=30051 |date=4 May 1917 |page=4311  |supp=3}}
 
;supp=5:
 
;supp=5:
*template: {{London Gazette |issue=31222 |date=7 March 1919 |startpage=3279 |endpage=3280 |supp=5}}
+
*template: {{London Gazette |issue=31222 |date=7 March 1919 |pages=3279–3280 |supp=5}}
*sandbox: {{London Gazette/sandbox |issue=31222 |date=7 March 1919 |startpage=3279 |endpage=3280 |supp=5}}
+
*sandbox: {{London Gazette/sandbox |issue=31222 |date=7 March 1919 |pages=3279–3280 |supp=5}}
 
;supp=6:
 
;supp=6:
*template: {{London Gazette |issue=29945 |date=13 February 1917 |startpage=1605  |supp=6}}
+
*template: {{London Gazette |issue=29945 |date=13 February 1917 |page=1605  |supp=6}}
*sandbox: {{London Gazette/sandbox |issue=29945 |date=13 February 1917 |startpage=1605  |supp=6}}
+
*sandbox: {{London Gazette/sandbox |issue=29945 |date=13 February 1917 |page=1605  |supp=6}}
  
 
{{collapse bottom}}
 
{{collapse bottom}}
Line 187: Line 183:
 
;Test a numbered supp parameter with a new display-sup= parameter
 
;Test a numbered supp parameter with a new display-sup= parameter
 
;display-sup=2 supp not set:
 
;display-sup=2 supp not set:
*template: {{London Gazette |issue=17039 |date=11 July 1815 |startpage=1409 |display-supp=2}}
+
*template: {{London Gazette |issue=17039 |date=11 July 1815 |page=1409 |display-supp=2}}
*sandbox: {{London Gazette/sandbox |issue=17039 |date=11 July 1815|startpage=1409 |display-supp=2}}
+
*sandbox: {{London Gazette/sandbox |issue=17039 |date=11 July 1815|page=1409 |display-supp=2}}
  
 
;display-sup=1 supp= :
 
;display-sup=1 supp= :
*template: {{London Gazette |issue=17039 |date=11 July 1815 |startpage=1409 |display-supp=1 |supp=}}
+
*template: {{London Gazette |issue=17039 |date=11 July 1815 |page=1409 |display-supp=1 |supp=}}
*sandbox: {{London Gazette/sandbox |issue=17039 |date=11 July 1815 |startpage=1409 |display-supp=1 |supp=}}
+
*sandbox: {{London Gazette/sandbox |issue=17039 |date=11 July 1815 |page=1409 |display-supp=1 |supp=}}
  
 
;display-sup=2 supp=y — {{red|This will break the url as expected}}:
 
;display-sup=2 supp=y — {{red|This will break the url as expected}}:
*template: {{London Gazette |issue=17039 |date=11 July 1815 |startpage=1409 |display-supp=1 |supp=y}}
+
*template: {{London Gazette |issue=17039 |date=11 July 1815 |page=1409 |display-supp=1 |supp=y}}
*sandbox: {{London Gazette/sandbox |issue=17039 |date=11 July 1815 |startpage=1409 |display-supp=1 |supp=y}}
+
*sandbox: {{London Gazette/sandbox |issue=17039 |date=11 July 1815 |page=1409 |display-supp=1 |supp=y}}
  
 
;supp=5 display-supp=2 {{red|Links work but silly display. A numbered supp is all that is needed, but to code against it complicates the code}}:
 
;supp=5 display-supp=2 {{red|Links work but silly display. A numbered supp is all that is needed, but to code against it complicates the code}}:
*template: {{London Gazette |issue=31222 |date=7 March 1919 |startpage=3279 |endpage=3280 |supp=5 |display-supp=2}}
+
*template: {{London Gazette |issue=31222 |date=7 March 1919 |pages=3279–3280 |supp=5 |display-supp=2}}
*sandbox: {{London Gazette/sandbox |issue=31222 |date=7 March 1919 |startpage=3279 |endpage=3280 |supp=5  |display-supp=2}}
+
*sandbox: {{London Gazette/sandbox |issue=31222 |date=7 March 1919 |pages=3279–3280 |supp=5  |display-supp=2}}
  
 
;supp=5 display-supp= set to nothing {{red|Links work but silly display. A numbered supp is all that is needed, but to code against it complicates the code}}:
 
;supp=5 display-supp= set to nothing {{red|Links work but silly display. A numbered supp is all that is needed, but to code against it complicates the code}}:
*template: {{London Gazette |issue=31222 |date=7 March 1919 |startpage=3279 |endpage=3280 |supp=5 |display-supp=}}
+
*template: {{London Gazette |issue=31222 |date=7 March 1919 |pages=3279–3280 |supp=5 |display-supp=}}
*sandbox: {{London Gazette/sandbox |issue=31222 |date=7 March 1919 |startpage=3279 |endpage=3280 |supp=5  |display-supp=}}
+
*sandbox: {{London Gazette/sandbox |issue=31222 |date=7 March 1919 |pages=3279–3280 |supp=5  |display-supp=}}
 
{{collapse bottom}}
 
{{collapse bottom}}
;{{para|startpage}}
 
*template: {{London Gazette |issue=31222 |date=7 March 1919 |startpage=3279 |supp=5 |display-supp=}}
 
*sandbox: {{London Gazette/sandbox |issue=31222 |date=7 March 1919 |startpage=3279 |supp=5  |display-supp=}}
 
 
;{{para|startpage}} {{para|endpage}}
 
*template: {{London Gazette |issue=31222 |date=7 March 1919 |startpage=3279 |endpage=3280 |supp=5 |display-supp=}}
 
*sandbox: {{London Gazette/sandbox |issue=31222 |date=7 March 1919 |startpage=3279 |endpage=3280 |supp=5  |display-supp=}}
 
 
 
;{{para|page}}
 
;{{para|page}}
 
*template: {{London Gazette |issue=31222 |date=7 March 1919 |page=3279 |supp=5 |display-supp=}}
 
*template: {{London Gazette |issue=31222 |date=7 March 1919 |page=3279 |supp=5 |display-supp=}}
Line 229: Line 217:
 
*template: {{London Gazette |issue=31222 |date=7 March 1919 |pages=3279, 3280 |supp=5 |display-supp=}}
 
*template: {{London Gazette |issue=31222 |date=7 March 1919 |pages=3279, 3280 |supp=5 |display-supp=}}
 
*sandbox: {{London Gazette/sandbox |issue=31222 |date=7 March 1919 |pages=3279, 3280 |supp=5  |display-supp=}}
 
*sandbox: {{London Gazette/sandbox |issue=31222 |date=7 March 1919 |pages=3279, 3280 |supp=5  |display-supp=}}
 
;{{para|page}} {{para|endpage}}
 
*template: {{London Gazette |issue=31222 |date=7 March 1919 |page=3279 |endpage=3280 |supp=5 |display-supp=}}
 
*sandbox: {{London Gazette/sandbox |issue=31222 |date=7 March 1919 |page=3279 |endpage=3280 |supp=5  |display-supp=}}
 
 
;{{para|pages}} {{para|endpage}}
 
*template: {{London Gazette |issue=31222 |date=7 March 1919 |pages=3279–3280  |endpage=3280 |supp=5 |display-supp=}}
 
*sandbox: {{London Gazette/sandbox |issue=31222 |date=7 March 1919 |pages=3279–3280 |endpage=3280 |supp=5  |display-supp=}}
 
 
;{{para|page}} {{para|startpage}}
 
*template: {{London Gazette |issue=31222 |date=7 March 1919 |page=3279 |startpage=3279 |supp=5 |display-supp=}}
 
*sandbox: {{London Gazette/sandbox |issue=31222 |date=7 March 1919 |page=3279 |startpage=3279 |supp=5  |display-supp=}}
 
 
;{{para|pages}} {{para|startpage}}
 
*template: {{London Gazette |issue=31222 |date=7 March 1919 |pages=3279–3280  |startpage=3279 |supp=5 |display-supp=}}
 
*sandbox: {{London Gazette/sandbox |issue=31222 |date=7 March 1919 |pages=3279–3280 |startpage=3279 |supp=5  |display-supp=}}
 

Revision as of 12:22, 12 June 2017

{{London Gazette
 | issue =
 | date =
 | page =
 | pages =
 | supp =
 | display-supp =
 | nolink =
 | city =
 | title =
 | quote =
 | mode =
 | ref =
 | postscript =
}}
Test with unnamed parameters, and named quote parameter (unnamed parameters no longer supported)

Main template test quote

Unnamed parameters 1 and 2
unnamed parameters 1 and 2
unnamed parameters 1 and 2 and quote parameter

Sandbox template test quote

Unnamed parameters 1 and 2
unnamed parameters 1 and 2
unnamed parameters 1 and 2, and quote parameter

Test parameters upto 00:34 15 August 2026

Test with one of the 2 compulsory parameters missing
No parameters
  • template: You must specify issue= and date= when using {{London Gazette}}.

  • sandbox: You must specify issue= and date= when using {{London Gazette}}.

with issue (and no date)

---

date without issue

Tests of all the standard parameters

Standard with issue and date and nolink
  • template: "No. 18901". The London Gazette. 7 February 1832.
  • template: "No. 18901". The London Gazette. 7 February 1832. (+ nolink=1)

Standard with issue and date and page number without and with nolink

Standard with issue, date and pages
Standard issue, date, pages and supp=y
Standard issue date page and city=e

Standard issue date pages and city=b and city=Belfast


Standard issue date and pages and city=e and city=Edinburgh


Standard issue date pages and city=o and city=Oxford


Standard issue date pages and city=d city=Dublin (defaults to London as expected)


Standard with issue, date; pages and accessdate

Standard with issue, date; pages and separator=.
Standard with issue, date; pages and separator=, (NB. changes Retrieved to lower case retrieved)
Standard with issue, date; pages and separator=^ (defaults to "." as expected — separator no longer supported in standard template, replaced with mode)

Standard with issue, date; pages and postscript ps=! (now supports the standard "postscript" parameter as well):

New or altered parameters

Test, mode= ref= title=
Standard with issue and page number, mode=cs2 (NB. changes Retrieved to lower case retrieved)
Standard with issue and page number, mode=cs1

Standard with issue and page number, ref=Gazette 18902(the default)
Standard with issue and page number, ref=none (no link — useful when this template is in the external links section)
Standard with issue and page number, ref={{harvid|London Gazette|2017}} (set the ref to another value)

Title |title=Supplement Brumath, June, 27, 1815
Standard issue date pages and supp=y title=A Supplement
Test numbered supp=
Standard issue date pages and supp=4, title=Central Chancery of the Orders of Knighthood

Test a numbered supp parameter
supp=1
supp=2
supp=3
supp=5
supp=6
Test display-sup with a numbered supp=

Test a numbered supp parameter with a new display-sup= parameter
display-sup=2 supp not set
display-sup=1 supp= 
display-sup=2 supp=y — This will break the url as expected
supp=5 display-supp=2 Links work but silly display. A numbered supp is all that is needed, but to code against it complicates the code
supp=5 display-supp= set to nothing Links work but silly display. A numbered supp is all that is needed, but to code against it complicates the code
|page=
|pages= (en dash)
|pages= (hyphen)
|pages= (comma)