Template:Image Template Base: Difference between revisions

From Zombie Panic! Official Wiki
Jump to navigation Jump to search
Created page with "<includeonly><!-- Desktop --><span style="display: inline-{{#ifeq:{{{nobr|}}}|1|flex; align-items: center;|block;}} margin:3px; line-height: 1em; text-wrap: wrap; text-align: {{#ifeq:{{{nobr|}}}|1|left|center}}; {{#if:{{{outerWidth|}}}|width: {{AddPxUnit|{{{outerWidth}}}}};|}} {{#if:{{{minOuterWidth|}}}|min-width: {{AddPxUnit|{{{minOuterWidth}}}}};|}} {{#if:{{{maxOuterWidth|}}}|max-width: {{AddPxUnit|{{{maxOuterWidth}}}}};|}}" class="hidden"><!-- -->{{#ifexist:File:{{{ty..."
 
(No difference)

Latest revision as of 13:46, 10 June 2025

Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.

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