Difference between revisions of "Template:Xenotype genes table/row"
Jump to navigation
Jump to search
(Sort key works and the icons can be this large without interfering with row width (its the same size as the Check/Cross icon templates)) |
(Comments, support for genes without images) |
||
Line 13: | Line 13: | ||
{{#ifeq: {{{sanguophages|false}}}|false|1|0}} | {{#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"|}}> | <tr {{#ifeq: {{#var:isunused}}|1|class="mw-collapsible mw-collapsed" id="mw-customcollapsible-collapseXenotypeTable"|}}> | ||
− | <th data-sort-value="{{{2}}}">[[File:{{{1}}}|24px|link=Genes#{{{2}}}]][[Genes#{{{2}}}|{{{2}}}]]</th> | + | <!-- If param 1 empty Then no image Else, image | Gene name w/ link --> |
+ | <th data-sort-value="{{{2}}}">{{#ifeq: {{{1}}}|||[[File:{{{1}}}|24px|link=Genes#{{{2}}}]]}}[[Genes#{{{2}}}|{{{2}}}]]</th> | ||
<!-- Gene category --> | <!-- Gene category --> | ||
<th>[[Genes#{{{3}}}|{{{3}}}]]</th> | <th>[[Genes#{{{3}}}|{{{3}}}]]</th> |
Revision as of 02:53, 21 November 2022
A single row of Template:Xenotype genes table
Usage
{{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
{| {{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
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. |