Template:Swedish Code of Statutes/sandbox
This is the template sandbox page for Template:Swedish Code of Statutes (diff). See also the companion subpage for test cases. |
Usage
[edit]This template allows citation from the Swedish Code of Statutes (SFS).
Currently this template calls from the non-profit lagen.nu, in the format:
https://lagen.nu/{year-issued}:{number}_{specifier}#K{kapitel}P{paragraf}S{stycke} <!-- https://lagen.nu/2004:1062#P7S1 --> An alternative possibility is to use the official Regeringskansliets rättsdatabaser [Government Offices legal database] for lagar [laws], förordningar [ordinances], kommittédirektiv [committee directives] and kommittéregistret [the committee register]. One disadvantage of is the lack of plaintext and pinpoints. https://rkrattsbaser.gov.se/sfst?bet={year-issued}:{number}
To do
[edit]- Fix bugs and generally clean the code. Allow government domain and user urls as backup.
- lagen.nu also hosts official documents in other subdomains (e.g. SIFS 2019.3 or LIFS 2016:1), supreme court cases, as well as propositionens with commentary (2008/09:187). Extend support if possible.
- Add parameters expected from CS1|2 like access-date. Consider moving to CS1|2 wrapper.
- Eventually move to single EU legal template.
Syntax
[edit]{{SFS|k}}
Examples
[edit]{{SFS|Apple|Banana|Carrot}}
{{SFS|2004|1062|1}}
{{SFS|2022|365|k=2|p=3|st=2|pp=4-5|t=testing test caps and punct.}}
SFS 2022:365 ch. 2 § 4-5 sub. 2 testing test caps and punct.
Parameters
[edit]TemplateData for Swedish Code of Statutes
The template takes the following parameters:
Parameter | Description | Type | Status | |
---|---|---|---|---|
Document year | 1
| The first number appended to the URL, corresponding to the year the document was issued (as opposed to the year it was enforced). | String | required |
Document number | 2
| The number following the year and colon(:) in the URL. (Editor doesn't know if this is a serial number, random, or has semantic value.) | String | required |
Additional specification | 3
| (Editor doesn't know range of values): An alphanumeric specifier for the URL. Must be formatted such that it will evaluate mathematically in #expr without throwing an error. If it evaluates successfully, then it is appended to the URL with an underscore. If it does have an error, then it does nothing. | String | optional |
kapitel/chapter | k kapitel c chapter | K{} | String | optional |
paragraf/section | p paragraf s section § | P{} | String | optional |
stycke/subsection | st stycke sub subsection frag fragment | S{} | String | optional |
paragrafs/sections | pp paragrafer ss sections §§ | Paragraf range; no effect on URL. | String | optional |
text/quote | t text | Quoted text. | String | optional |
See also
[edit]- {{Cite EU law}}
- {{Cite EU directive}}
- {{Cite EU regulation}}
- {{EUR-Lex link}}
- {{ELI}}
- {{ECLI}}