Difference between revisions of "Template:Infobox"

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
m
m
Line 216: Line 216:
  
 
CREDITS
 
CREDITS
-->{{#if: {{{arranged|}}}{{{art director|}}}{{{art editor|}}}{{{artist|}}}{{{author|}}}{{{composer|}}}{{{concept and design|}}}{{{conductor|}}}{{{contributors|}}}{{{design|}}}{{{designer|}}}{{{developer|}}}{{{director of production|}}}{{{director|}}}{{{editor in chief|{{{editor-in-chief|}}}}}}{{{editor|}}}{{{editorial consultants|}}}{{{editors|}}}{{{host|}}}{{{illustrator|}}}{{{illustrators|}}}{{{in cooperation with|}}}{{{layout|}}}{{{manufacturer|}}}{{{performed by|}}}{{{photographer|}}}{{{producer in chief|{{{producer-in-chief|}}}}}}{{{producer|}}}{{{production editor|}}}{{{project coordinators|}}}{{{publisher|}}}{{{recording date|}}}{{{reviewer|}}}{{{senior editor|}}}{{{supervisor|}}}{{{technical advice|}}}{{{writer|}}}{{{writers|}}}
+
-->{{#if: {{{arranged|}}}{{{art director|}}}{{{art editor|}}}{{{artist|}}}{{{author|}}}{{{composer|}}}{{{concept and design|}}}{{{concept|}}}{{{conductor|}}}{{{contributors|}}}{{{copy coordinator|}}}{{{cover design|}}}{{{cover photography|}}}{{{cover|}}}{{{design|}}}{{{designer|}}}{{{developer|}}}{{{director of production|}}}{{{director|}}}{{{editing collaborators|}}}{{{editor in chief|{{{editor-in-chief|}}}}}}{{{editor|}}}{{{editorial consultants|}}}{{{editors|}}}{{{fact checking|}}}{{{game consulting|}}}{{{host|}}}{{{illustrator|}}}{{{illustrators|}}}{{{in cooperation with|}}}{{{layout|}}}{{{manufacturer|}}}{{{map creation|}}}{{{performed by|}}}{{{photographer|}}}{{{photographers|}}}{{{producer in chief|{{{producer-in-chief|}}}}}}{{{producer|}}}{{{production editor|}}}{{{project coordinators|}}}{{{publisher|}}}{{{recording date|}}}{{{reviewer|}}}{{{revisions|}}}{{{senior editor|}}}{{{senior editors|}}}{{{supervisor|}}}{{{technical advice|}}}{{{translator|}}}{{{writer|}}}{{{writers|}}}
 
| {{Infobox/Header|Credits}}
 
| {{Infobox/Header|Credits}}
 
   {{#if: {{{developer|}}}
 
   {{#if: {{{developer|}}}
Line 248: Line 248:
 
   }}{{#if: {{{editor in chief|{{{editor-in-chief|}}}}}}
 
   }}{{#if: {{{editor in chief|{{{editor-in-chief|}}}}}}
 
   | {{Infobox/Row|Editor-in-Chief|{{{editor in chief|{{{editor-in-chief}}}}}}}}
 
   | {{Infobox/Row|Editor-in-Chief|{{{editor in chief|{{{editor-in-chief}}}}}}}}
 +
  }}{{#if: {{{senior editors|}}}
 +
  | {{Infobox/Row|Senior Editors|{{{senior editors}}}}}
 
   }}{{#if: {{{senior editor|}}}
 
   }}{{#if: {{{senior editor|}}}
 
   | {{Infobox/Row|Senior Editor|{{{senior editor}}}}}
 
   | {{Infobox/Row|Senior Editor|{{{senior editor}}}}}
Line 258: Line 260:
 
   }}{{#if: {{{editing collaborators|}}}
 
   }}{{#if: {{{editing collaborators|}}}
 
   | {{Infobox/Row|Editing Collaborators|{{{editing collaborators}}}}}
 
   | {{Infobox/Row|Editing Collaborators|{{{editing collaborators}}}}}
 +
  }}{{#if: {{{copy coordinator|}}}
 +
  | {{Infobox/Row|Copy Coordinator|{{{copy coordinator}}}}}
 
   }}{{#if: {{{revisions|}}}
 
   }}{{#if: {{{revisions|}}}
 
   | {{Infobox/Row|Revisions|{{{revisions}}}}}
 
   | {{Infobox/Row|Revisions|{{{revisions}}}}}
Line 264: Line 268:
 
   }}{{#if: {{{technical advice|}}}
 
   }}{{#if: {{{technical advice|}}}
 
   | {{Infobox/Row|Technical Advice|{{{technical advice}}}}}
 
   | {{Infobox/Row|Technical Advice|{{{technical advice}}}}}
 +
  }}{{#if: {{{game consulting|}}}
 +
  | {{Infobox/Row|Game Consulting|{{{game consulting}}}}}
 
   }}{{#if: {{{art director|}}}
 
   }}{{#if: {{{art director|}}}
 
   | {{Infobox/Row|Art Director|{{{art director}}}}}
 
   | {{Infobox/Row|Art Director|{{{art director}}}}}
Line 272: Line 278:
 
   }}{{#if: {{{concept and design|}}}
 
   }}{{#if: {{{concept and design|}}}
 
   | {{Infobox/Row|Concept & Design|{{{concept and design}}}}}
 
   | {{Infobox/Row|Concept & Design|{{{concept and design}}}}}
 +
  }}{{#if: {{{concept|}}}
 +
  | {{Infobox/Row|Concept|{{{concept}}}}}
 
   }}{{#if: {{{layout|}}}
 
   }}{{#if: {{{layout|}}}
 
   | {{Infobox/Row|Layout|{{{layout}}}}}
 
   | {{Infobox/Row|Layout|{{{layout}}}}}
 
   }}{{#if: {{{artist|}}}
 
   }}{{#if: {{{artist|}}}
 
   | {{Infobox/Row|Artist|{{{artist}}}}}
 
   | {{Infobox/Row|Artist|{{{artist}}}}}
 +
  }}{{#if: {{{illustrators|}}}
 +
  | {{Infobox/Row|Illustrators|{{{illustrators}}}}}
 
   }}{{#if: {{{illustrator|}}}
 
   }}{{#if: {{{illustrator|}}}
 
   | {{Infobox/Row|Illustrator|{{{illustrator}}}}}
 
   | {{Infobox/Row|Illustrator|{{{illustrator}}}}}
   }}{{#if: {{{illustrators|}}}
+
   }}{{#if: {{{cover|}}}
   | {{Infobox/Row|Illustrators|{{{illustrators}}}}}
+
   | {{Infobox/Row|Cover|{{{cover}}}}}
   }}{{#if: {{{map creation|}}}
+
   }}{{#if: {{{cover design|}}}
   | {{Infobox/Row|Map Creation|{{{map creation}}}}}
+
   | {{Infobox/Row|Cover Design|{{{cover design}}}}}
 +
  }}{{#if: {{{cover photography|}}}
 +
  | {{Infobox/Row|Cover Photography|{{{cover photography}}}}}
 +
  }}{{#if: {{{photographers|}}}
 +
  | {{Infobox/Row|Photographers|{{{photographers}}}}}
 
   }}{{#if: {{{photographer|}}}
 
   }}{{#if: {{{photographer|}}}
 
   | {{Infobox/Row|Photographer|{{{photographer}}}}}
 
   | {{Infobox/Row|Photographer|{{{photographer}}}}}
 
   }}{{#if: {{{designer|}}}
 
   }}{{#if: {{{designer|}}}
 
   | {{Infobox/Row|Designer|{{{designer}}}}}
 
   | {{Infobox/Row|Designer|{{{designer}}}}}
 +
  }}{{#if: {{{map creation|}}}
 +
  | {{Infobox/Row|Map Creation|{{{map creation}}}}}
 
   }}{{#if: {{{contributors|}}}
 
   }}{{#if: {{{contributors|}}}
 
   | {{Infobox/Row|Contributors|{{{contributors}}}}}
 
   | {{Infobox/Row|Contributors|{{{contributors}}}}}

Revision as of 11:04, October 2, 2022

size=40x40px 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.
Infobox

[Edit Documentation]

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        = 
| purpose	= 
| special	= 
| number	= 
| warriors	=
| allies	= 
| recommended level	= 
| threat	= 
| attack	= 
| weapon	= 
| weaponused	=
| weaponavailable =
| element	=
| recommended element =
| power		= 
| defense	= 
| shield guard  =
| health	= 
| durability	= 
| range		= 
| best bonus	= 
| setbonus	= 
| ingredients	=
| game		= 
| series	= 
| location	= 
| locations	= 
| quest		= 
| dungeon	= 
| occurrence	=
| stage		= 
| game type	= 
| time limit	= 
| conditions	= 
| previous	=
| next		=
| simultaneous	=
| natseason	=
| boss		= 
| miniboss	= 
| enemies	= 
| targets	= 
| inhab		= 
| characters	= 
| members	=
| missions	=
| pointsint	= 
| item		= 
| materials	= 
| battlefield materials = 
| prereq	= 
| shop		= 
| owner		= 
| cost		= 
| value		= 
| rarity	= 
| start		= 
| objective	= 
| learn		= 
| learn-img	= 
| tell		= 
| tell-img	= 
| reward	= 
| rew-img	= 
| instrument	= 
| perform	= 
| use		= 
| used by	= 
| effect	= 
| dyeable	= 
| enhanceable	= 
| related	= 
| platform_header =
| date_header =
| release	= 
| release <platform1>	= <date1>
| release <platform2>	= <date2>
| ...
| developer	= 
| manufacturer	= 
| publisher	= 
| producer in chief =
| producer	= 
| director of production =
| director	= 
| author	=  
| writer	=  
| writers	=  
| translator	=  
| reviewer	=  
| supervisor	=
| editor in chief	= 
| senior editors	= 
| senior editor	= 
| editors	= 
| editor	=  
| editorial consultants	= 
| editing collaborators	= 
| revisions	= 
| fact checking	= 
| technical advice	= 
| game consulting	= 
| art director	= 
| design	= 
| concept and design	= 
| concept	= 
| layout	= 
| artist	=  
| illustrators	= 
| illustrator	= 
| cover		= 
| cover design	= 
| cover	photography = 
| map creation	=  
| photographer	=  
| designer	=  
| composer	= 
| arranged	= 
| conductor	=
| performed by	=
| recording date	=
| in cooperation with	=
| project coordinators = 
| host		= 
| type		= 
| founded	= 
| model		= 
| seasons	= 
| episodes	= 
| language	= 
| album		= 
| length	= 
| track		= 
| duration	= 
| size		= 
| weight	= 
| color		= 
| quantity	= 
| ISBN		= 
| ISSN		= 
| ASIN		= 
| catalog	= 
| wave		= 
| seriesnumber	= 
| 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 if 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) has name=Hyrule Castle). (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 form release <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	= 
| related	= 
}}

Character

{{Infobox|character
| image		= 
| caption	= 
| title		= 
| race		= 
| gender	= 
| occupation	= 
| member	= 
| game		= 
| series	= 
| location	= 
| quests	= 
| trial		= 
| related	= 
}}

Dungeon

{{Infobox|dungeon
| image		= 
| caption	= 
| game		= 
| location	= 
| boss		= 
| miniboss	= 
| enemies	= 
| inhab		= 
| item		= 
| reward	= 
| walkthrough	= 
| related	= 
}}

Enemy

{{Infobox|enemy
| image		= 
| caption	= 
| threat	= 
| attack	=
| game		= 
| location	=
| weapon	=
| reward	= 
| related	= 
}}

Event

{{Infobox|event
| image		= 
| caption	= 
| game		= 
| location	= 
| characters	= 
| occurrence	= 
| quest		= 
| related	= 
}}

Game

{{Infobox|game
| name		= 
| logo		= 
| boxart	= 
| caption	= 
| release <platform1>	= <date1>
| release <platform2>	= <date2>
| ...
| developer	= 
| publisher	= 
| producer	= 
| director	= 
| walkthrough	= 
| guides	= 
| gallery	= 
| videos	= 
| music		= 
}}

Scenario

{{Infobox|scenario
| name            = 
| image           = 
| caption         = 
| number          = 
| weaponavailable =
| element         = 
| recommended element =
| game            = 
| stage           =
| previous        =
| next            =
| simultaneous    =
| warriors        =
| boss            = 
| miniboss        = 
| enemies         = 
| characters      = 
| members         = 
| missions        = 
| pointsint       = 
| item            = 
| materials	= 
| battlefield materials = 
| prereq          = 
| start           = 
| reward          = 
| related         = 
| release         = 
| walkthrough     = 
| guides          = 
| gallery         = 
}} 

Group

{{Infobox|group
| image		= 
| caption	= 
| game		= 
| location	= 
| leader        =
| purpose	= 
| quest		= 
| members	= 
| related	= 
}}

Interview

{{Infobox|interview
| date		= 
| interviewee	= 
| interviewer	= 
| description	= 
| source	= 
}}

Item

{{Infobox|item
| image		= 
| caption	= 
| game		= 
| location	= 
| quest		= 
| cost		= 
| ship		=
| use		= 
| used by	= 
| dyeable	= 
| enhanceable	= 
| setbonus	= 
| ingredients	=
| related	= 
}}

Weapon

{{Infobox|weapon
| image		= 
| caption	= 
| game		= 
| quest		= 
| used by	= 
| element	= 
| power		= 
| durability	= 
| related	= 
}}

Location

{{Infobox|location
| image		= 
| caption	= 
| game		= 
| location      = 
| enemies       = 
| inhab		= 
| pointsint	= 
| item		= 
| materials	= 
| quest		= 
| natseason	= 
| related	= 
}}

Member

{{Infobox|member
| forumpage	= 
| image		= 
| location	= 
| age		= 
| rank		= 
| joindate	= 
| posts		= 
| im		= 
}}

Minigame

{{Infobox|minigame
| image		= 
| caption	= 
| game		= 
| location	= 
| owner		= 
| cost		= 
| objective	= 
| reward	= 
| related	= 
}}

Person

{{Infobox|person
| image		= 
| caption	= 
| born		= 
| died		= 
| game		= 
| dept		= 
| position	= 
| related	= 
}}

Product

{{Infobox|product
| image		= 
| caption	= 
| game		= 
| cost		= 
| rarity	= 
| release	= 
| developer	= 
| manufacturer	= 
| publisher	= 
| producer	= 
| director	= 
| author	= 
| editor	= 
| artist	= 
| designer	= 
| type		= 
| model		= 
| seasons	= 
| episodes	= 
| language	= 
| length	= 
| size		= 
| weight	= 
| quantity	= 
| color		= 
| ISBN		= 
| ISSN		= 
| UPC		= 
| gallery	= 
}}

Publication

{{Infobox|publication
| name  = 
| logo  = 
| image  = 
| caption = 
| member = 
| purpose = 
| special = 
| number = 
| game  = 
| location = 
| when  = 
| characters = 
| pointsint = 
| ship  = 
| shop  = 
| owner  = 
| cost  = 
| rarity = 
| related = 
| platform_header =
| release = 
| release <platform1> = <date1>
| release <platform2> = <date2>
| ...
| developer = 
| manufacturer = 
| publisher = 
| producer in chief =
| producer = 
| director of production =
| director = 
| author = 
| writer = 
| writers = 
| translator = 
| reviewer = 
| editor in chief = 
| senior editors = 
| senior editor = 
| editors = 
| editor = 
| editorial consultants = 
| editing collaborators = 
| revisions = 
| fact checking = 
| technical advice = 
| game consulting = 
| art director = 
| design = 
| concept and design = 
| concept = 
| layout = 
| artist = 
| illustrators = 
| illustrator = 
| cover = 
| cover design = 
| map creation = 
| photographer = 
| designer = 
| project coordinators =
| host  = 
| type  = 
| model  = 
| language = 
| length = 
| duration = 
| size  = 
| weight = 
| color  = 
| quantity = 
| ISBN  = 
| ASIN  = 
| catalog = 
| seriesnumber = 
| UPC  = 
| gallery = 
| date  = 
| interviewee = 
| interviewer = 
| description = 
| source = 
| dept  = 
| position = 
| website = 
}}

Race

{{Infobox|race
| image		= 
| caption	= 
| special	= 
| game		= 
| location	= 
| characters	= 
| quest		= 
| related	= 
}}

Ring

{{Infobox|ring
| image		= 
| caption	= 
| number	= 
| game		= 
| location	= 
| prereq	= 
| effect	= 
}}

Secret

{{Infobox|secret
| prereq	= 
| learn		= 
| learn-img	= 
| tell		= 
| tell-img	= 
| reward	= 
| rew-img	= 
}}

Skill

{{Infobox|skill
| image		= 
| caption	= 
| game		= 
| learn		= 
| perform	= 
| effect	= 
}}

Song

{{Infobox|song
| image		= 
| caption	= 
| game		= 
| quest		= 
| instrument	= 
| learn		= 
| perform	= 
| effect	= 
| related	= 
}}

Quest

{{Infobox|quest
| image		= 
| caption	= 
| game		= 
| prereq	= 
| start		= 
| objective	= 
| reward	= 
| related	= 
}}

Track

{{Infobox|track
| image		= 
| caption	= 
| game		= 
| album		= 
| track		= 
| duration	= 
| 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.

ExampleResult
{{Box|width=320px|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
Header

Colspan'd label

Label

Data

Colspan'd data

Default

Three column

Behavior

Three

Data

Columns

Two

Labels

Data

Three

Label

Columns

Different

Col

Width

Types and Colors

Common types of Infobox are associated with certain colors, as follows:

Types Color
[default]
Default
Guides

Walkthrough

example

boss
enemy
Hostile
Guides

Walkthrough

example

dungeon
scenario
Dungeon
Guides

Walkthrough

example

location
shop
Location
Guides

Walkthrough

example

character
group
race
shop owner
Character
Guides

Walkthrough

example

item
collectible
ring
weapon
object
Item
Guides

Walkthrough

example

event
minigame
secret
skill
song
quest
Knowledge
Guides

Walkthrough

example

interview
member
person
product
company
publication
game
console
fan game
zd
soundtrack
track
Nondiegetic
Guides

Walkthrough

example