Difference between revisions of "Template:Frame"

From PlantUse English
Jump to: navigation, search
Line 1: Line 1:
<includeonly><div style="text-align:Left; border:1px solid {{{color}}}; background:transparent; border-radius:10px;padding:0.5em; margin-bottom:1em;"> {{#if:{{{image1|}}}|[[Image:{{{image1|HSutvald2.svg}}}|left|{{{size|70px}}}|{{#if:{{{lien1|}}}|link={{{lien1}}} }}]]}}{{#if:{{{image2|}}}|[[Image:{{{image2|HSutvald2.svg}}}|right|{{{size|70px}}}|{{#if:{{{lien2|}}}|link={{{lien2}}} }}]]}}{{#if:{{{title|}}}|<div style="text-align:Center; position:relative; left:2px; top:2px; margin:1;"><h1><b>{{{title}}}</b></h1>
+
<includeonly><div style="width:{{{width|100}}}%; margin:0px auto;text-align:Left; border:1px solid {{{couleur}}}; background:{{{bgcol|transparent}}}; border-radius:10px;padding:0.5em; margin-bottom:1em;"> {{#if:{{{image1|}}}|[[Image:{{{image1|HSutvald2.svg}}}|left|{{{size|70px}}}|{{#if:{{{link2|}}}|link={{{link1}}} }}]]}}{{#if:{{{image2|}}}|[[Image:{{{image2|HSutvald2.svg}}}|right|{{{size|70px}}}|{{#if:{{{link2|}}}|link={{{link2}}} }}]]}}{{#if:{{{title|}}}|<div style="text-align:Center; position:relative; left:2px; top:2px; margin:1;"><h1><b>{{{titre}}}</b></h1>
</div><div style="text-align:Center; padding:1em; ">|}}<div>{{{content}}}</div>{{#if:{{{title|}}}|</div>|}}</div></includeonly><noinclude>
+
</div><div style="text-align:Center; padding:1em; ">|}}{{{content}}}{{#if:{{{titre|}}}|</div>|}}</div></includeonly><noinclude>
  
 
== Parameters ==
 
== Parameters ==
Line 9: Line 9:
 
* size : size for both icons (optional) 70px by default
 
* size : size for both icons (optional) 70px by default
 
* content : (mandatory)
 
* content : (mandatory)
 +
* width : (optional)
 +
* bgcol : (optional)
 +
* link1 : (optional) link on image1
 +
* link2 : (optional) link on image2
  
 
== Exemples ==
 
== Exemples ==

Revision as of 13:06, 29 June 2011


Parameters

  • color : optional; define border color default is transparent
  • title : make the frame a title one (optional)
  • image1 : left icon (optional)
  • image2 : right icon (optional)
  • size : size for both icons (optional) 70px by default
  • content : (mandatory)
  • width : (optional)
  • bgcol : (optional)
  • link1 : (optional) link on image1
  • link2 : (optional) link on image2

Exemples

{{Frame
|color = green
|title = The shmilblick is an egg
|image1 = Crystal Clear app starthere.png
|content = It is yellow and can be added to child's baby bottle
}}
gives :
Crystal Clear app starthere.png

The shmilblick is an egg

It is yellow and can be added to child's baby bottle
{{Frame
|image2 = HSutvald2.svg
|size = 20px
|color = yellow
|content = I though of french fries
}}
gives :
HSutvald2.svg
I though of french fries