Difference between revisions of "Template:Frame"
From PlantUse English
Rémy Doyen (Talk | contribs) |
Rémy Doyen (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | <includeonly><div style="text-align:Left; border:1px solid {{{ | + | <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><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 :
{{Frame |image2 = HSutvald2.svg |size = 20px |color = yellow |content = I though of french fries }}gives :