Template

Difference between revisions of "Genetraitcomp3"

From Children of StarClan

Line 6: Line 6:
 
</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 }} |0|| :{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= Albino Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} }}
+
{{#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 }} }}
  
 
<SMALL>
 
<SMALL>
Line 12: Line 14:
  
 
{{#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: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 |::<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 |::<span style="color:gray;">No Brown Based Cats</span>|:: {{#var:colorbrown}} '''Brown Based Cats''' ( {{#expr: ({{#var:colorbrown}}/{{#var:totalcats}}*100) round 2}}% ) }}
 
</SMALL>
 
</SMALL>
 
{{#ifeq: {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category = Albino Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |0|| :{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= Albino Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} Albino based cat{{#ifeq: {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= Albino Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |1||s}} ({{#expr: ({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= Albino Based Cats | 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 | category = Black Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |0|| :{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= Black Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} Black based cat{{#ifeq: {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= Black Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |1||s}} ({{#expr: ({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= Black Based Cats | 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 | category = Brown Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |0|| :{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= Brown Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} Brown based cat{{#ifeq: {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= Brown Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |1||s}} ({{#expr: ({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= Brown Based Cats | 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 | category = Cream Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |0|| :{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= Cream Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} Cream based cat{{#ifeq: {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= Cream Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |1||s}} ({{#expr: ({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= Cream Based Cats | 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 | category = Cream Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |0|| :{{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= Cream Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} Cream based cat{{#ifeq: {{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= Cream Based Cats | resultsheader = %PAGES% | noresultsheader = 0 | format = ,,, | shownamespace = false }} |1||s}} ({{#expr: ({{#dpl: debug = 0 | category = Player Characters belonging to {{{1}}} | notcategory = Dead Characters | category= Cream Based Cats | 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:16, 13 June 2017

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

Code

{{Genetraitcomp3|<NAME>}}