Template:Event Infobox: Difference between revisions

From Tiny Rogues Wiki
(Updated floor category to display whether the event is found on the alternate or normal floor.)
No edit summary
 
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#cargo_declare:_table=Event_Infobox
{{#cargo_declare:_table=Event_Infobox
  |Floor = Integer
  |Floor = String
  |IsAlternateFloor = Boolean
  |IsAlternateFloor = Boolean
  |Image = File
  |Image = Wikitext
  |Description= Wikitext
  |Description= Wikitext
}}
}}
</noinclude>
</noinclude>
<includeonly>
<includeonly>
{{#cargo_store:_table=Event_Infobox}}
{{#cargo_store:_table=Event_Infobox}}<infobox>
<infobox>
   <title source="name">
   <title source="name">
     <default><center><p style="height:5pxfont-size: 0.8em;">
     <default><center><p style="height:5pxfont-size: 0.8em;">
Line 15: Line 14:
     </default>
     </default>
   </title>
   </title>
  <image source="Image"><default>{{Image}}</default></image>
  <image source="Image"><default>[[File:{{Image}}.png]]</default></image>
   <group>
   <group>
    <header><center>Event Information</center></header>
     <data source="Floor"><label><span style="color:#82838e; font-weight:bold">Floor:</span></label><format>{{#switch: {{{IsAlternateFloor}}} | 0 = {{{Floor}}} - World 1 | 1 = {{{Floor}}} - World 2 | #default = {{{Floor}}} }}</format></data>
     <data source="Floor"><label>Floor</label><format>{{#switch: {{{IsAlternateFloor}}} | 0 = {{{Floor}}} - Normal | 1 = {{{Floor}}} - Alternate | #default = {{{Floor}}} }} </format></data>
     <data source="Description"><label><span style="color:#82838e; font-weight:bold">Description:</span></label><format><p style="padding-top:10px; padding-bottom:10px">{{{Description}}}</p></format></data>
     <data source="Description"><label>Description</label></data>
   </group></infobox>[[Category:Events]]</includeonly>
   </group>
</infobox>

Latest revision as of 21:24, 2 February 2024

This template defines the table "Event_Infobox". View table.