Template:Ukpga/doc

The UKPGA Template family is intended to provide an abstraction to assist in the transcription and formatting of more recent UK primary legislation, such as collected published editions in Index:The Public General Acts and Church Assembly Measure 1960.pdf.

UK primary legislation consists of nested content being in increasing depth (sections, subsections, "paragraphs", ) ( See Citation_of_United_Kingdom_legislation)

The templates are:


 * ukpga/l1 - Opens a level 1 "Section". The  parameter is used to provide the number of the section, and any punctuation for this should be remove.  The content generated by this template will include an anchor of the form .0 (e.g 1.0, 2.0, 3.0, etc.) so as to not conflict the anchors used for Page: links.  In published editions, these are typically the 'bold' numbered portions of the text. In older published editions a section may have a "side title" for the section in the margin, this should be included as the  parameter.


 * ukpga/l2 - Opens a level 2 "Subsection" - Both the (for the parent) and  must be supplied (omit any punctuation for the numbers.  The content generated by this template will include and anchor of the form . (e.g. 1.1,1.2, 2.1, 2.2, etc.}


 * ukpga/l3 - Opens a level 3 "Paragraph" - 3 parameters must be supplied, , for the respective numbering levels must be provided.  The content generated by this template will include an anchor of of the form ...  In published editions and collections these are typically the portions of text prefixed by an italicised letter in brackets.


 * ukpga/l4 - Opens a level 4 portion of the document. 4 parameters for the levels.,, ,  for the respective levels.   In published editions and collections these are typically the portions of text prefixed by a roman numeral sequence in brackets.


 * ukpga/^ - Close the portion of text at the current level. Do not forget to place this.

These templates are intended to be used in a nested fashion, with a line-feed between the template invocation and any content, including the template calls within a section for a sub-section and then paragraphs that are nested.

No formatting is applied by default.

Formatting for at each level can be applied through CSS by targetting the .__ukpga_l1,.__ukpga_l2,.__ukpga_l2,.__ukpga_l4 selectors in conjunction with the .__ukpga__cl_act_p_number (paragraph numbering) and .__ukpga__cl_act_p_number_inner (character style for the number).

Note: All numbering below level 1 is typically bracketed, and the current implementation reflects this. Due to limitations with some devices, it not currently possible to set up before: or after: rules which will render consistently, to add or remove this bracketing via CSS.

Headings
UK primary legislation also contains headings used to group particular sections. These are typically these are centered, italicised text in printed or collected editions.

Headings can be entered using ukpga/heading.

The single parameter (unnamed) required being the relevant heading. No formatting is provided by default)

Headings of the form "Part I"  should not use ukpga/heading but instead use :

ukpga/part which takes 2 parameters, being the part number, and heading for the "part" concerned. These are typically formatted as centred small-caps in published/collected editions.

Example usage
Generates: