Template:PortalBox
From MeritBadgeDotOrg
(Difference between revisions)
(sp) |
m (Protected "Template:PortalBox" [edit=sysop:move=sysop]) |
||
| (2 intermediate revisions not shown.) | |||
| Line 1: | Line 1: | ||
{| style="border-collapse: collapse; width:100%" | {| style="border-collapse: collapse; width:100%" | ||
| - | | style="border: 1px solid {{{headerframe-color|#ababab}}}; background:{{{header-bgcolor}}}; color:{{{header-textcolor|#000}}}; padding: {{{headerpadding|0.25}}}em; text-align:center; margin-bottom: 0px;"|<div style=" | + | | style="border: 1px solid {{{headerframe-color|#ababab}}}; background:{{{header-bgcolor}}}; color:{{{header-textcolor|#000}}}; padding: {{{headerpadding|0.25}}}em; text-align:center; margin-bottom: 0px;"|<div style="text-align:left;padding-bottom:0.1em; margin-left:10px; font-weight:bold; color:{{{header-textcolor|#000}}};">{{{headertext}}}</div> |
|- | |- | ||
| style="border: 1px solid {{{contentframe-color|#eeeeee}}}; border-top-width:1px; vertical-align: top;background:{{{content-bgcolor}}}; color:{{{content-textcolor|#000}}}; text-align:left; margin: 0 0 10px; padding-left:1em; padding-right:1em; padding-top:0.3em;"|{{{{{content}}}}}<div style="text-align:right; margin:0.3em 0.2em 0em 0.3em; padding:0.3em 0.2em 0em 0.3em; font-size:smaller"><b>{{{footer|}}}</b></div> | | style="border: 1px solid {{{contentframe-color|#eeeeee}}}; border-top-width:1px; vertical-align: top;background:{{{content-bgcolor}}}; color:{{{content-textcolor|#000}}}; text-align:left; margin: 0 0 10px; padding-left:1em; padding-right:1em; padding-top:0.3em;"|{{{{{content}}}}}<div style="text-align:right; margin:0.3em 0.2em 0em 0.3em; padding:0.3em 0.2em 0em 0.3em; font-size:smaller"><b>{{{footer|}}}</b></div> | ||
Current revision
{{{headertext}}}
|
| {{{{{content}}}}} |
- This documentation is transcluded from Template:PortalBox/doc.
This template may have a sandbox (edit) and testcases for editors to experiment.
Usage
This template is used to cascade into other Templates, seen Example 1 below (as {{PortalBox-blue}}), or can be used alone as in Example 2.
Example 1
The following code:
{{PortalBox-blue
|headertext = The Scout Oath
|content = :Scout Oath
|footer = [[link]]
}}
Will produce:
The Scout Oath
| |||
| The Scout Oath or Promise is a pledge to help our community, our world, and ourselves.
The Scout Oath (or Promise) reads as follows:
|
Example 2
The following code:
{{PortalBox
|headertext = Welcome to... '''WWW.MERITBADGE.ORG''' — ''"Helping Scouts Advance"''
|header-textcolor = black
|header-bgcolor = #cef2e0
|headerframe-color = #a3bfb1
|contentframe-color =
|content-bgcolor = #f5fffa
|content-textcolor = black
|content = User:Scouterdennis/Portal/Main/Intro <!-- MUST be a PAGE for inclusion -->
|footer =
}}
Will produce:
Welcome to... WWW.MERITBADGE.ORG — "Helping Scouts Advance"
|
Scouting is a worldwide youth movement composed of many organizations. Its aim is to develop young people physically, spiritually and mentally so that youth may take a constructive place in society. This is achieved through non-formal education with emphasis on practical activities in the outdoors, the so called Scout method. The Scout Movement was founded in 1907 by Robert Baden-Powell, a retired Lieutenant General in the British Army. He was also at that time a good friend of William Alexander Smith, Founder of the Boys' Brigade. Currently Scouting and Guiding have over 38 million members in 217 countries and territories represented through several different Scouting associations at the international level.
|
Template copy-and-paste
{{PortalBox
|headertext =
|header-textcolor =
|header-bgcolor =
|headerframe-color =
|contentframe-color =
|content-bgcolor =
|content-textcolor =
|content =
|footer =
}}
See also
- {{PortalBox}}
- {{PortalBox-blue}}
- {{PortalBox-green}}
- {{PortalBox-purple}}
- {{PortalBox-tan}}
- {{PortalBox-tan-solid}}
