Difference between revisions of "Template:Itembox"

From Idlescape Wiki
Jump to navigation Jump to search
m
m (Added cat, image is now optional.)
 
Line 1: Line 1:
 
<div class="tile-halves" style="flex: 0; margin-bottom: 10px;">
 
<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 style="font-style: bold;">[[{{{title}}}]]</p>
 
         <p style="font-style: bold;">[[{{{title}}}]]</p>
Line 13: Line 13:
 
   <nowiki>{{Itembox</nowiki>
 
   <nowiki>{{Itembox</nowiki>
 
   |title =
 
   |title =
   |image =
+
   |image = optional
 
   |text = optional
 
   |text = optional
 
   <nowiki>}}</nowiki>
 
   <nowiki>}}</nowiki>
Line 19: Line 19:
 
   //another Itembox could go here..
 
   //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>