Difference between revisions of "Template:Structure"

From The Twilight Forest Wiki
Jump to navigation Jump to search
(Update to modern template variants)
Line 1: Line 1:
<includeonly>{| class="wikitable" style="float:right; margin-left: 100px;"
<includeonly>{| class="wikitable" id="structureInfobox" style="float:right; margin-left: 100px;"
!colspan="2" style="font-size: 1.4em;"|{{{name| {{BASEPAGENAME}} }}}
!colspan="2" style="font-size: 1.4em;"|{{{name| {{BASEPAGENAME}} }}}


|-
|-
|colspan="2" style="background-color: #222"|[[File:{{{image|!}}}.png|link=|center|320px]]
|colspan="2" style="background-color: #222"|[[File:{{{image|Unknown}}}.png|link=|center|320px]]


|-
|-
Line 25: Line 25:
|{{{id|}}}
|{{{id|}}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
 
This template is used to make a nice table for anything relating to Structures and their related pages. <br>
Usage:
Here is a general breakdown of how to use this template:
<pre>
<pre>
{{Structure
{{Structure
|name= (optional, defaults to the article's title)
|name=   <!-- The Name of this Structure (Optional) -->
|image= (filelink)
|image= <!-- The Image File of this Structure      -->
|biome= (where the structure can spawn. will be autolinked)
|biome= <!-- Where this Structure can be found    -->
|blocks= (what it is built from, use <br> please and start with TF blocks)
|blocks= <!-- What is this Structure made of?      -->
|boss= (the "boss" of the structure and is used for the Map Icon. will be autolinked)
|boss=   <!-- Who is the Boss of the Structure?    -->
|id= (in-game id)
|id=     <!-- The ID of the Structure              -->
}}
}}


OPTIONAL VARIABLES:
OPTIONAL VARIABLES (Needs Links!!):
|biomes= (an alternative to "biome=" for when structures can spawn in varying biomes. will not be autolinked)
|biomes= <!-- Override of "biome=" used for Multiple Structure Locations -->
|mob= (an alternate to "boss=" that will not be used with for the map icon. will not be autolinked)
|mob=   <!-- Override of "boss=" used for Non-Boss specific Structures -->
|icon= (the map icon override. use this if the page name or structure name and map icon do not match properly. will be autolinked to "Magic Map")
|icon=   <!-- Additive to "mob="  used to override the Magic Map's Icon -->
</pre>
</pre>


{{Structure
{{Structure
|style=
|name=Aurora Palace
|name=Aurora Palace
|image=Aurora Palace
|image=Aurora Palace

Revision as of 11:55, 21 February 2024

This template is used to make a nice table for anything relating to Structures and their related pages.
Here is a general breakdown of how to use this template:

{{Structure
|name=   <!-- The Name of this Structure (Optional) -->
|image=  <!-- The Image File of this Structure      -->
|biome=  <!-- Where this Structure can be found     -->
|blocks= <!-- What is this Structure made of?       -->
|boss=   <!-- Who is the Boss of the Structure?     -->
|id=     <!-- The ID of the Structure               -->
}}

OPTIONAL VARIABLES (Needs Links!!):
|biomes= <!-- Override of "biome=" used for Multiple Structure Locations -->
|mob=    <!-- Override of "boss="  used for Non-Boss specific Structures -->
|icon=   <!-- Additive to "mob="   used to override the Magic Map's Icon -->
Aurora Palace
Aurora Palace.png
Biome Glacier
Consists of Aurora Blocks
Boss Snow Queen
Map Icon Aurora Palace Icon.png
ID aurora_palace