Template:Image Template Base/doc

From Zombie Panic! Official Wiki
Jump to navigation Jump to search
This is the documentation page for Image Template Base.
It contains usage information, categories, and other content not part of the original template page.

Base template for image templates such as {{Survivor}} and {{Game}} to wrap around.

Syntax

See Template Data.

When a template wraps around this template, it should be done in conjunction with {{UndefParam}}.

Examples

See {{Survivor}} or {{Game}}.

Template Data

Display a link with an icon.

Template parameters

ParameterDescriptionTypeStatus
Name1

Name of the entity.

Example
Tony
Stringrequired
Icon Size2

Size of the entity icon.

Default
50 on desktop, 30 on mobile
Numberoptional
Custom Texttext

no description

Default
Changes text to something other than entity page name.
Stringoptional
Custom Linklink

Changes link to something other than entity page.

Page nameoptional
nobrnobr

Set to "1" for no new line.

Booleanoptional
notextnotext

Set to "1" for no text.

Booleanoptional
outerWidthouterWidth

Outer width of the container element

Numberoptional
minOuterWidthminOuterWidth

Minimum outer width of the container element

Numberoptional
maxOuterWidthmaxOuterWidth

Maximum outer width of the container element

Numberoptional
Entity Typetype

The entity type

Example
"Agent" or "Faction"
Stringrequired
desktop_defaultDimdesktop_defaultDim

Default dimension of the icon on desktop.

Numberrequired
mobile_defaultDimmobile_defaultDim

Default dimension of the icon on mobile.

Numberrequired
desktop_imageContainerClassdesktop_imageContainerClass

Optional CSS class for the image container element on non-mobile.

Stringoptional
desktop_imageContainerStyledesktop_imageContainerStyle

Optional CSS class for the image container element on non-mobile.

Stringoptional