Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
Template:Image frame/doc
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Namespaces
Template
Discussion
More
More
Page actions
Read
Edit source
History
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!
{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> {{Format TemplateData|TOC=1|JSON={ "params": { "align": { "label": "Alignment", "description": "\"left\" and \"right\" float the image to that side. \"center\" centres the image, and \"none\" left-aligns it without floating.", "type": "string", "default": "right" }, "width": { "label": "Width", "description": "The width of the image within the frame, in pixels (though do not add \"px\" to the width e.g., use width=175 and not width=175px)", "type": "number", "required": true }, "pos": { "label": "Caption position", "description": "Where to put the caption. Valid values: top, bottom", "type": "string", "default": "bottom" }, "innerstyle": { "label": "Inner frame style", "description": "Plain [[CSS]] to apply to the inner frame. Use with care. Examples: <code>text-align: center;</code>, <code>background: #ccc;</code>", "type": "string" }, "content": { "label": "Content", "description": "Content of the main section (generally images)", "type": "content", "required": true }, "link": { "label": "Link", "description": "Link for the \"Enlarge\" link in the caption (in the future, may also be used as the link for the image field inside the frame, though it would probably require an additional height parameter)", "type": "wiki-page-name" }, "linkoverride": { "label": "Link override", "description": "Completely replaces the 'info' link.", "type": "line" }, "caption": { "label": "Caption", "type": "content" } }, "description": "This template creates a frame like those surrounding images. This template can be used to put two or more images into a frame together, or as a wrapper for more complicated templates like {{tl|superimpose}}.\n\n<noexport><br/><code>{{Image frame|width=|content=|caption=|link=|align=|pos=}}</code></noexport>", "paramOrder": [ "content", "width", "align", "pos", "innerstyle", "link", "linkoverride", "caption" ] } }} == Examples == By filling out the parameters as follows, the result will be as shown below the code. <pre style="overflow:auto"> {{Image frame|width=200|content=[[File:PNG transparency demonstration 1.png|100px]][[File:Nancy Blake.png|100px]] |caption=Example usage|link=Hello world|align=center}} </pre> {{Image frame|width=200|content=[[File:PNG transparency demonstration 1.png|100px]][[File:Nancy Blake.png|100px]] |caption=Example usage|link=Hello world|align=center}} <pre style="overflow:auto"> {{Image frame|width=200|content=[[File:PNG transparency demonstration 1.png|100px]][[File:Wikidata-logo.svg|100px]] |caption=Example usage|link=Hello world|align=center|pos=top}} </pre> {{Image frame|width=200|content=[[File:PNG transparency demonstration 1.png|100px]][[File:Wikidata-logo.svg|100px]] |caption=Example usage|link=Hello world|align=center|pos=top}} == See also == * {{tl|Align}} * [[Template:Image frame]] <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Graphics templates]] [[Category:formatting templates]] }}</includeonly> <templatedata> { "params": { "align": {}, "width": {}, "pos": {}, "innerstyle": {}, "content": {}, "link": {}, "linkoverride": {}, "caption": {} } } </templatedata>
Summary:
Please make sure your edits are consistent with
MEpedia's guidelines
.
By saving changes, you agree to the
Terms of use
, and you irrevocably agree to release your contribution under the
CC BY-SA 3.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Documentation subpage
(
edit
)
Template:Format TemplateData
(
edit
)
Template:Image frame
(
edit
)
Template:Mbox
(
edit
)
Template:Strong
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Module:Arguments
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:No globals
(
edit
)
Module:Text
(
edit
)
Module:Yesno
(
edit
)
Navigation
Navigation
Skip to content
Main page
Browse
Become an editor
Random page
Popular pages
Abbreviations
Glossary
About MEpedia
Links for editors
Contents
Guidelines
Recent changes
Pages in need
Search
Help
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs