Template:SurvivorTable: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
|notcategory={{{not1|}}} | |notcategory={{{not1|}}} | ||
|notcategory={{{not2|}}} | |notcategory={{{not2|}}} | ||
|include={Survivor Infobox}:%PAGE%:name | |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:{{{nogame|}}}||,Game(s)}}<!-- | ||
-->{{#if:{{{noRelDate|}}}||,Release Date}} | -->{{#if:{{{noRelDate|}}}||,Release Date}} | ||
|tablerow=<!-- | |tablerow=<!-- | ||
| Line 17: | Line 17: | ||
-->,²{#if:%%¦[[%PAGE%|%%]]¦[[%PAGE%]]}²<!-- | -->,²{#if:%%¦[[%PAGE%|%%]]¦[[%PAGE%]]}²<!-- | ||
-->{{#if:{{{nogame|}}}||,²{Game¦%%¦35px¦nobr=1,text=%%}²}}<!-- | -->{{#if:{{{nogame|}}}||,²{Game¦%%¦35px¦nobr=1,text=%%}²}}<!-- | ||
-->{{#if:{{{noRelDate|}}}||, data-sort-value="²{#time:xNU¦%%}²" ¦ | -->{{#if:{{{noRelDate|}}}||, data-sort-value="²{#time:xNU¦%%}²" ¦ ²{Time Ago¦%%¦include = y}²}} | ||
|resultsheader={{{resultsheader|'''%PAGES%''' [[Survivors]] match the category selection:\n}}} | |resultsheader={{{resultsheader|'''%PAGES%''' [[Survivors]] match the category selection:\n}}} | ||
|noresultsfooter ={{{noresultsfooter|\nNo [[Survivors]] match the category selection.}}} | |noresultsfooter ={{{noresultsfooter|\nNo [[Survivors]] match the category selection.}}} | ||
Latest revision as of 17:23, 18 August 2025
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Syntax
- 1: category
Examples
Example 1
{{SurvivorTable|Zombie Panic!}} yields:
3 Survivors match the category selection:
| Icon | Name | Game(s) | Release Date |
|---|---|---|---|
| Eugene Grant | 18 years ago | ||
| Marcus Lewis | 18 years ago | ||
| Human Survivor | 21 years ago |
Example 2
{{SurvivorTable|Zombie Panic! Source}} yields:
7 Survivors match the category selection:
| Icon | Name | Game(s) | Release Date |
|---|---|---|---|
| Eugene Grant | 18 years ago | ||
| Jessica Mannings | 18 years ago | ||
| Lea Magnussen | 18 years ago | ||
| Marcus Lewis | 18 years ago | ||
| Paul Smith | 18 years ago | ||
| Pedro Rodriguez | 7 years ago | ||
| Vanessa Isley | 7 years ago |
See also
Template Data
Filter survivors by category, displayed as a table.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | The category to filter survivors by | String | required |
| resultsheader | resultsheader | Custom results header (optional)
| String | optional |
| noresultsfooter | noresultsfooter | Custom no results footer
| String | optional |