Template:Main page/Rightcolumn: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (typo) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{| align=right padding=0 cellspacing=0 width=35% style="background:none"</noinclude> | <noinclude>{| align=right padding=0 cellspacing=0 width=35% style="background:none"</noinclude> | ||
|- | |- | ||
| class="BGorange2" style="text-align:left; font-size:100%; background-color:#DEEEFA; border:2px solid #A0C3E6; font-weight:bold; padding:0 .5em 0em 23px;" | {{{title}}} | | class="BGorange2" style="text-align:left; font-size:100%; background-color:#DEEEFA; border:2px solid #A0C3E6; font-weight:bold; padding:0 .5em 0em 23px;" | {{{title|Add title}}} | ||
|- | |- | ||
| style="font-size:92%; background:#F2F2F2; border:2px solid #C6E4F2; border-top:0; border-bottom:0; padding:0 {{{padding-right|.5em}}} .8em 23px" {{{attr|}}} | | | style="font-size:92%; background:#F2F2F2; border:2px solid #C6E4F2; border-top:0; border-bottom:0; padding:0 {{{padding-right|.5em}}} .8em 23px" {{{attr|}}} | | ||
{{{contents}}} | {{{contents|Add contents}}}<noinclude> | ||
|} | |||
{{-}} | |||
{{Informative template|1= | |||
__NOTOC__ | |||
== Goal == | |||
Use this template when adding another section to the right column of the main page and portal pages. | |||
'''''Note:''' For the last section in the right column, instead use {{tl|Main page/Rightcolumn end}}.'' | |||
== Usage == | |||
<nowiki>{{</nowiki>'''Main page/Rightcolumn end''' | |||
<nowiki>|</nowiki> title = | |||
<nowiki>|</nowiki> contents = | |||
<nowiki>|</nowiki> ''padding-right'' = | |||
<nowiki>|</nowiki> ''attr'' = | |||
<nowiki>}}</nowiki> | |||
Both parameters are mandatory. | |||
; title: Mandatory section heading | |||
; contents: Mandatory section contents | |||
; padding-right: Optional padding between the right border and the contents in a format like <''value''><''unit''>, where ''unit'' is either '''px''', '''em''' or '''%''' Defaults to '''0.5em'''. | |||
; attr: Optional additional cascading style sheet (CSS) style rules to use on the section contents. | |||
== Related templates == | |||
* {{tl|Main page/Header}} | |||
* {{tl|Main page/Languages}} | |||
* {{tl|Main page/Leftbox}} | |||
* {{tl|Main page/Rightcolumn end}} | |||
[[Category:Portal layout templates]] | |||
}} | |||
</noinclude> |
Latest revision as of 15:58, 20 June 2014
Add title |
Add contents |
The following template description is not displayed when the template is inserted in an article.
Goal
Use this template when adding another section to the right column of the main page and portal pages.
Note: For the last section in the right column, instead use {{Main page/Rightcolumn end}}.
Usage
{{Main page/Rightcolumn end | title = | contents = | padding-right = | attr = }}
Both parameters are mandatory.
- title
- Mandatory section heading
- contents
- Mandatory section contents
- padding-right
- Optional padding between the right border and the contents in a format like <value><unit>, where unit is either px, em or % Defaults to 0.5em.
- attr
- Optional additional cascading style sheet (CSS) style rules to use on the section contents.
Related templates