Difference between revisions of "Template:Itembox"

From Idlescape Wiki
Jump to navigation Jump to search
(Created page with "<div class="tile-halves" style="flex: 0;"> <div class="tile-top tile-image-std">[[{{{title}}}|<img src="{{{image}}}" alt="" height="200px;" width="auto">]]</div> <div...")
 
m (Added cat, image is now optional.)
 
(12 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 =
+
  |title =
|image =
+
  |image = optional
<nowiki>}}</nowiki>
+
  |text = optional
<nowiki></div></nowiki>
+
  <nowiki>}}</nowiki>
 +
 +
  //another Itembox could go here..
 +
<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>