Template:FrameBox: Difference between revisions
From Shiptest Wiki
Jump to navigationJump to search
mNo edit summary |
m (Reorganises frame box styling) |
||
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}}}|left|24px]]'''{{{title}}}'''[[file:{{{image}}}|right|24px]]</center></div> | ||
<div style="padding: 1em | <div style="padding: 1em">{{{content}}}</div></div></includeonly><noinclude> | ||
{{Needs revision | {{Needs revision | ||
|reason = Fix behaviour for missing parameters and empty parameters. | |reason = Fix behaviour for missing parameters and empty parameters. |
Revision as of 00:56, 8 October 2023
This page needs revising!
The following page is out of date and/or needs to be revised. If the page's guide needs revision, see here for an example. |
About
Infobox with title and content, intended use in Main Page and Administrators.
Parameter-Usage
Parameter | Default | Description |
---|---|---|
color | 888 | RGB-color of the title-background (anything that would fit behind a '#' like 'BBA0DD' |
image | Image to be displayed on the left and right of the titlebar | |
title | Centered text in the title | |
content | Content to be displayed in the infobox |
Examples
Bare 1
{{FrameBox}}
{{{content}}}
Bare 2
{{FrameBox |color= |image= |title= |content= }}
Normal
{{FrameBox | color = BBA0DD | image = Generic botanist.png | title = Departments and Roles | content = {{pagejobs}} }}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
color | color | no description | String | optional |
image | image | no description | File | optional |
title | title | no description | String | required |
content | content | no description | Content | required |