Template:Infobox

From Killing Floor Wiki
Jump to: navigation, search
{{{2}}}
[edit] [purge] Template-info.svg Template documentation

As opposed to being a whole template for an infobox base, this is a series of building blocks for all kinds of current infobox sections. Virtually all of its style components are based in the global style sheets. All sections auto hide if their {{{2}}} or {{{sect}}} value is empty.

Contents

[edit] Usage

In order for an infobox created with this template to function properly it must be surrounded by:

<table class="infobox">
(Infobox templates go here)
</table>

[edit] Section classes

Replace CONTENTS in the below sections with the appropriate content.

[edit] Heading class

For a heading use the following:

{{Infobox|head| CONTENTS }}

[edit] Subheading class

For a subheading use the following:

{{Infobox|subhead| CONTENTS }}

[edit] Content class

For a blank section with the mid-green content background use the following:

{{Infobox|content| CONTENTS }}

[edit] Image class

For an image section use the following:

{{Infobox|image| CONTENTS.png}}

[edit] Blank class

For a completely blank section use the following:

{{Infobox|none| CONTENTS }}

[edit] Additional parameters

 |style= Optional inline CSS styles for the cell.

 |class= Changes the style class tag for the cell.

 |width= Sets the width of the image. Default: 220px

 |description= Sets the hover/alt text of the image. Default: "Image of {{PAGENAME}}."

 |other= Adds addition properties for the image, eg: upright, thumb, left, link. No default.

[edit] Advanced section classes

Info class goes up to 9, achievement class goes up to 20.

[edit] Information class

{{Infobox|stats|
| sect-a1 = TITLE
| sect1   = CONTENT
| sect-a2 = 
| sect2   = 
| sect-a3 = 
| sect3   = 
| sect-a4 = 
| sect4   = 
| sect-a5 = 
| sect5   = 
| sect-a6 = 
| sect6   = 
| sect-a7 = 
| sect7   = 
| sect-a8 = 
| sect8   = 
| sect-a9 = 
| sect9   = 
}}

[edit] Achievement class

See the infobox achievements template.

[edit] See also

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox