Template:Infobox: Difference between revisions
mNo edit summary |
No edit summary |
||
(47 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{High Use | {{High Use}}<onlyinclude><includeonly>{{#switch: {{lc:{{{1|}}}}} | ||
| | | interview = {{Cat|Interviews|{{{2|{{PAGENAME}}}}}}} | ||
| product | publication = {{Cat|Products|{{{2|}}}}} | | product | publication = {{Cat|Products|{{{2|{{PAGENAME}}}}}}} | ||
}}</includeonly>{{Box|right|width=258px | }}</includeonly>{{Box|right|width=258px | ||
| title = {{#if: {{{forumpage|}}} | | title = {{#if: {{{forumpage|}}} | ||
Line 13: | Line 13: | ||
| character | group | race | shop owner = infobox-character | | character | group | race | shop owner = infobox-character | ||
| item | collectible | ring | weapon | object = infobox-item | | item | collectible | ring | weapon | object = infobox-item | ||
| event | minigame | secret | skill | song = infobox-knowledge | | event | minigame | secret | skill | song | quest = infobox-knowledge | ||
| interview | member | person | product | publication | game | console | fan game = infobox-nondiegetic | | interview | member | person | product | publication | game | console | fan game = infobox-nondiegetic | ||
}} | }} | ||
Line 20: | Line 20: | ||
| <div class="label">{{Float|center|{{{logo}}}}}</div> | | <div class="label">{{Float|center|{{{logo}}}}}</div> | ||
}}{{#if: {{{boxart|{{{image|}}}}}} | }}{{#if: {{{boxart|{{{image|}}}}}} | ||
| {{Float|center|{{{boxart|{{{image|}}}}}}{{#if: {{{caption|}}}|<br>'' {{{caption}}} ''}}}} | | {{Float|center|{{{boxart|{{{image|}}}}}}{{#if: {{{caption|}}}|<br/>'' {{{caption}}} ''}}}} | ||
}} | }} | ||
<table><!-- | <table class="infotable"><!-- | ||
################################################################################ | ################################################################################ | ||
Line 35: | Line 35: | ||
}}{{#if: {{{gender|}}} | }}{{#if: {{{gender|}}} | ||
| {{Infobox/Row|Gender|{{{gender}}}}} | | {{Infobox/Row|Gender|{{{gender}}}}} | ||
}}{{#if: {{{trial|}}} | |||
| {{Infobox/Row|Trial|{{{trial}}}}} | |||
}}{{#if: {{{occupation|}}} | }}{{#if: {{{occupation|}}} | ||
| {{Infobox/Row|Occupation|{{{occupation}}}}} | | {{Infobox/Row|Occupation|{{{occupation}}}}} | ||
Line 42: | Line 44: | ||
| {{Infobox/Row|Purpose|{{{purpose}}}}} | | {{Infobox/Row|Purpose|{{{purpose}}}}} | ||
}}{{#if: {{{special|}}} | }}{{#if: {{{special|}}} | ||
| {{Infobox/Row|Special<br>Characteristics|{{{special}}}}} | | {{Infobox/Row|Special<br/>Characteristics|{{{special}}}}} | ||
}}{{#if: {{{number|}}} | }}{{#if: {{{number|}}} | ||
| {{Infobox/Row|Number|{{{number}}}}} | | {{Infobox/Row|Number|{{{number}}}}} | ||
Line 53: | Line 55: | ||
| {{Infobox/Row|Attacks|{{{attack}}}}} | | {{Infobox/Row|Attacks|{{{attack}}}}} | ||
}}{{#if: {{{weapon|}}} | }}{{#if: {{{weapon|}}} | ||
| {{Infobox/Row|Effective<br>Weapons|{{{weapon}}}}} | | {{Infobox/Row|Effective<br/>Weapons|{{{weapon}}}}} | ||
}}{{#if: {{{weaponused|}}} | |||
| {{Infobox/Row|Weapons Used|{{{weaponused}}}}} | |||
}}{{#if: {{{element|}}} | |||
| {{Infobox/Row|Element|{{{element}}}}} | |||
}}{{#if: {{{power|}}} | |||
| {{Infobox/Row|Base Power|{{{power}}}}} | |||
}}{{#if: {{{defense|}}} | |||
| {{Infobox/Row|Base Defense|{{{defense}}}}} | |||
}}{{#if: {{{health|}}} | |||
| {{Infobox/Row|Health|{{{health}}}}} | |||
}}{{#if: {{{durability|}}} | |||
| {{Infobox/Row|Base Durability|{{{durability}}}}} | |||
}}{{#if: {{{range|}}} | |||
| {{Infobox/Row|Base Range|{{{range}}}}} | |||
}}{{#if: {{{setbonus|}}} | |||
| {{Infobox/Row|Set Bonus|{{{setbonus}}}}} | |||
}}{{#if: {{{ingredients|}}} | |||
| {{Infobox/Row|Ingredients|{{{ingredients}}}}} | |||
}}<!-- | }}<!-- | ||
Line 60: | Line 80: | ||
| {{Infobox/Row|Games|{{{game}}}}} | | {{Infobox/Row|Games|{{{game}}}}} | ||
}}{{#if: {{{location|}}} | }}{{#if: {{{location|}}} | ||
| {{Infobox/Row|Locations|{{{ | | {{Infobox/Row|Location|{{{location}}}}} | ||
}}{{#if: {{{locations|}}} | |||
| {{Infobox/Row|Locations|{{{locations}}}}} | |||
}}{{#if: {{{dungeon|}}} | }}{{#if: {{{dungeon|}}} | ||
| {{Infobox/Row|Dungeons|{{{dungeon}}}}} | | {{Infobox/Row|Dungeons|{{{dungeon}}}}} | ||
Line 73: | Line 95: | ||
| {{Infobox/Row|Boss|{{{boss}}}}} | | {{Infobox/Row|Boss|{{{boss}}}}} | ||
}}{{#if: {{{miniboss|}}} | }}{{#if: {{{miniboss|}}} | ||
| {{Infobox/Row| | | {{Infobox/Row|Mini-bosses|{{{miniboss}}}}} | ||
}}{{#if: {{{enemies|}}} | }}{{#if: {{{enemies|}}} | ||
| {{Infobox/Row|Enemies|{{{enemies}}}}} | | {{Infobox/Row|Enemies|{{{enemies}}}}} | ||
Line 83: | Line 105: | ||
| {{Infobox/Row|Members|{{{members}}}}} | | {{Infobox/Row|Members|{{{members}}}}} | ||
}}{{#if: {{{pointsint|}}} | }}{{#if: {{{pointsint|}}} | ||
| {{Infobox/Row|Points of<br>Interest|{{{pointsint}}}}} | | {{Infobox/Row|Points of<br/>Interest|{{{pointsint}}}}} | ||
}}{{#if: {{{item|}}} | }}{{#if: {{{item|}}} | ||
| {{Infobox/Row| | | {{Infobox/Row|Items|{{{item}}}}} | ||
}}<!-- | }}<!-- | ||
Line 101: | Line 123: | ||
}}{{#if: {{{rarity|}}} | }}{{#if: {{{rarity|}}} | ||
| {{Infobox/Row|Rarity|{{{rarity}}}}} | | {{Infobox/Row|Rarity|{{{rarity}}}}} | ||
}}{{#if: {{{start|}}} | |||
| {{Infobox/Row|Start|{{{start}}}}} | |||
}}{{#if: {{{objective|}}} | }}{{#if: {{{objective|}}} | ||
| {{Infobox/Row|Objective|{{{objective}}}}} | | {{Infobox/Row|Objective|{{{objective}}}}} | ||
Line 108: | Line 132: | ||
| {{Infobox/Row|Told to|{{{tell}}}|{{{tell-img|}}}}} | | {{Infobox/Row|Told to|{{{tell}}}|{{{tell-img|}}}}} | ||
}}{{#if: {{{reward|}}} | }}{{#if: {{{reward|}}} | ||
| {{Infobox/Row| | | {{Infobox/Row|Rewards|{{{reward}}}|{{{rew-img|}}}}} | ||
}}<!-- | }}<!-- | ||
Line 115: | Line 139: | ||
| {{Infobox/Row|Instrument|{{{instrument}}}}} | | {{Infobox/Row|Instrument|{{{instrument}}}}} | ||
}}{{#if: {{{perform|}}} | }}{{#if: {{{perform|}}} | ||
| {{Infobox/Row|Perform|{{{perform}}}}} | | {{Infobox/Row|How to Perform|{{{perform}}}}} | ||
}}{{#if: {{{use|}}} | }}{{#if: {{{use|}}} | ||
| {{Infobox/Row|Uses|{{{use}}}}} | | {{Infobox/Row|Uses|{{{use}}}}} | ||
}}{{#if: {{{effect|}}} | }}{{#if: {{{effect|}}} | ||
| {{Infobox/Row|Effect|{{{effect}}}}} | | {{Infobox/Row|Effect|{{{effect}}}}} | ||
}}{{#if: {{{dyeable|}}} | |||
| {{Infobox/Row|Dyeable|{{{dyeable}}}}} | |||
}}{{#if: {{{enhanceable|}}} | |||
| {{Infobox/Row|Enhanceable|{{{enhanceable}}}}} | |||
}}<!-- | }}<!-- | ||
Line 125: | Line 153: | ||
-->{{#if: {{{related|}}} | -->{{#if: {{{related|}}} | ||
| {{Infobox/Row|Related|{{{related}}}}} | | {{Infobox/Row|Related|{{{related}}}}} | ||
}}{{#if: {{{leader|}}} | |||
| {{Infobox/Row|Leader|{{{leader}}}}} | |||
}}{{#if: {{{ship|}}} | |||
| {{Infobox/Row|Ship Set|{{{ship}}}}} | |||
}}<!-- | }}<!-- | ||
Line 142: | Line 174: | ||
CREDITS | CREDITS | ||
-->{{#if: {{{developer|}}}{{{manufacturer|}}}{{{publisher|}}}{{{producer|}}}{{{director|}}}{{{author|}}}{{{editor|}}}{{{artist|}}}{{{designer|}}}{{{composer|}}} | -->{{#if: {{{developer|}}}{{{manufacturer|}}}{{{publisher|}}}{{{producer|}}}{{{director|}}}{{{author|}}}{{{editor|}}}{{{artist|}}}{{{designer|}}}{{{composer|}}}{{{arranged|}}}{{{host|}}} | ||
| {{Infobox/Header|Credits}} | | {{Infobox/Header|Credits}} | ||
{{#if: {{{developer|}}} | {{#if: {{{developer|}}} | ||
Line 164: | Line 196: | ||
}}{{#if: {{{composer|}}} | }}{{#if: {{{composer|}}} | ||
| {{Infobox/Row|Composer|{{{composer}}}}} | | {{Infobox/Row|Composer|{{{composer}}}}} | ||
}}{{#if: {{{arranged|}}} | |||
| {{Infobox/Row|Arranged|{{{arranged}}}}} | |||
}}{{#if: {{{host|}}} | |||
| {{Infobox/Row|Webhost|{{{host}}}}} | |||
}} | }} | ||
}}<!-- | }}<!-- | ||
ATTRIBUTES | ATTRIBUTES | ||
-->{{#if: {{{type|}}}{{{model|}}}{{{seasons|}}}{{{episodes|}}}{{{language|}}}{{{length|}}}{{{size|}}}{{{weight|}}}{{{color|}}}{{{quantity|}}}{{{ISBN|}}}{{{UPC|}}} | -->{{#if: {{{type|}}}{{{model|}}}{{{seasons|}}}{{{episodes|}}}{{{language|}}}{{{length|}}}{{{size|}}}{{{weight|}}}{{{color|}}}{{{quantity|}}}{{{ISBN|}}}{{{ASIN|}}}{{{catalog|}}}{{{UPC|}}} | ||
| {{Infobox/Header|Attributes}} | | {{Infobox/Header|Attributes}} | ||
{{#if: {{{type|}}} | {{#if: {{{type|}}} | ||
Line 175: | Line 211: | ||
| {{Infobox/Row|Model|{{{model}}}}} | | {{Infobox/Row|Model|{{{model}}}}} | ||
}}{{#if: {{{seasons|}}} | }}{{#if: {{{seasons|}}} | ||
| {{Infobox/Row|Number of<br>Seasons|{{{seasons}}}}} | | {{Infobox/Row|Number of<br/>Seasons|{{{seasons}}}}} | ||
}}{{#if: {{{episodes|}}} | }}{{#if: {{{episodes|}}} | ||
| {{Infobox/Row|Number of<br>Episodes|{{{episodes}}}}} | | {{Infobox/Row|Number of<br/>Episodes|{{{episodes}}}}} | ||
}}{{#if: {{{language|}}} | }}{{#if: {{{language|}}} | ||
| {{Infobox/Row|Language|{{{language}}}}} | | {{Infobox/Row|Language|{{{language}}}}} | ||
Line 191: | Line 227: | ||
| {{Infobox/Row|Color|{{{color}}}}} | | {{Infobox/Row|Color|{{{color}}}}} | ||
}}{{#if: {{{quantity|}}} | }}{{#if: {{{quantity|}}} | ||
| {{Infobox/Row|Limited<br>Quantity|{{{quantity}}}}} | | {{Infobox/Row|Limited<br/>Quantity|{{{quantity}}}}} | ||
}}{{#if: {{{ISBN|}}} | }}{{#if: {{{ISBN|}}} | ||
| {{Infobox/Row|ISBN|{{{ISBN}}}}} | | {{Infobox/Row|ISBN|{{{ISBN}}}}} | ||
}}{{#if: {{{ASIN|}}} | |||
| {{Infobox/Row|ASIN|{{{ASIN}}}}} | |||
}}{{#if: {{{catalog|}}} | |||
| {{Infobox/Row|Catalog Number|{{{catalog}}}}} | |||
}}{{#if: {{{UPC|}}} | }}{{#if: {{{UPC|}}} | ||
| {{Infobox/Row|UPC|{{{UPC}}}}} | | {{Infobox/Row|UPC|{{{UPC}}}}} | ||
Line 234: | Line 274: | ||
-->{{#if: {{{dept|}}} | -->{{#if: {{{dept|}}} | ||
| {{Infobox/Row|Department|{{{dept}}}}} | | {{Infobox/Row|Department|{{{dept}}}}} | ||
}}{{#if: {{{born|}}} | |||
| {{Infobox/Row|Born|{{{born}}}}} | |||
}}{{#if: {{{died|}}} | |||
| {{Infobox/Row|Died|{{{died}}}}} | |||
}}{{#if: {{{position|}}} | }}{{#if: {{{position|}}} | ||
| {{Infobox/Row|Position|{{{position}}}}} | | {{Infobox/Row|Position|{{{position}}}}} | ||
Line 242: | Line 286: | ||
}}{{#if: {{{joindate|}}} | }}{{#if: {{{joindate|}}} | ||
| {{Infobox/Row|Join Date|{{{joindate}}}}} | | {{Infobox/Row|Join Date|{{{joindate}}}}} | ||
}}{{#if: {{{website|}}} | |||
| {{Infobox/Row|Website|{{{website}}}}} | |||
}}{{#if: {{{posts|}}} | }}{{#if: {{{posts|}}} | ||
| {{Infobox/Row|Forum Posts|{{{posts}}}}} | | {{Infobox/Row|Forum Posts|{{{posts}}}}} | ||
Line 267: | Line 313: | ||
| race = | | race = | ||
| gender = | | gender = | ||
| trial = | |||
| occupation = | | occupation = | ||
| member = | | member = | ||
| leader = | |||
| ship = | |||
| purpose = | | purpose = | ||
| special = | | special = | ||
Line 275: | Line 324: | ||
| attack = | | attack = | ||
| weapon = | | weapon = | ||
| weaponused = | |||
| element = | |||
| power = | |||
| defense = | |||
| health = | |||
| durability = | |||
| range = | |||
| setbonus = | |||
| ingredients = | |||
| game = | | game = | ||
| location = | | location = | ||
Line 293: | Line 351: | ||
| cost = | | cost = | ||
| rarity = | | rarity = | ||
| start = | |||
| objective = | | objective = | ||
| learn = | | learn = | ||
Line 301: | Line 360: | ||
| use = | | use = | ||
| effect = | | effect = | ||
| dyeable = | |||
| enhanceable = | |||
| related = | | related = | ||
| release = | | release = | ||
Line 316: | Line 377: | ||
| designer = | | designer = | ||
| composer = | | composer = | ||
| arranged = | |||
| host = | |||
| type = | | type = | ||
| model = | | model = | ||
Line 328: | Line 391: | ||
| quantity = | | quantity = | ||
| ISBN = | | ISBN = | ||
| ASIN = | |||
| catalog = | |||
| UPC = | | UPC = | ||
| walkthrough = | | walkthrough = | ||
Line 341: | Line 406: | ||
| dept = | | dept = | ||
| position = | | position = | ||
| born = | |||
| died = | |||
| age = | | age = | ||
| rank = | | rank = | ||
| joindate = | | joindate = | ||
| website = | |||
| posts = | | posts = | ||
| im = | | im = | ||
Line 365: | Line 433: | ||
{{Infobox|boss | {{Infobox|boss | ||
| image = | | image = | ||
| caption = | |||
| title = | | title = | ||
| threat = | | threat = | ||
Line 377: | Line 446: | ||
<div style="display: inline-block;"> | <div style="display: inline-block;"> | ||
===Character=== | ===Character=== | ||
{{Float|left}}<pre> | {{Float|left}}<pre> | ||
Line 388: | Line 458: | ||
| game = | | game = | ||
| location = | | location = | ||
| trial = | |||
| related = | | related = | ||
}} | }} | ||
Line 416: | Line 487: | ||
{{Infobox|enemy | {{Infobox|enemy | ||
| image = | | image = | ||
| caption = | |||
| threat = | | threat = | ||
| attack = | | attack = | ||
Line 421: | Line 493: | ||
| location = | | location = | ||
| weapon = | | weapon = | ||
| reward = | |||
| related = | | related = | ||
}} | }} | ||
Line 472: | Line 545: | ||
| game = | | game = | ||
| location = | | location = | ||
| leader = | |||
| purpose = | | purpose = | ||
| members = | | members = | ||
Line 499: | Line 573: | ||
| location = | | location = | ||
| cost = | | cost = | ||
| ship = | |||
| use = | | use = | ||
| dyeable = | |||
| enhanceable = | |||
| setbonus = | |||
| ingredients = | |||
| related = | |||
}} | |||
</pre>{{Float|end}} | |||
{{Clear}}</div> | |||
<div style="display: inline-block;"> | |||
===Weapon=== | |||
{{Float|left}}<pre> | |||
{{Infobox|weapon | |||
| image = | |||
| game = | |||
| element = | |||
| power = | |||
| durability = | |||
| related = | | related = | ||
}} | }} | ||
Line 556: | Line 649: | ||
{{Infobox|person | {{Infobox|person | ||
| image = | | image = | ||
| born = | |||
| died = | |||
| game = | | game = | ||
| dept = | | dept = | ||
Line 666: | Line 761: | ||
| effect = | | effect = | ||
| related = | | related = | ||
}} | |||
</pre>{{Float|end}} | |||
{{Clear}}</div> | |||
<div style="display: inline-block;"> | |||
===Quest=== | |||
{{Float|left}}<pre> | |||
{{Infobox|quest | |||
| image = | |||
| game = | |||
| prereq = | |||
| start = | |||
| objective = | |||
| reward = | |||
}} | }} | ||
</pre>{{Float|end}} | </pre>{{Float|end}} | ||
Line 684: | Line 793: | ||
Headers can also be added using {{Usage|sub=Header|text}}. They should be surrounded by an 'if' function that checks for any parameters in the section to which the header refers. Check the existing code for examples. | Headers can also be added using {{Usage|sub=Header|text}}. They should be surrounded by an 'if' function that checks for any parameters in the section to which the header refers. Check the existing code for examples. | ||
Each argument—up to three—passed to Infobox/Row represents one column. To adjust which cells are represented as labels, use the <code>label</code> parameter. <code>label=0</code> makes the whole row data cells; <code>label=1</code> is the default value; <code>label=2</code> makes the first two cells labels; etc. | |||
The widths of the columns can be defined using <code><nowiki>{{#vardefine:colNwidth|value}}</nowiki></code>, where <code>value</code> is the width (e.g. "50px") of the Nth column (i.e. define col3width for the third column). This can only be done once per column; once a cell has a defined width, further cells in the same column will share that width, even if the variable is reassigned. | |||
===Demo=== | ===Demo=== | ||
Line 699: | Line 808: | ||
{{Infobox/Row|Label|Data}} | {{Infobox/Row|Label|Data}} | ||
{{Infobox/Row|label=0|Colspan'd data}} | {{Infobox/Row|label=0|Colspan'd data}} | ||
{{Infobox/Row|Default|Three column|Behavior}} | {{Infobox/Row|Default|Three column|Behavior}} | ||
{{#vardefine:col3width|100px}} | {{#vardefine:col3width|100px}} | ||
Line 707: | Line 815: | ||
{{#vardefine:col3width|75px}} | {{#vardefine:col3width|75px}} | ||
{{Infobox/Row|Different|Col|Width}} | {{Infobox/Row|Different|Col|Width}} | ||
</table> | </table> | ||
{{Box/Bottom}} | {{Box/Bottom}} | ||
Line 720: | Line 825: | ||
{{Infobox/Row|Label|Data}} | {{Infobox/Row|Label|Data}} | ||
{{Infobox/Row|label=0|Colspan'd data}} | {{Infobox/Row|label=0|Colspan'd data}} | ||
{{Infobox/Row|Default|Three column|Behavior}} | {{Infobox/Row|Default|Three column|Behavior}} | ||
{{#vardefine:col3width|100px}} | {{#vardefine:col3width|100px}} | ||
Line 726: | Line 830: | ||
{{Infobox/Row|label=2|Two|Labels|Data}} | {{Infobox/Row|label=2|Two|Labels|Data}} | ||
{{Infobox/Row|label=3|Three|Label|Columns}} | {{Infobox/Row|label=3|Three|Label|Columns}} | ||
{{#vardefine:col3width| | {{#vardefine:col3width|15px}} | ||
{{Infobox/Row|Different|Col|Width}} | {{Infobox/Row|Different|Col|Width}} | ||
</table> | </table> | ||
{{Box/Bottom}} | {{Box/Bottom}} | ||
Line 742: | Line 843: | ||
| [default] || {{Infobox|name=Default|walkthrough=example}} | | [default] || {{Infobox|name=Default|walkthrough=example}} | ||
|- | |- | ||
| boss<br>enemy || {{Infobox|boss|name=Hostile|walkthrough=example}} | | boss<br/>enemy || {{Infobox|boss|name=Hostile|walkthrough=example}} | ||
|- | |- | ||
| dungeon || {{Infobox|dungeon|name=Dungeon|walkthrough=example}} | | dungeon || {{Infobox|dungeon|name=Dungeon|walkthrough=example}} | ||
|- | |- | ||
| location<br>shop || {{Infobox|location|name=Location|walkthrough=example}} | | location<br/>shop || {{Infobox|location|name=Location|walkthrough=example}} | ||
|- | |- | ||
| character<br>group<br>race<br>shop owner || {{Infobox|character|name=Character|walkthrough=example}} | | character<br/>group<br/>race<br/>shop owner || {{Infobox|character|name=Character|walkthrough=example}} | ||
|- | |- | ||
| item<br>collectible<br>ring<br>weapon<br>object || {{Infobox|item|name=Item|walkthrough=example}} | | item<br/>collectible<br/>ring<br/>weapon<br/>object || {{Infobox|item|name=Item|walkthrough=example}} | ||
|- | |- | ||
| event<br>minigame<br>secret<br>skill<br>song || {{Infobox|event|name=Knowledge|walkthrough=example}} | | event<br/>minigame<br/>secret<br/>skill<br/>song || {{Infobox|event|name=Knowledge|walkthrough=example}} | ||
|- | |- | ||
| interview<br>member<br>person<br>product<br>publication<br>game<br>console<br>fan game || {{Infobox|interview|name=Nondiegetic|walkthrough=example}} | | interview<br/>member<br/>person<br/>product<br/>publication<br/>game<br/>console<br/>fan game || {{Infobox|interview|name=Nondiegetic|walkthrough=example}} | ||
|} | |} | ||
{{Cat|Formatting Templates}} | {{Cat|Formatting Templates}} | ||
{{Cat|Infobox Templates}} | {{Cat|Infobox Templates}} |
Revision as of 17:44, November 9, 2019
This template is used on over 2500 pages. Take extra care when making changes, testing them in a sandbox first. If changes to this template require changes to pages that use it, you are responsible for making those changes. |
Purpose
This template is used on most pages to display quick high-level information on the subject.
Usage
Place this template at the top of the article, below any {{Hatnotes}} or {{Amboxes}}. Use whichever parameters are applicable; all are optional.
All available parameters:
{{Infobox|type | name = | logo = | boxart = | image = | caption = | title = | race = | gender = | trial = | occupation = | member = | leader = | ship = | purpose = | special = | number = | threat = | attack = | weapon = | weaponused = | element = | power = | defense = | health = | durability = | range = | setbonus = | ingredients = | game = | location = | dungeon = | when = | natseason = | boss = | miniboss = | enemies = | inhab = | characters = | members = | pointsint = | item = | prereq = | shop = | owner = | cost = | rarity = | start = | objective = | learn = | tell = | reward = | instrument = | perform = | use = | effect = | dyeable = | enhanceable = | related = | release = | release <platform1> = <date1> | release <platform2> = <date2> | ... | developer = | manufacturer = | publisher = | producer = | director = | author = | editor = | artist = | designer = | composer = | arranged = | host = | type = | model = | seasons = | episodes = | language = | length = | duration = | size = | weight = | color = | quantity = | ISBN = | ASIN = | catalog = | UPC = | walkthrough = | guides = | gallery = | videos = | music = | date = | interviewee = | interviewer = | description = | source = | dept = | position = | born = | died = | age = | rank = | joindate = | website = | posts = | im = }}
- type — This defines the color of the title. See below for available types. (Optional.)
- name — This is only necessary when the title of the Infobox should be different from the title of the article. Examples include shortening game titles to their subtitles and removing parenthetical specifications (e.g. Hyrule Castle (Twilight Princess)). (Optional. Default: article title)
- boxart — Used only for games and consoles, this overrides the
image
parameter. - member — Any organization(s) of which the subject is a member.
- related — Related subjects. For characters, specify the type of relation, e.g. "Talon (Father)" or "Talon (Boss)".
- threat — A number 1-10.
- attack — Attacks the enemy or boss may perform, including how much damage they do, using {{H}}.
- weapon — Effective weapons.
- release — Include as many
release
arguments as needed, in the formrelease <platform> = <date (using {{Region}})>
.release
by itself is for console release dates.
These defined types typically use the same parameters:
Boss
{{Infobox|boss | image = | caption = | title = | threat = | attack = | weapon = | game = | dungeon = | reward = }}
Character
{{Infobox|character | image = | title = | race = | gender = | occupation = | member = | game = | location = | trial = | related = }}
Dungeon
{{Infobox|dungeon | image = | game = | location = | boss = | miniboss = | enemies = | inhab = | item = | reward = | walkthrough = }}
Enemy
{{Infobox|enemy | image = | caption = | threat = | attack = | game = | location = | weapon = | reward = | related = }}
Event
{{Infobox|event | image = | game = | location = | characters = | when = | related = }}
Game
{{Infobox|game | name = | logo = | boxart = | caption = | release <platform1> = <date1> | release <platform2> = <date2> | ... | developer = | publisher = | producer = | director = | walkthrough = | guides = | gallery = | videos = | music = }}
Group
{{Infobox|group | image = | game = | location = | leader = | purpose = | members = }}
Interview
{{Infobox|interview | date = | interviewee = | interviewer = | description = | source = }}
Item
{{Infobox|item | image = | game = | location = | cost = | ship = | use = | dyeable = | enhanceable = | setbonus = | ingredients = | related = }}
Weapon
{{Infobox|weapon | image = | game = | element = | power = | durability = | related = }}
Location
{{Infobox|location | image = | game = | inhab = | pointsint = | item = | natseason = | related = }}
Member
{{Infobox|member | forumpage = | image = | location = | age = | rank = | joindate = | posts = | im = }}
Minigame
{{Infobox|minigame | image = | game = | location = | owner = | cost = | objective = | reward = }}
Person
{{Infobox|person | image = | born = | died = | game = | dept = | position = }}
Product
{{Infobox|product | image = | game = | cost = | rarity = | release = | developer = | manufacturer = | publisher = | producer = | director = | author = | editor = | artist = | designer = | type = | model = | seasons = | episodes = | language = | length = | size = | weight = | quantity = | color = | ISBN = | UPC = | gallery = }}
Race
{{Infobox|race | image = | special = | game = | location = | characters = }}
Ring
{{Infobox|ring | image = | number = | game = | location = | prereq = | effect = }}
Secret
{{Infobox|secret | prereq = | learn = | learn-img = | tell = | tell-img = | reward = | rew-img = }}
Skill
{{Infobox|skill | image = | game = | learn = | perform = | effect = }}
Song
{{Infobox|song | image = | game = | instrument = | learn = | perform = | effect = | related = }}
Quest
{{Infobox|quest | image = | game = | prereq = | start = | objective = | reward = }}
Adding Rows
If additional rows are needed, they can be added directly to this template. They generally take the form:
{{#if: {{{parameter|}}} | {{Infobox/Row|Label|{{{parameter}}}}} }}
- parameter — The name of the parameter the row deals with. Be sure it hasn't already been used.
- Label — The label that appears in the left column
Headers can also be added using {{Infobox/Header| text }}. They should be surrounded by an 'if' function that checks for any parameters in the section to which the header refers. Check the existing code for examples.
Each argument—up to three—passed to Infobox/Row represents one column. To adjust which cells are represented as labels, use the label
parameter. label=0
makes the whole row data cells; label=1
is the default value; label=2
makes the first two cells labels; etc.
The widths of the columns can be defined using {{#vardefine:colNwidth|value}}
, where value
is the width (e.g. "50px") of the Nth column (i.e. define col3width for the third column). This can only be done once per column; once a cell has a defined width, further cells in the same column will share that width, even if the variable is reassigned.
Demo
The following code demonstrates different behaviors of Infobox/Row. In proper usage, each line should be surrounded by a #if function checking for parameters.
Example | Result | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{Box|width=258px|title=Demonstration|class=infobox}} <table> {{Infobox/Header|Header}} {{Infobox/Row|Colspan'd label}} {{Infobox/Row|Label|Data}} {{Infobox/Row|label=0|Colspan'd data}} {{Infobox/Row|Default|Three column|Behavior}} {{#vardefine:col3width|100px}} {{Infobox/Row|label=0|Three|Data|Columns}} {{Infobox/Row|label=2|Two|Labels|Data}} {{Infobox/Row|label=3|Three|Label|Columns}} {{#vardefine:col3width|75px}} {{Infobox/Row|Different|Col|Width}} </table> {{Box/Bottom}} |
Demonstration
|
Types and Colors
Common types of Infobox are associated with certain colors, as follows:
Types | Color | |||||
---|---|---|---|---|---|---|
[default] | Default
| |||||
boss enemy |
Hostile
| |||||
dungeon | Dungeon
| |||||
location shop |
Location
| |||||
character group race shop owner |
Character
| |||||
item collectible ring weapon object |
Item
| |||||
event minigame secret skill song |
Knowledge
| |||||
interview member person product publication game console fan game |
Nondiegetic
|