Difference between revisions of "Template:Xenotype genes table/row"
Jump to navigation
Jump to search
(Unused genes are now just implied by the other parameters.) |
(Easier to read to me, but feel free to revert.) |
||
(5 intermediate revisions by 2 users not shown) | |||
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>[[File:{{{1}}}| | + | <!-- If param 1 empty Then no image Else, image | Gene name w/ link --> |
− | <!-- Gene category --> | + | <th data-sort-value="{{{2}}}"; style=text-align:left;>{{#ifeq: {{{1}}}|||[[File:{{{1}}}|24px|link=Genes#{{{2}}}]]}}[[Genes#{{{2}}}|{{{2}}}]]</th> |
− | <th>[[Genes#{{{3}}}|{{{3}}}]]</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> | <td>{{#ifeq: {{{pigskins|false}}}|true|{{Check}}|{{Cross}} }}</td> |
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. |