Template:SurvivorTable: Difference between revisions

From Zombie Panic! Official Wiki
Jump to navigation Jump to search
Created page with "<includeonly>{{#DPL: |namespace= |uses=Template:Survivor Infobox |category={{{1|}}} |category={{{category2|}}} |notcategory={{{not1|}}} |notcategory={{{not2|}}} |include={Survivor Infobox}:%PAGE%:name{{#if:{{{noRelDate|}}}||:releaseDate}} |table=<!-- -->class="article-table sortable" style="width:100%",-,class="unsortable" style="width:100px"¦<!-- -->Icon<!-- -->,Name<!-- -->{{#if:{{{noRelDate|}}}||,Release Date}} |tablerow=<!-- -->²{Survivor¦%%¦50¦notext=1}²<!-- -..."
 
No edit summary
Line 6: Line 6:
|notcategory={{{not1|}}}
|notcategory={{{not1|}}}
|notcategory={{{not2|}}}
|notcategory={{{not2|}}}
|include={Survivor Infobox}:%PAGE%:name{{#if:{{{noRelDate|}}}||:releaseDate}}
|include={Survivor Infobox}:%PAGE%:name:{{#if:{{{nogame|}}}||:game:baseGame}}{{#if:{{{noRelDate|}}}||:releaseDate}}
|table=<!--
|table=<!--
-->class="article-table sortable" style="width:100%",-,class="unsortable" style="width:100px"¦<!--
-->class="article-table sortable" style="width:100%",-,class="unsortable" style="width:100px"¦<!--
-->Icon<!--
-->Icon<!--
-->,Name<!--
-->,Name<!--
-->{{#if:{{{nogame|}}}||,Game}}<!--
-->{{#if:{{{noRelDate|}}}||,Release Date}}
-->{{#if:{{{noRelDate|}}}||,Release Date}}
|tablerow=<!--
|tablerow=<!--
-->²{Survivor¦%%¦50¦notext=1}²<!--
-->²{Survivor¦%%¦50¦notext=1}²<!--
-->,²{#if:%%¦[[%PAGE%|%%]]¦[[%PAGE%]]}²<!--
-->,²{#if:%%¦[[%PAGE%|%%]]¦[[%PAGE%]]}²<!--
-->{{#if:{{{nogame|}}}||,²{Game¦%%¦35px¦nobr=1,text=%%}²}}<!--
-->{{#if:{{{noRelDate|}}}||, data-sort-value="²{#time:xNU¦%%}²" ¦ ²{#if:%%¦ ²{#time:F d²{Comma}² Y¦%%}²<br />²{Time Ago¦%%¦include = y²{Comma}²mth²{Comma}²d}²<br />(During [[Version ²{Date to Version¦%%}²]])¦&mdash;}²}}
-->{{#if:{{{noRelDate|}}}||, data-sort-value="²{#time:xNU¦%%}²" ¦ ²{#if:%%¦ ²{#time:F d²{Comma}² Y¦%%}²<br />²{Time Ago¦%%¦include = y²{Comma}²mth²{Comma}²d}²<br />(During [[Version ²{Date to Version¦%%}²]])¦&mdash;}²}}
|resultsheader={{{resultsheader|'''%PAGES%''' [[Survivors]] match the category selection:\n}}}
|resultsheader={{{resultsheader|'''%PAGES%''' [[Survivors]] match the category selection:\n}}}

Revision as of 12:38, 10 June 2025

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

Syntax

  • 1: category

Examples

Example 1

{{SurvivorTable|Zombie Panic!}} yields:
3 Survivors match the category selection:

Icon Name Game Release Date
Eugene Grant Eugene Grant [[|Zombie Panic! Source]] 2007-11-28
Marcus Lewis Marcus Lewis [[|Zombie Panic! Source]] 2007-11-28
Survivor (ZP1) Human Survivor [[|Zombie Panic!]] 2004-10-30

Example 2

{{SurvivorTable|Zombie Panic! Source}} yields:
7 Survivors match the category selection:

Icon Name Game Release Date
Eugene Grant Eugene Grant [[|Zombie Panic! Source]] 2007-11-28
Jessica Mannings Jessica Mannings [[|Zombie Panic! Source]] 2007-11-28
Lea Magnussen Lea Magnussen [[|Zombie Panic! Source]] 2007-11-28
Marcus Lewis Marcus Lewis [[|Zombie Panic! Source]] 2007-11-28
Paul Smith Paul Smith [[|Zombie Panic! Source]] 2007-11-28
Pedro Rodriguez Pedro Rodriguez [[|Zombie Panic! Source]] 2017-12-09
Vanessa Isley Vanessa Isley [[|Zombie Panic! Source]] 2017-12-09

See also

Template Data

Filter survivors by category, displayed as a table.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
11

The category to filter survivors by

Stringrequired
resultsheaderresultsheader

Custom results header (optional)

Default
'''%PAGES%''' [[Survivors]] match the category selection:\n
Stringoptional
noresultsfooternoresultsfooter

Custom no results footer

Default
\nNo [[Survivors]] match the category selection.
Stringoptional