Template:Infobox regional law/doc: Difference between revisions

From TSP Encyclopedia
Jump to navigation Jump to search
(create documentation)
 
(display TemplateData)
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
| link          = <!-- put a url with no wikilink syntax, e.g. https://tspforums.xyz/thread-4111.html -->
| link          = <!-- put a url with no wikilink syntax, e.g. https://tspforums.xyz/thread-4111.html -->
| link_text      = <!-- typically not needed, only used for custom link text; delete parameter (rather than just blanking) if not used -->
| link_text      = <!-- typically not needed, only used for custom link text; delete parameter (rather than just blanking) if not used -->
| constitutional = <!-- use yes or y if constitutional law, and no or n otherwise
| constitutional = <!-- use yes or y if constitutional law, and no or n otherwise -->
| introduced_by  =  
| introduced_by  =  
| date_passed    =  
| date_passed    =  
Line 22: Line 22:
{{clear}}
{{clear}}


==TemplateData==
{{TemplateData header}}
{{Collapse top|title=TemplateData}}
<templatedata>
{
"params": {
"name": {
"description": "Short title of the legislation. If a bill, enter the bill's current or most recent short title.",
"default": "{{PAGENAMEBASE}}",
"suggested": true
},
"image": {
"description": "An image representing the institution or office that enacted/is enacting the legislation, such as a coat of arms, a seal, an emblem or a photograph of the institution's building. Omit \"File:\". Overrides any automatically set image. Defaults to a logo for the Assembly of the South Pacific.",
"type": "wiki-file-name",
"suggested": true
},
"caption": {
"description": "Caption for the image. This explains the image or its purpose in the current context and therefore is not necessarily the same as the alt text.",
"type": "content"
},
"legislature": {},
"region": {},
"link": {},
"link_text": {},
"constitutional": {},
"introduced_by": {},
"date_passed": {},
"date_amended": {},
"date_repealed": {}
},
"description": "Infobox for an article about an act, statute, bill, regulation, order, measure or other legislation passed by any region."
}
</templatedata>
{{Collapse bottom}}
<includeonly>{{sandbox other||
<includeonly>{{sandbox other||
<!-- Categories below this line -->
<!-- Categories below this line -->
[[Category:Regional government infobox templates|Regional law]]
[[Category:Regional government infobox templates|Regional law]]
}}</includeonly>
}}
</includeonly>

Latest revision as of 21:47, 29 April 2022

Usage

{{{name}}}
An Act of the {{{legislature}}} of {{{region}}}
[[File:{{{image}}}|22em]]
{{{caption}}}
Official text[{{{link}}} {{{link_text}}}]
Constitutional lawYes
Legislative history
Introduced by{{{introduced_by}}}
Passed{{{date_passed}}}
Last amended{{{date_amended}}}
Repealed{{{date_repealed}}}
{{Infobox regional law
| name           = <!-- optional, will use article title if not specified -->
| image          = 
| caption        = 
| legislature    = <!-- include wikilink syntax, e.g. [[articlename]]; optional, defaults to [[Assembly of the South Pacific|Assembly]] -->
| region         = <!-- include wikilink syntax, e.g. [[articlename]]; optional, defaults to [[the South Pacific]] -->
| link           = <!-- put a url with no wikilink syntax, e.g. https://tspforums.xyz/thread-4111.html -->
| link_text      = <!-- typically not needed, only used for custom link text; delete parameter (rather than just blanking) if not used -->
| constitutional = <!-- use yes or y if constitutional law, and no or n otherwise -->
| introduced_by  = 
| date_passed    = 
| date_amended   = <!-- use date of last amendment; optional, link to MATT-DUCK already provides full list of amendments, consider using only if you are confident of keeping this up to date -->
| date_repealed  = <!-- leave blank for laws still in force -->
}}

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox regional law in articles based on its TemplateData.

TemplateData for Infobox regional law

TemplateData

Infobox for an article about an act, statute, bill, regulation, order, measure or other legislation passed by any region.

Template parameters

ParameterDescriptionTypeStatus
namename

Short title of the legislation. If a bill, enter the bill's current or most recent short title.

Default
{{PAGENAMEBASE}}
Unknownsuggested
imageimage

An image representing the institution or office that enacted/is enacting the legislation, such as a coat of arms, a seal, an emblem or a photograph of the institution's building. Omit "File:". Overrides any automatically set image. Defaults to a logo for the Assembly of the South Pacific.

Filesuggested
captioncaption

Caption for the image. This explains the image or its purpose in the current context and therefore is not necessarily the same as the alt text.

Contentoptional
legislaturelegislature

no description

Unknownoptional
regionregion

no description

Unknownoptional
linklink

no description

Unknownoptional
link_textlink_text

no description

Unknownoptional
constitutionalconstitutional

no description

Unknownoptional
introduced_byintroduced_by

no description

Unknownoptional
date_passeddate_passed

no description

Unknownoptional
date_amendeddate_amended

no description

Unknownoptional
date_repealeddate_repealed

no description

Unknownoptional