Template:Infobox: Difference between revisions
(→Enemy) |
No edit summary |
||
Line 435: | Line 435: | ||
| location = | | location = | ||
| weapon = | | weapon = | ||
| reward = | |||
| related = | | related = | ||
}} | }} |
Revision as of 18:23, January 23, 2015
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 = | occupation = | member = | leader = | purpose = | special = | number = | threat = | attack = | weapon = | game = | location = | dungeon = | when = | natseason = | boss = | miniboss = | enemies = | inhab = | characters = | members = | pointsint = | item = | prereq = | shop = | owner = | cost = | rarity = | objective = | learn = | tell = | reward = | instrument = | perform = | use = | effect = | related = | release = | release <platform1> = <date1> | release <platform2> = <date2> | ... | developer = | manufacturer = | publisher = | producer = | director = | author = | editor = | artist = | designer = | composer = | arranged = | type = | model = | seasons = | episodes = | language = | length = | duration = | size = | weight = | color = | quantity = | ISBN = | UPC = | walkthrough = | guides = | gallery = | videos = | music = | date = | interviewee = | interviewer = | description = | source = | dept = | position = | 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 = | title = | threat = | attack = | weapon = | game = | dungeon = | reward = }}
Character
{{Infobox|character | image = | title = | race = | gender = | occupation = | member = | game = | location = | 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 = | use = | 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 = | 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 = }}
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
|