Template:Cl-act-paragraph

From Wikisource
Jump to: navigation, search

Documentation icon Template documentation[view] [edit] [history] [purge]


This template is designed to assist in formating items of commonwealth legislation.

This template should be used for single paragraphs, as owing to techincal limitations, it is not possible to support multiple paragraphs.

Usage[edit]

General Enumerated
{{cl-act-paragraph
 | layout = 
 | title  = 
 | text   = 
}}
{{cl-act-paragraph/1
 | s1     = 
 | style  = 
 | layout = 
 | title  = 
 | text   = 
}}
Split paragraph start Split paragraph end
{{cl-act-paragraph
 | layout = 
 | split  = start
 | title  = 
 | text   = 
}}
{{cl-act-paragraph
 | layout = 
 | split  = cont
 | title  = 
 | text   = 
}}{{cl-act-paragraph|split=end}}

Paramaters[edit]

  • split= {start|end|cont|table|heading} - optional - used to mark the start, end or continuation of a section over a page break
    • start = Marks the start of a paragraph. - Use this at the start of a paragraph extending over a Page: break
    • cont = Marks the continuation of a parahraph - Use this at the 'continuation' of a paragraph from a previous Page:
    • end = marks the end of a paragraph. - Use this to mark the end of a paragraph.
    • heading = The content is a heading, sub heading , section or part title. Currently passes the text parameter directly into output.
    • table = The content is a tabular data - Currently passes the text parameter directly into output.
    • footer = (Experimental) The contents, of the text or cont parameter(s) represent "footer" content typically the first word or lines of the paragraph's continuation onto the next page. Currently passes the contents of the parameter directly into output...
  • layout= {left|right|lrpage|rlpage} - optional (default:right) - Specfies if side titles are on the left or right hand side (NB. This currently has no effect, and is documented here in case someone wishes to re-implement that functionality at a later date.
  • title= Side title for the section - (Additional side titles can be inserted in the text using {{cl-act-title}} ). Due to technical limitations in the current implementation in the current version this cannot contain any DIV based formatting.
  • text= The text of the section.
  • cont= (optional) continutation text to place at base of page.
  • section= (optional) Section number or index.
  • anchor= Section anchor for URL's (On higher level templates this is automatically generated)
  • adjust= Margin adjustment for sub-level sections
  • indent= Amount of indentation to apply for this section.
  • leading= Amount of additional whitespace to add at end of section.

Additional params are supplied from higher level templates:

  • Sch = Schedule index (recomended style is Sch{x}
  • s1-s4 = Section numbers (numerical)
  • style = specifying roman on {{cl-act-paragraph/1}} changes the style of the section numbering to roman numerals.

Examples[edit]

Basic[edit]

{{cl-act-paragraph
 | layout = left
 | title  = An example side-note
 | text   = {{lorem ipsum}}
}}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Section number[edit]

{{cl-act-paragraph/1
 | s1     = 2
 | layout = left
 | title  = An example side-note
 | text   = {{lorem ipsum}}
}}

An example side-note

2. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Roman numeral[edit]

{{cl-act-paragraph/1
 | s1     = 2
 | style  = roman
 | layout = left
 | title  = An example side-note
 | text   = {{lorem ipsum}}
}}

An example side-note

II. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.