Difference between revisions of "Template:Main Page/Frame"
Jump to navigation
Jump to search
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div | + | <div class="mp-frame"> |
− | <div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0 2em 0; padding: 1px;"> | + | <div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0 2em 0; padding: 1px; height: 100%;"> |
− | <div style="background: #{{{color|888}}}; border-radius: .2em; color: #FFF; padding: .4em .8em .5em;"><!--<span style="opacity: .7;">[[File:Wikidata-logo white.svg|27px|link=|alt=]]</span> --> | + | <div style="background: #{{{color|888}}}; border-radius: .2em; color: #FFF; padding: .4em .8em .5em;"><!--<span style="opacity: .7;">[[File:Wikidata-logo white.svg|27px|link=|alt=]]</span> -->{{{title}}}</div> |
<div style="padding: 1em;">{{{content}}}</div> | <div style="padding: 1em;">{{{content}}}</div> | ||
</div></div><noinclude> | </div></div><noinclude> | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Latest revision as of 14:31, 5 August 2015
{{{title}}}
{{{content}}}
This template is used on the home page to organize subcategories in a more widescreen-friendly manner. Based on the elegant work of TMg for Wikidata.
Usage
{{Main Page/Frame | color = 069 | title = The title of this frame | content = * Bullet 1 * Bullet 2 * Bullet 3 }}
Syntax
- color
- This changes the title box background color. Default: 888 (gray).
- title
- The title of this frame in your language.
- content
- The title of this frame in your language. Additional tags <div></div> are set by the template and not needed in the inclusion.
Styling
Most of the frame is styled inline, but for a responsive design, the styling for the outer div is done in Mediawiki:Common.css so we can handle media queries a bit better.
The above documentation is transcluded from Template:Main Page/Frame/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |