Template:Infobox

From WikiMSK

{{{title}}}
{{{1}}}

This template is a basis for all infobox templates.

Template

{{food
|id=
|title=
|1=<!-- rows, for example:
{{row/image+artist}}
{{row/kv | Featured in | ''{{{books}}}'' }}
-->
|main-params=
|classes=
|cats=
|default-cats=
|title-row-params=
|title-align=center
|title-params=
|title-classes=
|cols=2
}}

Parameters

Highlighted lines indicate mandatory parameters. On lines with multiple parameters (e.g. |id=) pick only the one most appropriate.

{{infobox}} Parameters
Parameter Description Examples
id Use this to apply an id html parameter to the generated infobox. It is required for the edit-templates gadget to work.

|id=Character on {{character}}

title Use this to fill the header-row of the infobox with a title.

|title={{PAGENAME}} will fill it with the name of the page the infobox is shown on.

{{{1}}} The infobox contents, including all the information rows
<!-- rows, for example:
{{row/image+artist}}
{{row/kv | Featured in | ''{{{books}}}'' }}
-->
main-params Extra HTML parameters to add to the infobox as a whole
title-row-params Extra HTML attributes to add to the title row <tr> element
title-parmas Extra HTML attributes to add to the title cell <td> element
classes Extra css classes to apply to the infobox as a whole
title-classes Extra css to apply to the title cell <td> element
cols The number of columns in the rest of the infobox.
title-align value for the
default-cats the categories to include on any article using this infobox
replacement-cats Pass in {{{cats|}}} to override the default-cats parameter on a per-page basis

|replacement-cats={{{cats|}}} allows all users of the infobox to
pass |cats= and remove any automatic categories.

Derived Templates