Template:GraphicalBox: Difference between revisions

From MiiWiki
Jump to navigationJump to search
(Created page with "<includeonly><div style="flex: 1; background: linear-gradient({{{color1|#fff}}}, {{{color2|#b5f5f5}}}); border-radius: 15px; text-align: center; display: flex; flex-wrap: wrap; flex-direction: column; justify-content: center; padding: 5px"> <div>[[File:{{{image|Needed.png}}}|{{{size|x120px}}}|link={{{link|}}}]]</div> <div>{{{text|}}}</div> </div></includeonly><noinclude> {{Doc}}category:Graphic box templates</noinclude>")
 
mNo edit summary
 
Line 1: Line 1:
<includeonly><div style="flex: 1; background: linear-gradient({{{color1|#fff}}}, {{{color2|#b5f5f5}}}); border-radius: 15px; text-align: center; display: flex; flex-wrap: wrap; flex-direction: column; justify-content: center; padding: 5px">
<includeonly><div style="flex: 1; background: linear-gradient({{{color1|#fff}}}, {{{color2|#b5f5f5}}}); border-radius: 15px; text-align: center; display: flex; flex-wrap: wrap; flex-direction: column; justify-content: center; padding: 5px">
<div>[[File:{{{image|Needed.png}}}|{{{size|x120px}}}|link={{{link|}}}]]</div>
<div>{{{image|[[Needed.png|x120px|link=]]}}}</div>
<div>{{{text|}}}</div>
<div>{{{text|}}}</div>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
{{Doc}}[[category:Graphic box templates]]</noinclude>
{{Doc}}[[category:Graphic box templates]]</noinclude>

Latest revision as of 02:21, 22 September 2022


Usage

Use this template with {{GraphicalBoxContainer}}

{{GraphicalBox
|color1 = first color of the box gradient (optional, default #fff)
|color2 = second color of the box gradient (recommended, default #b5f5f5)
|image = image to be displayed in the box (required)
|text = text underneath the image (recommended)
}}