Template:Frame: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (12 intermediate revisions by the same user not shown) | |||
| 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:{{{ | <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; ">|}} | </div><div style="text-align:Center; padding:1em; ">|}}{{{content}}}{{#if:{{{title|}}}|</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 == | ||
<nowiki> | <pre><nowiki> | ||
{{Frame | {{Frame | ||
|color = green | |color = green | ||
|title = The | |title = The schmilblick is an egg | ||
|image1 = Crystal Clear app starthere.png | |image1 = Crystal Clear app starthere.png | ||
|content = It is yellow and can be added to child's baby bottle | |content = It is yellow and can be added to child's baby bottle | ||
}}</nowiki> gives : <br> | }}</nowiki></pre> gives : <br> | ||
{{Frame | {{Frame | ||
|color = green | |color = green | ||
| Line 24: | Line 28: | ||
|content = It is yellow and can be added to child's baby bottle | |content = It is yellow and can be added to child's baby bottle | ||
}} | }} | ||
<nowiki> | <pre><nowiki> | ||
{{Frame | {{Frame | ||
|image2 = HSutvald2.svg | |image2 = HSutvald2.svg | ||
|size = 20px | |size = 20px | ||
|width = 50 | |||
|color = yellow | |color = yellow | ||
|content = I | |content = I thought of French fries | ||
}} | }} | ||
</nowiki> gives : <br> | </nowiki></pre> gives : <br> | ||
{{Frame | {{Frame | ||
|image2 = HSutvald2.svg | |image2 = HSutvald2.svg | ||
|size = 20px | |size = 20px | ||
|width = 50 | |||
|color = yellow | |color = yellow | ||
|content = I | |content = I thought of French fries | ||
}} | }} | ||
Latest revision as of 14: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 :

