Difference between revisions of "Template:Xenotype genes table/row"
Jump to navigation
Jump to search
m (Maximum category column width, for categories with lengthy titles like "Resistance and sensitivity") |
(Easier to read to me, but feel free to revert.) |
||
Line 16: | Line 16: | ||
<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"|}}> | ||
<!-- If param 1 empty Then no image Else, image | Gene name w/ link --> | <!-- 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> | + | <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 --> | <!-- Gene category - The number for width is just what looked best --> | ||
<th style="max-width:96px;">[[Genes#{{{3}}}|{{{3}}}]]</th> | <th style="max-width:96px;">[[Genes#{{{3}}}|{{{3}}}]]</th> |
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. |