逆転裁判ウィキア
Advertisement
ドキュメンテーションページへのリンク: Template:InfoBox documentation

Template:InfoBox, Template:InfoBox row and Template:Boxes end are used in unison to construct information boxes. Template:InfoBox image is for adding an additional image, while Template:InfoBox list is used to make a one-column row, usually for lists. Template:InfoBox head is used to make headers within the box. Template:InfoBox collapsible is similar, except it can hide content in the "content" field, which can be expanded. Note that the "temp name" field in InfoBox is used to provide a link to the information box's page, so just enter in the information box's name here.

Making information box templates indirectly using InfoBox parts has some major advantages over coding the templates directly:

  1. It's much more flexible. For example, getting an information box to show or hide rows depending on whether their field entries are filled is much, much easier because the MediaWiki programming will know exactly which curly brackets are associated with which.
  2. It's much easier to learn. When you want to make an information box template that's similar to existing ones on this wiki, you don't have to worry about wiki formatting! Just fill in the fields to color in the tables the way you want.
{{InfoBox
|bgcolor=
|fgcolor=
|name=
|temp name=
|image=
}}

{{InfoBox image|}}

{{InfoBox head
|bgcolor=
|fgcolor=
|title=
}}

{{InfoBox row
|bgcolor1=
|fgcolor1=
|col1=
|bgcolor2=
|fgcolor2=
|col2=
}}

{{InfoBox list|}}

{{InfoBox collapsible
|bgcolor=
|fgcolor=
|title=
|content=
}}

{{InfoBox end
|bgcolor=
}}
Advertisement