Template

Difference between revisions of "Genetraitcomp3"

From Children of StarClan

Line 19: Line 19:
 
{{#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: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: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}}% ) }}<!--
+
{{#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}}% ) }}
 
 
 
 
'''Tabby pattern''':{{#ifeq: {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = **Tabby Pattern | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |0|| :{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= **Tabby Pattern | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} Tabby cat{{#ifeq: {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= **Tabby Pattern | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |1||s}} ({{#expr: ({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= **Tabby Pattern | 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: {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | notcategorymatch = %Tabby% | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |0|| :{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | notcategorymatch = %Tabby% | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} Non-tabby cat{{#ifeq: {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | notcategorymatch = %Tabby% | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |1||s}} ({{#expr: ({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | notcategorymatch = %Tabby% | 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 21:38, 14 June 2017

Used to make genetic and traits compilations for character factoids pages.

Code

{{Genetraitcomp3|<NAME>}}