This template uses Lua: |
This template is used to provide references to pages in the London Gazette online archive website. The London Gazette is the official newspaper of the British government for England and Wales in which all official notices are published. The template is provided to simplify the entering of addresses. An index by number/date (i.e. if you know the number or date you can find the document) is at WP:London Gazette Index.
The template may also be used to provide references to pages in the of the Edinburgh Gazette online archives and to Belfast Gazette online archives.
Basic form using minimum parameters to link to the reference (when used as an inline reference, the <ref>...</ref>
tags must be added separately):
{{London Gazette |issue= |date= }}
(For an entire issue){{London Gazette |issue= |date= |page= }}
(For a single page)Using pages to refer to a range of pages in the link:
{{London Gazette |issue= |date= |pages= }}
Using city to refer to a page in the Edinburgh or Belfast Gazette in the link:
{{London Gazette |issue= |date= |page= |city= }}
Using supp to link to a page in a supplement to a Gazette
{{London Gazette |issue= |date= |page= |supp= }}
All parameters, delete those you don't need
{{London Gazette |issue= |date= |page= |pages= |supp= |display-supp= |city= |nolink= |postscript= |mode= |title= |ref= |quote=}}
All parameters, vertical format:
{{London Gazette | issue = | date = | page = | pages = | supp = | display-supp = | nolink = | city = | title = | quote = | mode = | ref = | postscript = }}
Transclusions which lack any of the required parameters are added to Category:Articles missing Template:London Gazette required parameter.
For use where a single page is to be referenced:
For use where a range of pages is to be referenced:
For a link to the Edinburgh, Belfast Gazette or Oxford Gazette:
|city=e
for Edinburgh Gazette, |city=b
for Belfast Gazette or |city=o
for the Oxford Gazette as the first 23 issues of the London Gazette were titled. The city names may also be spelt out in full if you prefer, e.g. |city=Edinburgh
To display the name of the Gazette without a wikilink (e.g. if there are multiple uses of the template, allow the link on the first but disable the rest):
|nolink=y
to display the name of the Gazette without a wikilink (e.g. if there are multiple uses of the template on the same page)The punctuation used to separate elements in the rendered citation:
|mode=cs2
changes the style to ensure consistency with Citation style 2, as produced by {{Citation}}
.To remove the final period, or change it to any other character:
|postscript=
see Help:Citation Style 1#Display options — now semi-redundant, consider using |mode=
.Others
CITEREFGazetteissue
can be altered as described in Help:Citation Style 1#Anchors.Specifying a supplement to a Gazette:
y
, or the one or two digit number of the supplement—numbers 1 to 99 are supported. Usually this will be to an unnumbered or first supplement (|supp=1
). There are exceptions. See display-supp and the table.|display-supp=
with |supp=
to direct the template to select the correct URL and render the correct display. See the table.row | |display-supp= | |supp= | condition | displayed result | url | comment |
---|---|---|---|---|---|---|
1 | – | – | – | <no supplement display> | /page/ |
most common non-supplement form |
2 | – | y | – | Supplement | /supplement/ |
unnumbered supplement |
3 | – | ## | – | {{{supp}}} <suffix> supplement |
/supplement/ |
specific numbered supplement |
4 | – | <text> | – | invalid |supp= |
/page/ |
invalid or out of range |
5 | none |
y | – | <no supplement display> | /supplement/ |
when page not at /page/ url
|
6 | y | – | – | Supplement | /supplement/ |
when unnumbered supplement not at /supplement/ url
|
7 | ## | – | – | {{{display-supp}}} <suffix> supplement |
/page/ |
when supplement not at /supplement/ url
|
8 | ## | y | – | {{{display-supp}}} <suffix> supplement |
/supplement/ |
specific numbered supplement (similar to 3) |
9 | ## | ## | {{{supp}}} == {{{display-supp}}} |
{{{display-supp}}} <suffix> supplement |
/supplement/ |
|supp= and |display-supp= must agree |
10 | ## | ## | {{{supp}}} != {{{display-supp}}} |
invalid |supp= |
/supplement/ |
ambiguous; which supplement number is correct? |
11 | <text> | – | – | {{{display-supp}}} |
/page/ |
user specified text; not at /supplement/ url
|
12 | <text> | y | – | {{{display-supp}}} |
/supplement/ |
user specified text |
13 | <text> | ## | – | {{{display-supp}}} |
/supplement/ |
user specified text |
14 | <text> | <text> | – | invalid |supp= |
/supplement/ |
|supp= invalid or out of range
|
key | ||||||
– | parameter is empty or missing; a condition does not apply | |||||
## | a number greater than zero and less than 100 | |||||
<suffix> | the appropriate ordinal suffix: 1st, 2nd, 3rd, 4th, ... | |||||
<text> | any characters that are not ## or the letter y (or, for |disp-supp= , not the keyword none )
| |||||
== |
logical equality; the statement A == B is true when A and B hold the same value | |||||
!= |
logical inequality; the statement A != B is true when A and B hold different values |
To find the information to put into the parameters:
|supp=
must be added to the template. Any character may follow, as long as it is not left blank.|city=b
or |city=e
. When referencing the first 23 issues of the London Gazette (published as the Oxford Gazette) use |city=o
. Setting |city=l
explicitly refers to the London Gazette. Omitting, leaving the parameter blank, or specifying any other value but b, e, l, or o, will cause the template to default to the London Gazette.Some standard use cases
A link to a page in the Edinburgh gazette
A link to a page in the Oxford gazette
No parameters (error)
You must specify issue= and date= when using {{London Gazette}}.
Certain combinations of parameters are invalid or inappropriate. The template attempts to make sense of all parameter values. When that is not possible, it emits error messages. These messages are:
|supp=
– |supp=
accepts a limited range of parameter values. The values are:
y
|page=
and |pages=
– simultaneous use of these is not permitted; choose the appropriate parameter|ps=
– use |postscript=
|separator=
– use |mode=
|startpage=
– use |page=
or |pages=
|endpage=
– use |page=
or |pages=
|accessdate=
– remove|access-date=
– removeTemplateData for London Gazette