Template:Survivor/doc: Difference between revisions

From Zombie Panic! Official Wiki
Jump to navigation Jump to search
Created page with "{{Documentation/Header}} This template creates the icon and link for an Survivor. ==Parameters== This template has 2 unnamed parameters: # '''(mandatory)''' Name of the survivor. # '''(optional)''' Size of the icon. Defaults to 50 on desktop, 30 on mobile. This template has the following named parameters: *'''text''' (optional) Changes text to something other than agent name. *'''link''' (optional) Changes link to something other than agent. *'''nobr''' (optional) S..."
 
(No difference)

Latest revision as of 14:08, 10 June 2025

This is the documentation page for Survivor.
It contains usage information, categories, and other content not part of the original template page.

This template creates the icon and link for an Survivor.

Parameters

This template has 2 unnamed parameters:

  1. (mandatory) Name of the survivor.
  2. (optional) Size of the icon. Defaults to 50 on desktop, 30 on mobile.

This template has the following named parameters:

  • text (optional) Changes text to something other than agent name.
  • link (optional) Changes link to something other than agent.
  • nobr (optional) Set to 1 for no new line.
  • notext (optional) Set to 1 for no text.
  • minOuterWidth (optional) Set minimum width of the container element.
  • maxOuterWidth (optional) Set maximum width of the container element.
  • outerWidth (optional) Set the width of the container element.

Example

{{Survivor|Eugene Grant}}

Eugene Grant Eugene Grant

{{Survivor|Eugene Grant|30}}

Eugene Grant Eugene Grant

{{Survivor|Eugene Grant|20px}}

Eugene Grant Eugene Grant

{{Survivor|Eugene Grant|notext=1|nobr=1}}

Eugene Grant

{{Survivor|Eugene Grant|30|minOuterWidth=100}}

Eugene Grant Eugene Grant

{{Survivor|Eugene Grant|30|nobr=1}}

Eugene Grant Eugene Grant

Template Data

Display a link to a agent with icon.

Template parameters

ParameterDescriptionTypeStatus
Survivor Name1

Name of the survivor.

Example
Anby
Stringrequired
Icon Size2

Size of the survivor icon.

Default
50 on desktop, 30 on mobile
Numberoptional
Custom Texttext

no description

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

Changes link to something other than survivor.

Page nameoptional
nobrnobr

Set to "1" for no new line.

Booleanoptional
notextnotext

Set to "1" for no text.

Booleanoptional