Difference between revisions of "Template:Xenotype genes table/row"
Jump to navigation
Jump to search
(Added link to gene name) |
(Easier to read to me, but feel free to revert.) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>! [[File:{{{1}}}| | + | <includeonly> |
+ | <!-- Mark as unused if no xenotypes are set to true --> | ||
+ | {{#vardefine:isunused|{{#expr: | ||
+ | {{#ifeq: {{{pigskins|false}}}|false|1|0}} and | ||
+ | {{#ifeq: {{{impids|false}}}|false|1|0}} and | ||
+ | {{#ifeq: {{{yttakin|false}}}|false|1|0}} and | ||
+ | {{#ifeq: {{{neanderthals|false}}}|false|1|0}} and | ||
+ | {{#ifeq: {{{dirtmoles|false}}}|false|1|0}} and | ||
+ | {{#ifeq: {{{genies|false}}}|false|1|0}} and | ||
+ | {{#ifeq: {{{hussars|false}}}|false|1|0}} and | ||
+ | {{#ifeq: {{{highmates|false}}}|false|1|0}} and | ||
+ | {{#ifeq: {{{wasters|false}}}|false|1|0}} and | ||
+ | {{#ifeq: {{{sanguophages|false}}}|false|1|0}} | ||
+ | }}}} | ||
+ | <!-- Table row is collapsed by collapseXenotypeTable if the gene is unused --> | ||
+ | <tr {{#ifeq: {{#var:isunused}}|1|class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseXenotypeTable"|}}> | ||
+ | <!-- If param 1 empty Then no image Else, image | Gene name w/ link --> | ||
+ | <th data-sort-value="{{{2}}}"; style=text-align:left;>{{#ifeq: {{{1}}}|||[[File:{{{1}}}|24px|link=Genes#{{{2}}}]]}}[[Genes#{{{2}}}|{{{2}}}]]</th> | ||
+ | <!-- Gene category - The number for width is just what looked best --> | ||
+ | <th style="max-width:96px;">[[Genes#{{{3}}}|{{{3}}}]]</th> | ||
<!-- Pigskins --> | <!-- Pigskins --> | ||
− | + | <td>{{#ifeq: {{{pigskins|false}}}|true|{{Check}}|{{Cross}} }}</td> | |
<!-- Impids --> | <!-- Impids --> | ||
− | + | <td>{{#ifeq: {{{impids|false}}}|true|{{Check}}|{{Cross}} }}</td> | |
<!-- Yttakin --> | <!-- Yttakin --> | ||
− | + | <td>{{#ifeq: {{{yttakin|false}}}|true|{{Check}}|{{Cross}} }}</td> | |
<!-- Neanderthals --> | <!-- Neanderthals --> | ||
− | + | <td>{{#ifeq: {{{neanderthals|false}}}|true|{{Check}}|{{Cross}} }}</td> | |
<!-- Dirtmoles --> | <!-- Dirtmoles --> | ||
− | + | <td>{{#ifeq: {{{dirtmoles|false}}}|true|{{Check}}|{{Cross}} }}</td> | |
<!-- Genies --> | <!-- Genies --> | ||
− | + | <td>{{#ifeq: {{{genies|false}}}|true|{{Check}}|{{Cross}} }}</td> | |
<!-- Hussars --> | <!-- Hussars --> | ||
− | + | <td>{{#ifeq: {{{hussars|false}}}|true|{{Check}}|{{Cross}} }}</td> | |
<!-- Highmates --> | <!-- Highmates --> | ||
− | + | <td>{{#ifeq: {{{highmates|false}}}|true|{{Check}}|{{Cross}} }}</td> | |
<!-- Wasters --> | <!-- Wasters --> | ||
− | + | <td>{{#ifeq: {{{wasters|false}}}|true|{{Check}}|{{Cross}} }}</td> | |
<!-- Sanguophages --> | <!-- Sanguophages --> | ||
− | + | <td>{{#ifeq: {{{sanguophages|false}}}|true|{{Check}}|{{Cross}} }}</td> | |
− | + | </tr></includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 12:23, 25 January 2023
A single row of Template:Xenotype genes table
Usage[edit]
{{Xenotype genes table/row|image|name|category|pigskins=false|impids=false|etc.}}
Accepts all vanilla xenotypes:
- pigskins
- impids
- yttakin
- neanderthals
- dirtmoles
- genies
- hussars
- highmates
- wasters
- sanguophages
If no xenotypes are set, then the gene will be marked as "unused", and can be hidden by the parent table.
Example 1[edit]
{| {{STDT| sortable c_07 }} ! rowspan="2" | Gene !! rowspan="2" | Category !! colspan="10" | Xenotype |- ! Pigskins !! Impids !! Yttakin !! Neanderthals !! Dirtmoles !! Genies !! Hussars !! Highmates !! Wasters !! Sanguophages |- {{Xenotype genes table/row|Gene Firespew.png|Fire spew|Ability|wasters=true|impids=true}} {{Xenotype genes table/row|Gene WoundHealingRateSlow.png|Slow wound healing|Healing|impids=true|yttakin=true}} {{Xenotype genes table/row|Gene IntenseUVSensitivity.png|Intense UV sensitivity|Resistance and sensitivity|dirtmoles=true}} {{Xenotype genes table/row||Who knows?|Miscellaneous|pigskins=true}} |}
Gene | Category | Xenotype | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Pigskins | Impids | Yttakin | Neanderthals | Dirtmoles | Genies | Hussars | Highmates | Wasters | Sanguophages | ||
Fire spew | Ability | ||||||||||
Slow wound healing | Healing | ||||||||||
Intense UV sensitivity | Resistance and sensitivity | ||||||||||
Who knows? | Miscellaneous |
Example 2[edit]
The above documentation is transcluded from Template:Xenotype genes table/row/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |