Template:FrameBox: Difference between revisions

From Ekrixipedia
(Created page with "Taken from the Shiptest wiki <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|Missing.png}}}|left|24px]]'''{{{title|No Title!}}}'''[[file:{{{image|Missing.png}}}|right|24px]]</center></div> <div style="padding: 1em">{{{content|No Content!}}}</div></div>...")
 
m (fix framebox showing "Taken from the Shiptest wiki")
 
Line 1: Line 1:
Taken from the Shiptest wiki
<includeonly><div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0.2em 1em 0.2em; padding: 1px; background: #{{{color}}}3e">
<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|Missing.png}}}|left|24px]]'''{{{title|No Title!}}}'''[[file:{{{image|Missing.png}}}|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>
Line 5: Line 4:


== 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]]. Taken from the Shiptest wiki


== Examples ==
== Examples ==

Latest revision as of 19:06, 13 June 2024


About

Infobox with title and content, intended use in Main Page and Administrators. Taken from the Shiptest wiki

Examples

Bare 1

{{FrameBox}}
No Title!
No Content!

Bare 2

{{FrameBox
|color=
|image=
|title=
|content=
}}
[[file:|left|24px]]'[[file:|right|24px]]

Normal

{{FrameBox
| color      = BBA0DD
| image      = Autowiki-Botanist.png
| title      = Species
| content    = {{Species}}
}}

<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>