Template:Main page/Header: Difference between revisions

Jump to navigation Jump to search
+ Doc; +-cat: Undocumented templates → Portal layout templates
(Add 8th row)
(+ Doc; +-cat: Undocumented templates → Portal layout templates)
Line 5: Line 5:
| colspan="2" rowspan="2" valign="middle" style="text-align:center; padding:.6em 30px .6em 0; background-color:#DEEEFA; border-top:2px solid #A0C3E6; border-bottom:2px solid #A0C3E6; border-left:2px solid #A0C3E6; border-radius: 1em 0 0 1em;"  |
| colspan="2" rowspan="2" valign="middle" style="text-align:center; padding:.6em 30px .6em 0; background-color:#DEEEFA; border-top:2px solid #A0C3E6; border-bottom:2px solid #A0C3E6; border-left:2px solid #A0C3E6; border-radius: 1em 0 0 1em;"  |
<h1 style="font-size:180%; border:none; margin:0; padding:1">
<h1 style="font-size:180%; border:none; margin:0; padding:1">
'''{{{title}}}'''
'''{{{title|Add title}}}'''
</h1>
</h1>
<div style="position:relative; top:.25em; font-size:100%">{{#if:{{{subtitle|}}}|'''{{{subtitle}}}'''|}}</div>
<div style="position:relative; top:.25em; font-size:100%">{{#if:{{{subtitle|}}}|'''{{{subtitle}}}'''|}}</div>
| rowspan="2" style="padding:0 .6em .6em 23px; font-size:95%; background-color:#E8F0F2; border-top:2px solid #C3DBF1; border-bottom:2px solid #C3DBF1; border-left:2px solid #C3DBF1; border-right:2px solid #E0F1D0;" |
| rowspan="2" style="padding:0 .6em .6em 23px; font-size:95%; background-color:#E8F0F2; border-top:2px solid #C3DBF1; border-bottom:2px solid #C3DBF1; border-left:2px solid #C3DBF1; border-right:2px solid #E0F1D0;" |
{{{rightbox}}}
{{{rightbox|}}}
|-
|-
| style="width:10px; background-repeat:no-repeat; background-position:bottom left; font-size:0; height:10px" |  
| style="width:10px; background-repeat:no-repeat; background-position:bottom left; font-size:0; height:10px" |  
|-
|-
| colspan="2" valign="top" rowspan="30" style="padding:1em 30px 0 0" |  
| colspan="2" valign="top" rowspan="30" style="padding:1em 30px 0 0" |  
<div style="width:100%; margin-bottom:1em; text-align:center; font-size:95%; font-weight:bold"> {{{introduction}}}
<div style="width:100%; margin-bottom:1em; text-align:center; font-size:95%; font-weight:bold"> {{{introduction|}}}
</div>
</div>
{{{sections}}}
{{{sections|}}}
{{#if:{{{rightcolumn1|}}}|
{{#if:{{{rightcolumn1|}}}|
{{!}} style="font-size:90%; background:#F2F2F2; border:2px solid #C6E4F2; border-top:0; border-bottom:1px solid #C6E4F2; padding:.5em .5em .5em 23px" valign="top" {{!}} <div style="z-index:3; position:absolute; float:left; margin-left:-46px">{{{rightcolumn1}}}|
{{!}} style="font-size:90%; background:#F2F2F2; border:2px solid #C6E4F2; border-top:0; border-bottom:1px solid #C6E4F2; padding:.5em .5em .5em 23px" valign="top" {{!}} <div style="z-index:3; position:absolute; float:left; margin-left:-46px">{{{rightcolumn1}}}|
Line 48: Line 48:
{{!}} style="font-size:90%; background:#F2F2F2; border:2px solid #C6E4F2; border-top:0; border-bottom:1px solid #C6E4F2; padding:.5em .5em .5em 23px" valign="top" {{!}} <div style="z-index:3; position:absolute; float:left; margin-left:-46px">{{{rightcolumn8}}}|
{{!}} style="font-size:90%; background:#F2F2F2; border:2px solid #C6E4F2; border-top:0; border-bottom:1px solid #C6E4F2; padding:.5em .5em .5em 23px" valign="top" {{!}} <div style="z-index:3; position:absolute; float:left; margin-left:-46px">{{{rightcolumn8}}}|
}}<noinclude>
}}<noinclude>
|}
{{Informative template|1=
__NOTOC__
== Goal ==
This template is the main template used for the layout of the main page and the portals.


[[Category:Undocumented templates]]
'''''Note:''' Please as well look at the [[main page]] to see how the portal layout templates are used.''
 
== Usage ==
<nowiki>{{</nowiki>'''Main page/Header'''
  <nowiki>|</nowiki> title        =
  <nowiki>|</nowiki> ''subtitle''    =
  <nowiki>|</nowiki> ''rightbox''    =
  <nowiki>|</nowiki> ''introduction'' =
  <nowiki>|</nowiki> ''rightcolumn1'' =
  ...
  <nowiki>|</nowiki> ''rightcolumn8'' =
  <nowiki>|</nowiki> ''sections''    =
<nowiki>}}</nowiki>
 
Only the title is mandatory, though the portal would look a bit odd.
 
; title:  Title of the portal.
 
; subtitle:  Subtitle to be shown below the title.
 
; rightbox:  Contents for the right side of the top bar of the layout.
 
; introduction:  Introductory text to be shown between the top bar and the sections.
 
; rightcolumn(n):  Panes in the right column used as sections for the most used pages, up to 8 panes can be used.
 
; sections:  Sections for the middle of the page using the {{tl|Main page/Leftbox}} template.
 
== Related templates ==
* {{tl|Main page/Languages}}
* {{tl|Main page/Leftbox}}
* {{tl|Main page/Rightcolumn}}
* {{tl|Main page/Rightcolumn end}}
 
}}
 
[[Category:Portal layout templates]]
</noinclude>
</noinclude>

Navigation menu