Template:FrameBox: Difference between revisions
From Shiptest Wiki
Jump to navigationJump to search
(adds framebox) |
(Minor framebox improvement) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0.2em 1em 0.2em; padding: 1px;"> | <includeonly><div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0.2em 1em 0.2em; padding: 1px; background: #{{{color}}}3e"> | ||
<div style="background: #{{{color|888}}}; border-radius: .2em; color: #FFF; padding: .4em .8em .5em;"><center>[[file:{{{image}}}|left|24px]]'''{{{title}}}'''[[file:{{{image}}}|right|24px]]</center></div> | <div style="background: #{{{color|888}}}; border-radius: .2em; color: #FFF; padding: .4em .8em .5em;"><center>[[file:{{{image|Missing.png}}}|left|24px]]'''{{{title|No Title!}}}'''[[file:{{{image|Missing.png}}}|right|24px]]</center></div> | ||
<div style="padding: 1em | <div style="padding: 1em">{{{content|No Content!}}}</div></div></includeonly><noinclude> | ||
== About == | == About == | ||
Infobox with title and content, intended use in [[Main Page]] and [[Administrators]]. | Infobox with title and content, intended use in [[Main Page]] and [[Administrators]]. | ||
== Examples == | == Examples == | ||
Line 55: | Line 28: | ||
<pre>{{FrameBox | <pre>{{FrameBox | ||
| color = BBA0DD | | color = BBA0DD | ||
| image = | | image = Autowiki-Botanist.png | ||
| title = | | title = Species | ||
| content = {{ | | content = {{Species}} | ||
}}</pre> | }}</pre> | ||
{{FrameBox | {{FrameBox | ||
| color = BBA0DD | | color = BBA0DD | ||
| image = | | image = Autowiki-Botanist.png | ||
| title = | | title = Species | ||
| content = {{ | | content = {{Species}} | ||
}} | }} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | <templatedata> | ||
{ | |||
"params": { | |||
"color": { | |||
"type": "string", | |||
"description": "RGB-color of the title-background (anything that would fit behind a '#' like 'BBA0DD'", | |||
"default": "888" | |||
}, | |||
"image": { | |||
"type": "wiki-file-name", | |||
"description": "Image to be displayed on the left and right of the titlebar " | |||
}, | |||
"title": { | |||
"type": "string", | |||
"required": true, | |||
"description": "Centered text in the title" | |||
}, | |||
"content": { | |||
"type": "content", | |||
"required": true, | |||
"description": "Content to be displayed in the infobox" | |||
} | |||
} | |||
} | |||
</templatedata></noinclude> |
Latest revision as of 21:21, 29 January 2024
About
Infobox with title and content, intended use in Main Page and Administrators.
Examples
Bare 1
{{FrameBox}}
No Content!
Bare 2
{{FrameBox |color= |image= |title= |content= }}
Normal
{{FrameBox | color = BBA0DD | image = Autowiki-Botanist.png | title = Species | content = {{Species}} }}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
color | color | RGB-color of the title-background (anything that would fit behind a '#' like 'BBA0DD'
| String | optional |
image | image | Image to be displayed on the left and right of the titlebar | File | optional |
title | title | Centered text in the title | String | required |
content | content | Content to be displayed in the infobox | Content | required |