Difference between revisions of "Template:Itembox"

From Idlescape Wiki
Jump to navigation Jump to search
m
m (Added cat, image is now optional.)
 
(3 intermediate revisions by one other user not shown)
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>
 
     </div>
 
     </div>
 
{{#if: {{{text|}}}|
 
{{#if: {{{text|}}}|
<p style="text-align: center; font-style: italic; padding: 0 15px 0 15px;">{{{text}}}</p>
+
<p style="text-align: center; font-style: italic; padding: 0 15px 0 15px;">- <br>{{{text}}}</p>
 
|}}
 
|}}
 
</div>
 
</div>
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>