Difference between revisions of "Template:Itembox"
Jump to navigation
Jump to search
m |
m (Added cat, image is now optional.) |
||
(11 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <div class="tile-halves" style="flex: 0;"> | + | <div class="tile-halves" style="flex: 0; margin-bottom: 10px;"> |
− | <div class="tile-top tile-image-std">[[{{{title}}}|<img src="{{{image}}}" alt="" height="200px;" width="auto">]]</div> | + | <div class="tile-top tile-image-std">{{#if: {{{image|}}}| [[{{{title}}}|<img src="{{{image}}}" alt="" height="200px;" width="auto">]]| {{img|{{{title}}}|"auto"|"200px;"}}}}</div> |
<div class="tile-bottom link-button"> | <div class="tile-bottom link-button"> | ||
− | <p>[[{{{title}}}]]</p> | + | <p style="font-style: bold;">[[{{{title}}}]]</p> |
</div> | </div> | ||
+ | {{#if: {{{text|}}}| | ||
+ | <p style="text-align: center; font-style: italic; padding: 0 15px 0 15px;">- <br>{{{text}}}</p> | ||
+ | |}} | ||
</div> | </div> | ||
− | |||
<noinclude> | <noinclude> | ||
====Usage==== | ====Usage==== | ||
− | <nowiki><div class="tile-row"></nowiki> | + | <nowiki><div class="mainpage-contents tile-row"></nowiki> |
<nowiki>{{Itembox</nowiki> | <nowiki>{{Itembox</nowiki> | ||
− | + | |title = | |
− | + | |image = optional | |
+ | |text = optional | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
+ | |||
+ | //another Itembox could go here.. | ||
<nowiki></div></nowiki> | <nowiki></div></nowiki> | ||
+ | [[Category:Template]] | ||
</noinclude> | </noinclude> |
Latest revision as of 13:38, 7 February 2022
{{{title}}}
Usage
<div class="mainpage-contents tile-row"> {{Itembox |title = |image = optional |text = optional }} //another Itembox could go here.. </div>