Difference between revisions of "Template:Frame"
From PlantUse English
(add class="frame") |
Maëva Rouxel (Talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>__NOTOC__<div class="frame" style="width:{{{width|100}}}%; margin:0px auto;text-align:Left; border:1px solid {{{color}}}; 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: | + | <includeonly>__NOTOC__<div class="frame" style="width:{{{width|100}}}%; margin:0px auto;text-align:Left; border:1px solid {{{color}}}; 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 class="title"><h1 style="text-align:center;"><b>{{{title}}}</b></h1> |
</div><div style="text-align:Center; padding:1em; ">|}}{{{content}}}{{#if:{{{title|}}}|</div>|}}</div></includeonly><noinclude> | </div><div style="text-align:Center; padding:1em; ">|}}{{{content}}}{{#if:{{{title|}}}|</div>|}}</div></includeonly><noinclude> | ||
Latest revision as of 15:39, 10 May 2016
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 schmilblick 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 |width = 50 |color = yellow |content = I thought of French fries }}gives :