Template:Frame: Difference between revisions

From Pl@ntUse
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
</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; ">|}}<div>{{{content}}}</div>{{#if:{{{title|}}}|</div>|}}</div></includeonly><noinclude>


== Paramètres ==
== Parameters ==
* color : obligatoire; defini la couleur de la bordure (sinon c'est transparent)
* color : optional; define border color default is transparent
* title : title du cadre (facultatif)
* title : make the frame a title one (optional)
* image1 : icône de gauche, uniquement si "title" est renseigné (facultatif)
* image1 : left icon (optional)
* image2 : icône de droite, uniquement si "title" est renseigné (facultatif)
* image2 : right icon (optional)
* size :  
* size : size for both icons (optional) 70px by default
* content : (obligatoire)
* content : (mandatory)


== Exemples ==
== Exemples ==
Line 14: Line 14:
{{Frame
{{Frame
|color = green
|color = green
|title = Le shmilblick est un oeuf
|title = The shmilblick is an egg
|image1 = Crystal Clear app starthere.png
|image1 = Crystal Clear app starthere.png
|content = bah oui c'est jaune et on peut pas le mettre dans le biberon des enfants
|content = It is yellow and can be added to child's baby bottle
}}</nowiki> donnera : <br>
}}</nowiki> gives : <br>
{{Frame
{{Frame
|color = green
|color = green
|title = Le shmilblick est un oeuf
|title = The shmilblick is an egg
|image1 = Crystal Clear app starthere.png
|image1 = Crystal Clear app starthere.png
|content = bah oui c'est jaune et on peut pas le mettre dans le biberon des enfants
|content = It is yellow and can be added to child's baby bottle
}}
}}
<nowiki>
<nowiki>
Line 29: Line 29:
|size = 20px
|size = 20px
|color = yellow
|color = yellow
|content = je pensais a des frites une fois
|content = I though of french fries
}}
}}
</nowiki> donnera : <br>
</nowiki> gives : <br>
{{Cadre
{{Cadre
|image2 = HSutvald2.svg
|image2 = HSutvald2.svg
|size = 20px
|size = 20px
|color = yellow
|color = yellow
|content = je pensais a des frites une fois
|content = I though of french fries
}}
}}



Revision as of 09:45, 11 May 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)

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 :

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 :
Template:Cadre