Difference between revisions of "Genetraitcomp3"
From Children of StarClan
Line 4: | Line 4: | ||
<PRE>{{Genetraitcomp3|<NAME>}}</PRE> | <PRE>{{Genetraitcomp3|<NAME>}}</PRE> | ||
− | </noinclude><includeonly> | + | </noinclude><includeonly>{{#vardefine:coloralbino|{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = Albino Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} }}{{#vardefine:colorblack|{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = Black Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} }}{{#vardefine:colorbrown|{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = Brown Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} }} |
− | {{#vardefine: | + | {{#vardefine:colorcream|{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = Cream Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} }} |
− | {{#vardefine: | + | {{#vardefine:colordilutetortie|{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = Dilute Tortie Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} }} |
− | {{#vardefine: | + | {{#vardefine:colorgray|{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = Gray Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} }} |
+ | {{#vardefine:colorred|{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = Red Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} }} | ||
+ | {{#vardefine:colortan|{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = Tan Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} }} | ||
+ | {{#vardefine:colortortie|{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = Tortie Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} }} | ||
+ | {{#vardefine:colorwhite|{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = White Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} }} | ||
<SMALL> | <SMALL> | ||
'''Fur color''': | '''Fur color''': | ||
− | {{#ifeq: {{#var:coloralbino}} | 0 | | + | {{#ifeq: {{#var:coloralbino}} | 0 |:<span style="color:gray;">No Albino Based Cats</span>|: {{#var:coloralbino}} '''Albino Based Cats''' ( {{#expr: ({{#var:coloralbino}}/{{#var:totalcats}}*100) round 2}}% ) }} |
− | {{#ifeq: {{#var:colorblack}} | 0 | | + | {{#ifeq: {{#var:colorblack}} | 0 |:<span style="color:gray;">No Black Based Cats</span>|: {{#var:colorblack}} '''Black Based Cats''' ( {{#expr: ({{#var:colorblack}}/{{#var:totalcats}}*100) round 2}}% ) }} |
− | {{#ifeq: {{#var:colorbrown}} | 0 | | + | {{#ifeq: {{#var:colorbrown}} | 0 |:<span style="color:gray;">No Brown Based Cats</span>|: {{#var:colorbrown}} '''Brown Based Cats''' ( {{#expr: ({{#var:colorbrown}}/{{#var:totalcats}}*100) round 2}}% ) }} |
+ | {{#ifeq: {{#var:colorcream}} | 0 |:<span style="color:gray;">No Cream Based Cats</span>|: {{#var:colorcream}} '''Cream Based Cats''' ( {{#expr: ({{#var:colorcream}}/{{#var:totalcats}}*100) round 2}}% ) }} | ||
+ | {{#ifeq: {{#var:colordilutetortie}} | 0 |:<span style="color:gray;">No Dilute Tortie Based Cats</span>|: {{#var:colordilutetortie}} '''Dilute Tortie Based Cats''' ( {{#expr: ({{#var:colordilutetortie}}/{{#var:totalcats}}*100) round 2}}% ) }} | ||
+ | {{#ifeq: {{#var:colorgray}} | 0 |:<span style="color:gray;">No Gray Based Cats</span>|: {{#var:colorgray}} '''Gray Based Cats''' ( {{#expr: ({{#var:colorgray}}/{{#var:totalcats}}*100) round 2}}% ) }} | ||
+ | {{#ifeq: {{#var:colorred}} | 0 |:<span style="color:gray;">No Red Based Cats</span>|: {{#var:colorred}} '''Red Based Cats''' ( {{#expr: ({{#var:colorred}}/{{#var:totalcats}}*100) round 2}}% ) }} | ||
+ | {{#ifeq: {{#var:colortan}} | 0 |:<span style="color:gray;">No Tan Based Cats</span>|: {{#var:colortan}} '''Tan Based Cats''' ( {{#expr: ({{#var:colortan}}/{{#var:totalcats}}*100) round 2}}% ) }} | ||
+ | {{#ifeq: {{#var:colortortie}} | 0 |:<span style="color:gray;">No Tortie Based Cats</span>|: {{#var:colortortie}} '''Tortie Based Cats''' ( {{#expr: ({{#var:colortortie}}/{{#var:totalcats}}*100) round 2}}% ) }} | ||
+ | {{#ifeq: {{#var:colorwhite}} | 0 |:<span style="color:gray;">No White Based Cats</span>|: {{#var:colorwhite}} '''White Based Cats''' ( {{#expr: ({{#var:colorwhite}}/{{#var:totalcats}}*100) round 2}}% ) }} | ||
</SMALL> | </SMALL> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!--'''Bicolor''':{{#ifeq: {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Bicolor | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |0|| :{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Bicolor | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} Bicolor cat{{#ifeq: {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Bicolor | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |1||s}} ({{#expr: ({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Bicolor | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }}/{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} * 100) round 2}}%)}}{{#ifeq: {{#expr: ({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} - {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Bicolor | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }})}} |0|| :{{#expr: ({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} - {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Bicolor | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }})}} Non-bicolor cat{{#ifeq: {{#expr: ({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} - {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Bicolor | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }})}} |1||s}} ({{#expr: (({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} - {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Bicolor | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }})/{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} * 100) round 2}}%)}} | <!--'''Bicolor''':{{#ifeq: {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Bicolor | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |0|| :{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Bicolor | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} Bicolor cat{{#ifeq: {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Bicolor | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |1||s}} ({{#expr: ({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Bicolor | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }}/{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} * 100) round 2}}%)}}{{#ifeq: {{#expr: ({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} - {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Bicolor | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }})}} |0|| :{{#expr: ({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} - {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Bicolor | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }})}} Non-bicolor cat{{#ifeq: {{#expr: ({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} - {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Bicolor | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }})}} |1||s}} ({{#expr: (({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} - {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Bicolor | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }})/{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} * 100) round 2}}%)}} |
Revision as of 14:24, 13 June 2017
Used to make genetic and traits compilations for character factoids pages.
Code
{{Genetraitcomp3|<NAME>}}