Template:London Gazette/testcases

From Wikipedia, the free encyclopedia


{{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[edit]

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

Sandbox template test quote[edit]

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

Test parameters upto 08:18 24 April 2024[edit]

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[edit]

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)