Difference between revisions of "Template:Infobox"

From Shining Moon Wikipedia
Jump to: navigation, search
 
Line 1: Line 1:
{| class="infobox" style="max-width:400px;"
+
<onlyinclude>{| class="infobox" style="font-size:89%; width:300px; border-color:{{{bc|#efefef}}}; border-style:solid; border-width:{{{bw|2}}}px; background-color:#{{{background_color|FFFFFF}}}; {{#if:{{{text_color|}}}|color:#{{{text_color}}};}}"
! colspan=2 style="background:#B9EAF4;" | {{PAGENAME}}
 
 
|-
 
|-
| colspan=2 style="text-align:center;" | [[Image:{{{image}}}|frameless|300px|link=|caption]]
+
! colspan="2" style="background-color:#{{{header_background_color|3366CC}}}; color:#{{{header_text_color|FFFFFF}}}; font-size:120%; padding:1em;" | {{{Box title|}}}</onlyinclude>
|-
 
! colspan=2 style="background:#B9EAF4;" | Information
 
|-
 
| '''Level Range''': || {{{level}}}
 
|-
 
| '''Type''': || {{{type}}}
 
|-
 
| '''Race(s)''': || {{{race}}}
 
|-
 
| '''Element(s)''': || {{{element}}}
 
|-
 
| '''Map(s)''': || {{{map}}}
 
|} {{#switch: {{{type}}} | field = [[Category:Fields]] | Dungeon = [[Category:Dungeons]] | Instance = [[Category:Instances]] }}<noinclude>
 
==Usage==
 
<pre>
 
{{Infobox Field
 
|level =
 
|type =
 
|race =
 
|element =
 
|map =
 
|image =
 
}}
 
</pre>
 
==Fields==
 
{| class="wikitable"
 
|-
 
! Name !! Description
 
|-
 
| {{rh}} | level || level range of the map, if any
 
|-
 
| {{rh}} | type || Type of location that this is. (Field, Dungeon, Instance)
 
|-
 
| {{rh}} | race || Races of the monsters, if any. Use <nowiki>[[Race-type]]</nowiki> (eg., "<nowiki>[[Demi-Human]]</nowiki>").
 
|-
 
| {{rh}} | element || Elements of the monsters, if any. Use <nowiki>[[Element-type]]</nowiki> (eg., "<nowiki>[[Fire]]</nowiki>").
 
|-
 
| {{rh}} | map || Technical map name(s) of the location. (eg., pay_dun00)
 
|-
 
| {{rh}} | image || The name image to be displayed in the navbox. Must include the file extension (.png, .jpg, etc.) of the image in the name.
 
|}
 
</noinclude>
 
<noinclude>[[Category:Templates]]</noinclude>
 

Latest revision as of 15:37, 12 October 2020