Difference between revisions of "Template:CV rank"

From blackwiki
Jump to navigation Jump to search
imported>Waldyrious
(use small font for percentages)
imported>Waldyrious
(sort numbers)
Line 12: Line 12:
 
(Available options are "palop", "cplp", "africa" and "world").
 
(Available options are "palop", "cplp", "africa" and "world").
  
</noinclude><includeonly>style="background-color: hsl( {{#expr:(1 - {{{1|1}}}/{{CV rank/switch|{{{2|world}}}}}) * 120}}, 100%, 75%);" | {{{1|1}}} <small>(top {{CV rank/pct | {{{1|1}}} | {{{2|world}}} }}%)</small></includeonly>
+
</noinclude><includeonly>style="background-color: hsl( {{#expr:(1 - {{{1|1}}}/{{CV rank/switch|{{{2|world}}}}}) * 120}}, 100%, 75%);" | {{nts| {{{1|1}}} }} <small>(top {{CV rank/pct | {{{1|1}}} | {{{2|world}}} }}%)</small></includeonly>

Revision as of 10:39, 15 September 2011

This template is meant to be used in the table at Cape Verde#International recognition. Usage examples:

  • {{CV rank|2|africa}}, which produces:
Template:Nts (top 4%)
  • {{CV rank|30|world}}, which produces:
Template:Nts (top 15%)

(Available options are "palop", "cplp", "africa" and "world").