Template:MetaInfoBox: Difference between revisions

Jump to navigation Jump to search
172 bytes removed ,  10:17, 26 August 2014
m
adding variable
No edit summary
m (adding variable)
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
{|class="wikitable" style="width: 250px; float:right;"
__NOTOC__<table class="infobox" cellpadding="2" style="width: {{{width|22em}}};  font-size: 90%; float:right; border: 1px solid #AAAAAA;  margin-left:0.5em; position:relative;">
|bgcolor="{{{imagebgcolor|#cccccc}}}" align="center"|[[File:{{Data|{{PAGENAME}}|img|empty.png}}|50px]]<br>'''{{Data|{{PAGENAME}}|name|Unknown name}}'''
<tr>
|-
<td bgcolor="{{{headerbgcolor|#bbbbbb}}}" align="center" colspan="2">
|bgcolor="{{{headerbgcolor|#bbbbbb}}}" align="center"|<font color="{{{headerfontcolor|#000000}}}">'''Category'''
<font color="{{{headerfontcolor|#000000}}}">'''{{#ifeq:{{Data|{{PAGENAME}}|category|}}||Unknown Category|{{Data|{{PAGENAME}}|category|unknown category}}}}'''</font>
|-
</td>
|align="center"|{{Data|{{PAGENAME}}|category|Unknown category}}
</tr>
|-
<tr>
|bgcolor="{{{headerbgcolor|#bbbbbb}}}" align="center"|<font color="{{{headerfontcolor|#000000}}}">'''Found in'''
<td bgcolor="{{{imagebgcolor|#cccccc}}}" align="center" colspan="2">
|-
{{databar|Data:{{PAGENAME}}|style=position:absolute;top:0;right:0;margin:10px;color:{{{headerfontcolor|#000000}}};|mini=1|brackets=1}}{{#ifexist:Data:{{PAGENAME}}|{{#ifeq:{{Data|{{PAGENAME}}|img|}}|false||[[File:{{Data|{{PAGENAME}}|img|Empty.png}}|{{{imgsize|64px}}}]]}}<br />'''{{Data|{{PAGENAME}}|name|Unknown name}}'''|No Data}}
|align="center"|{{Data|{{PAGENAME}}|found|Unknown location}}
</td>
|-
</tr>{{#ifexist:Data:{{PAGENAME}}|{{#if:{{Data|{{PAGENAME}}|category|}}|{{MetaInfobox/{{Data|{{PAGENAME}}|category|}}|headerbgcolor={{{headerbgcolor|#bbbbbb}}}|headerfontcolor={{{headerfontcolor|#000000}}}|imagebgcolor={{{imagebgcolor|#cccccc}}}}}}}}}
|bgcolor="{{{headerbgcolor|#bbbbbb}}}" align="center"|<font color="{{{headerfontcolor|#000000}}}">'''Used for'''
</table><!--
|-
--><noinclude>
|align="center"|{{Data|{{PAGENAME}}|used|Unknown purpose}}
|-
|bgcolor="{{{headerbgcolor|#bbbbbb}}}" align="center"|<font color="{{{headerfontcolor|#000000}}}">'''Examine'''
|-
|align="center"|{{Data|{{PAGENAME}}|examine|Unknown examine text}}
|-
|bgcolor="{{{headerbgcolor|#bbbbbb}}}" align="center"|<font color="{{{headerfontcolor|#000000}}}">'''Brute damage'''
|-
|align="center"|{{Data|{{PAGENAME}}|brute|Unknown brute damage}}
|-
|bgcolor="{{{headerbgcolor|#bbbbbb}}}" align="center"|<font color="{{{headerfontcolor|#000000}}}">'''Burn damage'''
|-
|align="center"|{{Data|{{PAGENAME}}|burn|Unknown burn damage}}
|}
<noinclude>
This is to be used on pages dedicated to one item only. Excuse the amount of information on the template, it's all temporary and will be refined!!
This is to be used on pages dedicated to one item only. Excuse the amount of information on the template, it's all temporary and will be refined!!


Line 35: Line 20:
'''imagebgcolor''' is the background color of the space behind the image and the item name. this should be a light color as the name is always black.<br>
'''imagebgcolor''' is the background color of the space behind the image and the item name. this should be a light color as the name is always black.<br>
'''img''' is the sprite image, without the "File:" or "Image:" prefix. Eg. "Assistant.png"<br>
'''img''' is the sprite image, without the "File:" or "Image:" prefix. Eg. "Assistant.png"<br>
'''found, examine, burn, brute, used and category''' are self-explanatory.<br>
'''found, examine, burn, brute, used and category, etc etc''' are self-explanatory.<br>


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>
Anonymous user

Navigation menu