Editing
Template:Infobox legislation/doc
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Technical information== {{Mbox|text=This section contains technical information to assist editors familiar with templates and [[:mw:Help:Extension:ParserFunctions|parser functions]] to edit this template.}} The {{para|image}} parameter in the template contains (with slight modifications) the following function: <pre style="overflow: auto"> {{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{image|}}} |{{{image}}} |{{Infobox legislation/images |image={{if empty|{{{legislature|}}}|{{{considered_by|}}}|{{{enacted_by|}}}}} |date={{{date_enacted|}}} }} }}|size={{{imagesize|}}}|sizedefault=frameless|upright={{{upright|{{{image_upright|1}}}}}}|alt={{{imagealt|}}}}} </pre> The function does the following tasks: * If the parameter {{para|image}} is used in the template, that image is displayed. * If {{para|image}} is not used, a check is done to see if the value of {{para|legislature}} or {{para|enacted_by}} is listed in {{tl|Infobox legislation/images}}. If the result is blank, then no image is displayed. If the result is an image file (the coat of arms or seal, or a photograph of a building representing the person or institution that enacted the legislation), then the image file is displayed. {{tl|Infobox legislation/images}} can be tweaked to display different images depending on the date when the legislation was decided β for help with this, leave a message on the [[Template talk:Infobox legislation|talk page]]. * If a value is specified for {{para|imagesize}}, the image is given that width; otherwise the image width defaults to "frameless". * If a value, adds {{para|upright|{{var|value}}}} to image. Values less than 1 scale the image down (0.9 = 90%); values greater than 1 scale the image up (1.15 = 115%). * In either case the image is given alt text specified by {{para|imagealt}}. [[User:Jacklee|JackLee]] came up with the first version of this function for {{tl|Infobox court case}}, but thanks are due to [[User:Thumperward|Chris Cunningham]] for coming up with a cleaner solution that works better.
Summary:
Please note that all contributions to IDU Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
IDU Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
To edit this page, please answer the question that appears below (
more info
):
Who is the wiki admin
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information