Difference between revisions of "Template:Infobox"

From Salem Wiki
Jump to: navigation, search
m (displaying a placeholder image when requested image does not exist, and making the image link to the requested image-page)
m
 
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude><!-- Lets see what type we're going to generate
+
<onlyinclude>__SHOWFACTBOX__<!--
-->{{#switch: {{{type|auto}}}
 
| 1 = <!--
 
-->{{#if: {{{nocat|}}} |
 
| [[Category:Content|{{PAGENAME}}]]<!--
 
-->[[Category:Objects|{{PAGENAME}}]]
 
}}<!--
 
-->{{infobox/header old
 
|page={{PAGENAME}}
 
|name={{{name|}}}
 
|icon={{{icon|}}}
 
|caption={{{caption|}}}
 
|image={{{image|}}}
 
|inlineTheme={{{inlineTheme|yes}}}
 
|inlineThemeBorderColor={{{inlineThemeBorderColor|#3366CC}}}
 
|inlineThemeColor1={{{inlineThemeColor1|black}}}
 
|inlineThemeColor2={{{inlineThemeColor2|white}}}
 
|inlineThemeBkgColor1={{{inlineThemeBkgColor1|gray}}}
 
|inlineThemeBkgColor2={{{inlineThemeBkgColor2|}}}
 
|inlineThemeBkgColor3={{{inlineThemeBkgColor3|#527acc}}}
 
}}{{infobox/structure
 
|skillreq={{{skillreq|}}}
 
|objectsreq={{{objectsreq|}}}
 
|reqby={{{reqby|}}}
 
|repwith={{{repwith|}}}
 
|lift={{{lift|}}}
 
|hp={{{hp|}}}
 
|soak={{{soak|}}}
 
|inlineTheme={{{inlineTheme|yes}}}
 
|inlineThemeColor2={{{inlineThemeColor2|white}}}
 
|inlineThemeColor3={{{inlineThemeColor3|}}}
 
|inlineThemeBkgColor4={{{inlineThemeBkgColor4|#708fcc}}}
 
|inlineThemeBkgColor6={{{inlineThemeBkgColor6|#8fa3cc;}}}
 
|nocat={{#if: {{{nocat|}}} | {{{nocat}}} | {{#ifeq: {{NAMESPACE}} | {{ns:Template}} | 1}} }}
 
}}<!--
 
-->{{infobox/footer old
 
|prev={{#switch: {{{type|}}}
 
| 1 = [[:Category:Structures|Structures]]
 
}}
 
|inlineTheme={{{inlineTheme|yes}}}
 
|inlineThemeBkgColor5={{{inlineThemeBkgColor5|#aaaaaa}}}
 
}}
 
| #default=<!--
 
**********************************************************
 
From here on is the new-code for the auto-info Infobox...
 
**********************************************************
 
-->__SHOWFACTBOX__<!--
 
 
-->{{#set:isGameMenu=n}}<!--
 
-->{{#set:isGameMenu=n}}<!--
--><table border="0" cellspacing="1px" cellpadding="5px" frame="box" class="Infobox" {{
+
--><table border="0" cellspacing="1px" cellpadding="5px" frame="box" class="Infobox"><!--
#ifeq: {{{inlineTheme|yes}}} | yes
 
| style="min-width:250px; font-size:89%; color:{{
 
#if: {{{inlineThemeColor1|}}}
 
| {{{inlineThemeColor1}}}
 
| black
 
}}; background-color:{{
 
#if: {{{inlineThemeBkgColor1|}}}
 
| {{{inlineThemeBkgColor1}}}
 
| gray
 
}}; border:5px solid {{
 
#if: {{{inlineThemeBorderColor|}}}
 
| {{{inlineThemeBorderColor}}}
 
| #3366CC
 
}}; border-radius:20px; float:right;"
 
}}><!--
 
 
*** HEADER ***
 
*** HEADER ***
--><tr {{#ifeq: {{{inlineTheme|yes}}} | yes
+
--><tr class="IBheader"><!--
| style="background-color:{{
+
--><th colspan="2"><!--
#if: {{{inlineThemeBkgColor2|}}}
+
-->[[Image:Unknown Item icon.png|12px|right|link=Help:Infobox|<span style="cursor:help;">Help on usage of this Infobox</span>]]<!--
| {{{inlineThemeBkgColor2}}}
+
--><div>{{#titleparts:{{{page|{{PAGENAME}} }}} ||-1}}</div><!--
| {{#if: {{{inlineThemeBorderColor|}}}
 
| {{{inlineThemeBorderColor}}}
 
| #3366CC
 
}}
 
}};"
 
}}><!--
 
--><th colspan="2" {{
 
#ifeq: {{{inlineTheme|yes}}} | yes
 
| style="font-size:150%; padding:0.5em;"
 
}}><!--
 
--><div {{#ifeq: {{{inlineTheme|yes}}} | yes
 
| style="color:{{
 
#if: {{{inlineThemeColor2|}}}
 
| {{{inlineThemeColor2}}}
 
| white
 
}};"
 
}}>{{#titleparts:{{{page|{{PAGENAME}} }}} ||-1}}<!--
 
--></div><!--
 
 
--></th><!--
 
--></th><!--
 
--></tr><!--
 
--></tr><!--
 
*** BODY ***
 
*** BODY ***
 
*** IMAGE's + CAPTION ***
 
*** IMAGE's + CAPTION ***
--><tr {{#ifeq: {{{inlineTheme|yes}}} | yes
+
--><tr class="IBintro"><!--
| style="background-color:{{
+
--><td colspan="2"><!--
#if: {{{inlineThemeBkgColor3|}}}
 
| {{{inlineThemeBkgColor3}}}
 
| #527acc
 
}}; text-align:center;"
 
}}><!--
 
--><td colspan="2" {{#ifeq: {{{inlineTheme|yes}}} | yes
 
| style=""
 
}}><!--
 
 
*** ICON ***
 
*** ICON ***
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|Has icon}}
+
-->{{PropVals/getIcon|{{{page|{{FULLPAGENAME}} }}} }}<!--
| [[{{ #ifexist: {{
 
#show: {{{page|{{FULLPAGENAME}} }}}
 
|?Has icon
 
|link=none
 
}}
 
| {{ #show: {{{page|{{FULLPAGENAME}} }}}
 
|?Has icon
 
|link=none
 
}}
 
| Image:Unknown Item icon.png{{!}}link=:{{
 
#show: {{{page|{{FULLPAGENAME}} }}}
 
|?Has icon
 
|link=none
 
}}{{!}}No image found, click to upload
 
}}]]
 
| [[Image:Unknown Item icon.png{{!}}link=:Image:{{#titleparts:{{{page|{{PAGENAME}} }}} ||-1}} icon.png{{!}}No image found, click to upload]]
 
}}<!--
 
 
*** CAPTION ***
 
*** CAPTION ***
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|Caption}}
+
--><div class="IBcaption">{{
| <br/>''{{#show: {{{page|{{FULLPAGENAME}} }}}
+
#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|Caption}}
|?Caption
+
| &ldquo;{{#show: {{{page|{{FULLPAGENAME}} }}} |?Caption}}&rdquo;
}}''
+
}}</div><!--
}}<!--
 
 
*** FULLVIEW ****
 
*** FULLVIEW ****
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|Has fullview}}
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|Has fullview}}
| <br/>[[{{ #ifexist: {{
+
| [[{{ #ifexist: {{
 
#show: {{{page|{{FULLPAGENAME}} }}}
 
#show: {{{page|{{FULLPAGENAME}} }}}
 
|?Has fullview
 
|?Has fullview
Line 148: Line 43:
 
*** RequiresTech ***
 
*** RequiresTech ***
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|RequiresTech}}
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|RequiresTech}}
| <tr {{#ifeq: {{{inlineTheme|yes}}} | yes
+
| <tr class="IBinfo"><!--
| style="background-color:{{
+
--><td class="IBleft"><!--
#if: {{{inlineThemeBkgColor4|}}}
+
-->[[:Category:Skills|Technology]] Required:<!--
| {{{inlineThemeBkgColor4}}}
 
| #8fa3cc
 
}};"
 
}}><!--
 
--><td style="text-align:right; font-weight:bold;"><!--
 
-->[[:Category:Skills|Skill(s)]] Required:<!--
 
 
--></td><!--
 
--></td><!--
--><td style="text-align:left;"><!--
+
--><td class="IBright"><!--
 
-->{{PropVals
 
-->{{PropVals
 
|prop=RequiresTech
 
|prop=RequiresTech
Line 168: Line 57:
 
*** UnlocksTech ***
 
*** UnlocksTech ***
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|UnlocksTech}}
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|UnlocksTech}}
| <tr {{#ifeq: {{{inlineTheme|yes}}} | yes
+
| <tr class="IBinfo"><!--
| style="background-color:{{
+
--><td class="IBleft"><!--
#if: {{{inlineThemeBkgColor4|}}}
+
-->[[:Category:Skills|Technology]] Unlocked:<!--
| {{{inlineThemeBkgColor4}}}
 
| #8fa3cc
 
}};"
 
}}><!--
 
--><td style="text-align:right; font-weight:bold;"><!--
 
-->[[:Category:Skills|Skill(s)]] Unlocked:<!--
 
 
--></td><!--
 
--></td><!--
--><td style="text-align:left;"><!--
+
--><td class="IBright"><!--
 
-->{{PropVals
 
-->{{PropVals
 
|prop=UnlocksTech
 
|prop=UnlocksTech
Line 188: Line 71:
 
*** RequiresObj ***
 
*** RequiresObj ***
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|RequiresObj}}
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|RequiresObj}}
| <tr {{#ifeq: {{{inlineTheme|yes}}} | yes
+
| <tr class="IBinfo"><!--
| style="background-color:{{
+
--><td class="IBleft">[[:Category:Objects|Object(s)]] Required:</td><!--
#if: {{{inlineThemeBkgColor4|}}}
+
--><td class="IBright"><!--
| {{{inlineThemeBkgColor4}}}
 
| #8fa3cc
 
}};"
 
}}><!--
 
--><td style="text-align:right; font-weight:bold;"><!--
 
-->[[:Category:Objects|Object(s)]] Required:<!--
 
--></td><!--
 
--><td style="text-align:left;"><!--
 
 
-->{{PropVals
 
-->{{PropVals
 
|prop=RequiresObj
 
|prop=RequiresObj
Line 204: Line 79:
 
|showamount=y
 
|showamount=y
 
}}<!--
 
}}<!--
--></td><!--
 
--></tr>
 
}}<!--
 
*** Required By ***
 
-->{{#if:
 
| <tr {{#ifeq: {{{inlineTheme|yes}}} | yes
 
| style="background-color:{{
 
#if: {{{inlineThemeBkgColor4|}}}
 
| {{{inlineThemeBkgColor4}}}
 
| #8fa3cc
 
}};"
 
}}><!--
 
--><td style="text-align:right; font-weight:bold;"><!--
 
-->Required By:<!--
 
--></td><!--
 
--><td style="text-align:left;"><!--
 
--><!--
 
 
--></td><!--
 
--></td><!--
 
--></tr>
 
--></tr>
Line 226: Line 84:
 
*** RepairedWith ***
 
*** RepairedWith ***
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|RepairedWith}}
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|RepairedWith}}
| <tr {{#ifeq: {{{inlineTheme|yes}}} | yes
+
| <tr class="IBinfo"><!--
| style="background-color:{{
+
--><td class="IBleft">Repaired With:</td><!--
#if: {{{inlineThemeBkgColor4|}}}
+
--><td class="IBright"><!--
| {{{inlineThemeBkgColor4}}}
 
| #8fa3cc
 
}};"
 
}}><!--
 
--><td style="text-align:right; font-weight:bold;"><!--
 
-->Repaired With:<!--
 
--></td><!--
 
--><td style="text-align:left;"><!--
 
 
-->{{PropVals
 
-->{{PropVals
 
|prop=RepairedWith
 
|prop=RepairedWith
Line 246: Line 96:
 
*** Separator for: IsLiftable/IsLiftableWhenEmpty/HP/Soak ***
 
*** Separator for: IsLiftable/IsLiftableWhenEmpty/HP/Soak ***
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|IsLiftable}}{{HasProp|page={{{page|{{FULLPAGENAME}} }}}|IsLiftableWhenEmpty}}{{HasProp|page={{{page|{{FULLPAGENAME}} }}}|HP}}{{HasProp|page={{{page|{{FULLPAGENAME}} }}}|Soak}}
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|IsLiftable}}{{HasProp|page={{{page|{{FULLPAGENAME}} }}}|IsLiftableWhenEmpty}}{{HasProp|page={{{page|{{FULLPAGENAME}} }}}|HP}}{{HasProp|page={{{page|{{FULLPAGENAME}} }}}|Soak}}
| <tr {{#ifeq: {{{inlineTheme|yes}}} | yes
+
| <tr class="IBsep"><!--
| style="background-color:{{
+
--><td colspan="2"></td><!--
#if: {{{inlineThemeBkgColor3|}}}
 
| {{{inlineThemeBkgColor3}}}
 
| #527acc
 
}};"
 
}}><!--
 
--><td colspan="2" style="padding:2px;"></td><!--
 
 
--></tr>
 
--></tr>
 
}}<!--
 
}}<!--
 
*** IsLiftable/IsLiftableWhenEmpty ***
 
*** IsLiftable/IsLiftableWhenEmpty ***
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|IsLiftable}}{{HasProp|page={{{page|{{FULLPAGENAME}} }}}|IsLiftableWhenEmpty}}
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|IsLiftable}}{{HasProp|page={{{page|{{FULLPAGENAME}} }}}|IsLiftableWhenEmpty}}
| <tr {{#ifeq: {{{inlineTheme|yes}}} | yes
+
| <tr class="IBinfo"><!--
| style="background-color:{{
+
--><td class="IBleft">Liftable?</td><!--
#if: {{{inlineThemeBkgColor4|}}}
+
--><td class="IBrightC"><!--
| {{{inlineThemeBkgColor4}}}
 
| #8fa3cc
 
}};"
 
}}><!--
 
--><td style="text-align:right; font-weight:bold;"><!--
 
-->Liftable?<!--
 
--></td><!--
 
--><td style="text-align:center;"><!--
 
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|IsLiftableWhenEmpty}}
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|IsLiftableWhenEmpty}}
 
| {{#ifeq: true | {{#show: {{{page|{{FULLPAGENAME}} }}} |?IsLiftableWhenEmpty |link=none}}
 
| {{#ifeq: true | {{#show: {{{page|{{FULLPAGENAME}} }}} |?IsLiftableWhenEmpty |link=none}}
Line 277: Line 113:
 
| No
 
| No
 
}}
 
}}
 +
}}<!--
 +
--></td><!--
 +
--></tr>
 +
}}<!--
 +
*** Locations ***
 +
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|Locations}}
 +
| <tr class="IBinfo"><!--
 +
--><td class="IBleft">[[Terrain|Location]]s found:</td><!--
 +
--><td class="IBright"><!--
 +
-->{{List Locations
 +
|page={{{page|{{FULLPAGENAME}} }}}
 
}}<!--
 
}}<!--
 
--></td><!--
 
--></td><!--
Line 283: Line 130:
 
*** HP ***
 
*** HP ***
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|HP}}
 
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|HP}}
| <tr {{#ifeq: {{{inlineTheme|yes}}} | yes
+
| <tr class="IBinfo"><!--
| style="background-color:{{
+
--><td class="IBleft">[[Structure Damage|Hit Points]]:</td><!--
#if: {{{inlineThemeBkgColor4|}}}
+
--><td class="IBrightC"><!--
| {{{inlineThemeBkgColor4}}}
 
| #8fa3cc
 
}};"
 
}}><!--
 
--><td style="text-align:right; font-weight:bold;"><!--
 
-->[[Structure Damage|Hit Points]]:<!--
 
--></td><!--
 
--><td style="text-align:center;"><!--
 
 
-->{{#ifeq: 0 | {{#show: {{{page|{{FULLPAGENAME}} }}} |?HP |link=none}}
 
-->{{#ifeq: 0 | {{#show: {{{page|{{FULLPAGENAME}} }}} |?HP |link=none}}
 
| Still unknown
 
| Still unknown
Line 302: Line 141:
 
}}<!--
 
}}<!--
 
*** Soak ***
 
*** Soak ***
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|HP}}
+
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|Soak}}
| <tr {{#ifeq: {{{inlineTheme|yes}}} | yes
+
| <tr class="IBinfo"><!--
| style="background-color:{{
+
--><td class="IBleft">[[Soak]] Value:</td><!--
#if: {{{inlineThemeBkgColor4|}}}
+
--><td class="IBrightC"><!--
| {{{inlineThemeBkgColor4}}}
 
| #8fa3cc
 
}};"
 
}}><!--
 
--><td style="text-align:right; font-weight:bold;"><!--
 
-->[[Soak]] Value:<!--
 
--></td><!--
 
--><td style="text-align:center;"><!--
 
 
-->{{#ifeq: 0 | {{#show: {{{page|{{FULLPAGENAME}} }}} |?Soak |link=none}}
 
-->{{#ifeq: 0 | {{#show: {{{page|{{FULLPAGENAME}} }}} |?Soak |link=none}}
 
| Still unknown
 
| Still unknown
Line 319: Line 150:
 
}}<!--
 
}}<!--
 
--></td><!--
 
--></td><!--
 +
--></tr>
 +
}}<!--
 +
*** Loot ***
 +
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|Loot}}
 +
| <tr class="IBsep"><!--
 +
--><td colspan="2"></td><!--
 +
--></tr><!--
 +
--><tr class="IBinfo"><!--
 +
--><td class="IBleft">Possible [[Loot]]:</td><!--
 +
--><td class="IBright"><!--
 +
-->{{PropVals
 +
|prop=Loot
 +
|page={{{page|{{FULLPAGENAME}} }}}
 +
|showamount=y
 +
}}<!--
 +
--></td><!--
 +
--></tr>
 +
}}<!--
 +
*** Alchemy ***
 +
-->{{#if: {{#show:{{{page|{{FULLPAGENAME}} }}}
 +
|?hebl|?heph|?heyb|?hebb
 +
|?sabl|?saph|?sayb|?sabb
 +
|?mebl|?meph|?meyb|?mebb
 +
|?subl|?suph|?suyb|?subb
 +
|?lebl|?leph|?leyb|?lebb
 +
|link=none|format=list
 +
}}
 +
| <tr class="IBsep"><!--
 +
--><td colspan="2"></td><!--
 +
--></tr><!--
 +
--><tr class="IBinfo"><!--
 +
--><td class="IBboth" colspan="2">{{Infobox/List newAlchemy|page={{{page|{{FULLPAGENAME}} }}} }}</td><!--
 +
--></tr>
 +
}}<!--
 +
*** Skills ***
 +
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|arts}}
 +
| <tr class="IBsep"><!--
 +
--><td colspan="2"></td><!--
 +
--></tr><!--
 +
--><tr class="IBinfo"><!--
 +
--><td class="IBboth" colspan="2">{{Infobox/List Skillvals|page={{{page|{{FULLPAGENAME}} }}} }}</td><!--
 +
--></tr>
 +
}}<!--
 +
*** RequiredBy ***
 +
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|RequiredBy}}
 +
| <tr class="IBsep"><!--
 +
--><td colspan="2"></td><!--
 +
--></tr><!--
 +
--><tr class="IBinfo"><!--
 +
--><td class="IBboth" colspan="2">{{Infobox/List RequiredBys|page={{{page|{{FULLPAGENAME}} }}} |collapsed=y |limit=50 }}</td><!--
 
--></tr>
 
--></tr>
 
}}<!--
 
}}<!--
 
*** FOOTER ***
 
*** FOOTER ***
--><tr {{#ifeq: {{{inlineTheme|yes}}} | yes
+
--><tr class="IBfooter"><!--
| style="background-color:{{
+
--><th colspan="2"><!--
#if: {{{inlineThemeBkgColor5|}}}
+
-->Back to&nbsp;<!--
| {{{inlineThemeBkgColor5}}}
+
*** Only display links to GameMenu when in a menu. ***
| #aaaaaa
+
-->{{#ifeq: no
}};"
+
| {{#if: {{HasProp
}}><!--
+
|page={{{page|{{FULLPAGENAME}} }}}
--><th colspan="2" {{#ifeq: {{{inlineTheme|yes}}} | yes
+
|IsinGameMenu
| style=""
+
}}
}}><!--
+
| {{#ifeq: no
-->Back to [[GameMenu]]<!--
+
| {{#show: {{{page|{{FULLPAGENAME}} }}}
-->{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|IsinGameMenu}}
+
|?IsinGameMenu
| &nbsp;{{#if: {{HasProp
+
|link=none
|page={{#show: {{{page|{{FULLPAGENAME}} }}}
+
}}
|?IsinGameMenu
+
| no
|link=none
+
| yes
 +
}}
 +
| no
 
}}
 
}}
|Has icon
+
| [[:Category:Objects|Objects]]
}}
+
| [[GameMenu]]&nbsp;<!--
| [[{{#show:{{#show: {{{page|{{FULLPAGENAME}} }}}
+
-->{{#if: {{HasProp
 +
|page={{#show: {{{page|{{FULLPAGENAME}} }}}
 +
|?IsinGameMenu
 +
|link=none
 +
}}
 +
|Has icon
 +
}}
 +
| [[{{#show:{{#show: {{{page|{{FULLPAGENAME}} }}}
 
|?IsinGameMenu
 
|?IsinGameMenu
 
|link=none
 
|link=none
 
}}
 
}}
|?Has icon
+
|?Has icon
|link=none
+
|link=none
}}<!--
+
}}<!--
 
-->{{!}}link={{#show: {{{page|{{FULLPAGENAME}} }}}
 
-->{{!}}link={{#show: {{{page|{{FULLPAGENAME}} }}}
 
|?IsinGameMenu
 
|?IsinGameMenu
Line 357: Line 247:
 
}}<!--
 
}}<!--
 
-->]]
 
-->]]
| {{!}}&nbsp;[[{{#show: {{{page|{{FULLPAGENAME}} }}}
+
| {{!}}&nbsp;[[{{#show: {{{page|{{FULLPAGENAME}} }}}
 
|?IsinGameMenu
 
|?IsinGameMenu
 
|link=none
 
|link=none
 
}}]]
 
}}]]
}}
+
}}
 
}}<!--
 
}}<!--
 
--></th><!--
 
--></th><!--
Line 367: Line 257:
 
--></table><!--
 
--></table><!--
 
*** CATEGORIZATION ***
 
*** CATEGORIZATION ***
--><includeonly>
+
--><includeonly>{{#if: {{{nocat|}}} |
[[Category:Content|{{PAGENAME}}]]
+
|<!--
{{#if: {{HasProp|page={{{page|{{FULLPAGENAME}} }}}|IsinGameMenu}}
+
*** All items belong to category 'Content' ***
 +
-->[[Category:Content|{{PAGENAME}}]]<!--
 +
*** Place in category 'Objects' unless in a game-menu, in which case put in that category. ***
 +
-->{{#ifeq: no
 +
| {{#if: {{HasProp
 +
|page={{{page|{{FULLPAGENAME}} }}}
 +
|IsinGameMenu
 +
}}
 +
| {{#ifeq: no
 +
| {{#show: {{{page|{{FULLPAGENAME}} }}}
 +
|?IsinGameMenu
 +
|link=none
 +
}}
 +
| no
 +
| yes
 +
}}
 +
| no
 +
}}
 +
| [[Category:Objects|{{#if: {{{catsort|}}}
 +
| {{{catsort}}}
 +
| Objects
 +
}}]]
 
| [[Category:{{#show: {{{page|{{FULLPAGENAME}} }}}
 
| [[Category:{{#show: {{{page|{{FULLPAGENAME}} }}}
 
|?IsinGameMenu
 
|?IsinGameMenu
 
|link=none
 
|link=none
}}{{!}}{{PAGENAME}}]]
+
}}{{!}}{{#if: {{{catsort|}}}
}}
+
| {{{catsort}}}
</includeonly><!--
+
| {{PAGENAME}}
**********************************************************
+
}}]]
this is for the old-code of Infobox...
+
}}<!--
**********************************************************
+
-->}}</includeonly><!--
-->}}<!--
 
 
--></onlyinclude><noinclude>{{-}}{{documentation}}</noinclude>
 
--></onlyinclude><noinclude>{{-}}{{documentation}}</noinclude>

Latest revision as of 19:28, 13 August 2012

Help on usage of this Infobox
Infobox
No image found, click to upload
Back to Objects



Template documentation (for the template shown above, sometimes hidden or invisible)

Description

This template is used to create an information-box to automatically display different kinds of info, depending on properties set on the page it is displaying this info for.
It relies on properties set using {{SetProp}}.
It uses Infobox/Stylesheet.css as CSS-Stylesheet, which is site-wide included.

Syntax

Type the below code at the top of the page, with values assigned to relevant parameters.
See {{SetProp}} for easy copy&paste code to use on pages.
{{SetProp
|...
}}{{Infobox}}

==About==
The possible named-parameters for {{Infobox}} are:
name description
nocat optional, auto-categorization will be inhibited when used with any non-empty value.
page optional, pagename of item to display info for.
Defaults to {{PAGENAME}} or {{FULLPAGENAME}} when appropriate.
catsort optional, sortkey of page inside category listings.
Defaults to {{PAGENAME}} or something different when appropriate depending on special cases.
See: Sort key

Examples

See the Help:Infobox or test-data pages.

Helper-templates


Visit Template:Infobox/doc to edit this text! (How does this work?)