Template:Main page/Leftbox: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
mNo edit summary
m (typo)
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
| style="border-top:2px solid #C6E4F2; border-right:2px solid #C6E4F2; border-radius-:0 1em 0 0; -moz-border-radius:0 1em 0 0; -webkit-border-radius:0 1em 0 0;" | <div style="margin-top:-15px">&nbsp;</div>
| style="border-top:2px solid #C6E4F2; border-right:2px solid #C6E4F2; border-radius-:0 1em 0 0; -moz-border-radius:0 1em 0 0; -webkit-border-radius:0 1em 0 0;" | <div style="margin-top:-15px">&nbsp;</div>
|-
|-
| style="border-left:2px solid #C6E4F2; padding-left:.3em; padding-right:.3em" | {{#if:{{{logo|}}}| [[File:{{{logo|Nuvola apps kalzium.png}}}|{{{px|23}}}px|{{{subtitle|Icoon}}}]]|}}
| style="border-left:2px solid #C6E4F2; padding-left:.3em; padding-right:.3em" | {{#if:{{{logo|}}}| [[File:{{{logo|Nuvola apps kalzium.png}}}|{{{px|23}}}px|{{{subtitle|Icon}}}]]|}}
| class="BGorange2" style="background-color:#DEEEFA; border:2px solid #A0C3E6; border-right:2px solid #C8DEF2; border-radius:0.5em 0 0 0.5em; -moz-border-radius:0.5em 0 0 0.5em; -webkit-border-radius:0.5em 0 0 0.5em; padding-left:0.5em;"|{{#If:{{{link|}}}|<span class="noprint" style="padding:0px 4px 0px 4px; float:right; font-size:80%;"><font style="color:#{{{font_color|BAA68E}}}">[http://nl.wikipedia.org/w/index.php?title={{{link|}}}&action=edit]</font></span>}}
| class="BGorange2" style="background-color:#DEEEFA; border:2px solid #A0C3E6; border-right:2px solid #C8DEF2; border-radius:0.5em 0 0 0.5em; -moz-border-radius:0.5em 0 0 0.5em; -webkit-border-radius:0.5em 0 0 0.5em; padding-left:0.5em;"|{{#If:{{{link|}}}|<span class="noprint" style="padding:0px 4px 0px 4px; float:right; font-size:80%;"><font style="color:#{{{font_color|BAA68E}}}">[http://nl.wikipedia.org/w/index.php?title={{{link|}}}&action=edit]</font></span>}}
'''{{{title|Add title}}}'''
'''{{{title|Add title}}}'''
|-
|-
| colspan="2" {{{attr|}}} style="border:2px solid #C6E4F2; border-top:0; border-radius:0 0 0.5em 0.5em; -moz-border-radius:0 0 0.5em 0.5em; -webkit-border-radius:0 0 0.5em 0.5em; padding:0.2em; padding-top:5px; font-size:{{{font_size|95}}}%;" | <div style="margin-bottom:0px; padding:0.5em; background-color:#FFFFFF; border:1px solid #C6E4F2;">
| colspan="2" {{{attr|}}} style="border:2px solid #C6E4F2; border-top:0; border-radius:0 0 0.5em 0.5em; -moz-border-radius:0 0 0.5em 0.5em; -webkit-border-radius:0 0 0.5em 0.5em; padding:0.2em; padding-top:5px; font-size:{{{font_size|95}}}%;" | <div style="margin-bottom:0px; padding:0.5em; background-color:#FFFFFF; border:1px solid #C6E4F2;">
<div style="padding-bottom:5px; padding-top:2px;" title="{{{title}}}" id="mf-{{{title}}}">
<div style="padding-bottom:5px; padding-top:2px;" title="{{{title|Add title}}}" id="mf-{{{title|}}}">
{{{contents|Add contents}}}<div style="clear:both;"></div></div></div>
{{{contents|Add contents}}}<div style="clear:both;"></div></div></div>
|}
|}<noinclude>
{{Informative template|1=
__NOTOC__
== Goal ==
Use this template when adding another section to middle of the main page and portal pages.
 
== Usage ==
Put this template in the '''sections''' parameter of the {{tl|Main page/Header}} template.  More than one can be used.
 
<span  style="color: #777;"><nowiki>{{</nowiki>Main page/Header
  ...
  <nowiki>|</nowiki> sections =</span>
  <nowiki>{{</nowiki>'''Main page/Leftbox'''
  <nowiki>|</nowiki> title    =
  <nowiki>|</nowiki> contents  =
  <nowiki>|</nowiki> ''logo''      =
  <nowiki>|</nowiki> ''px''        =
  <nowiki>|</nowiki> ''subtitle''  =
  <nowiki>|</nowiki> ''font_size'' =
  <nowiki>|</nowiki> ''attr''      =
  <nowiki>}}</nowiki><span  style="color: #777;">
  ...
<nowiki>}}</nowiki></span>
 
; title:  Mandatory section title.  Will also be be used in a tool tip when hovering the mouse pointer over the section contents.
 
; contents:  Mandatory section contents.
 
; logo:  Optional icon to the left of the section title without a '''File:''' or '''Image:''' prefix.
 
; px:  Optional height of icon in pixels.  Defaults to '''23''' pixels.
 
; subtitle:  Optional text to show when the mouse is over the icon.  Defaults to '''Icon'''.
 
; font_size:  Optional font size in percent to use for the section contents.  Defaults to '''95''' percent.
 
; 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/Rightcolumn}}
* {{tl|Main page/Rightcolumn end}}
 
[[Category:Portal layout templates]]
}}
</noinclude>

Latest revision as of 16:00, 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 middle of the main page and portal pages.

Usage

Put this template in the sections parameter of the {{Main page/Header}} template. More than one can be used.

{{Main page/Header
 ...
 | sections =
 {{Main page/Leftbox
  | title     =
  | contents  =
  | logo      =
  | px        =
  | subtitle  =
  | font_size =
  | attr      =
 }}
 ...
}}
title
Mandatory section title. Will also be be used in a tool tip when hovering the mouse pointer over the section contents.
contents
Mandatory section contents.
logo
Optional icon to the left of the section title without a File: or Image: prefix.
px
Optional height of icon in pixels. Defaults to 23 pixels.
subtitle
Optional text to show when the mouse is over the icon. Defaults to Icon.
font_size
Optional font size in percent to use for the section contents. Defaults to 95 percent.
attr
Optional additional cascading style sheet (CSS) style rules to use on the section contents.

Related templates