Template:PenetrationBox: Difference between revisions

Fixed the code, cleaned it up so the parser syntax is a bit more readable. Added category inclusion for maintenance.
(Copy the penetration box to its own code, and tweak it.)
 
(Fixed the code, cleaned it up so the parser syntax is a bit more readable. Added category inclusion for maintenance.)
Line 1:
<div class="infobox" style="width: 2in;
<div class="infobox" style="width: 1in;{{#ifexpr: {{{1|0}}} >= 25|{{#ifexpr: {{{1}}} < 50|background:#ffff90;color:black;">[[Rosetta_Code:TODO#Languages|Very light penetration]], and could be much better. This language has|background:#90ff90;color:black;">[[Rosetta_Code:TODO#Languages|Light penetration]], but could still be better. This language has}}|background:#ff9090;color:black;">[[Rosetta_Code:TODO#Languages|''Extremely'' light penetration]]; This language needs many more examples.}}
 
{{{1}}}% of non-omitted tasks implemented. {{#ifexpr: {{{1}}} < 100|If you're part of this language's community, please spread the word, and help beef up these numbers!}}</div>
{{#ifexpr: {{{1|0}}} >= 25|
{{#ifexpr: {{{1}}} < 50
|background:#ffff90;color:black;"><big>'''[[Rosetta_Code:TODO#Languages|Very light penetration]]'''</big><includeonly>[[Category:Maintenance/Very Light penetration]]</includeonly>
This language has
|background:#90ff90;color:black;"><big>'''[[Rosetta_Code:TODO#Languages|Light penetration]]'''</big><includeonly>[[Category:Maintenance/Light penetration]]</includeonly>
This language has}}
|background:#ff9090;color:black;"><big>'''[[Rosetta_Code:TODO#Languages|''Extremely'' light penetration]]'''</big><includeonly>[[Category:Maintenance/Extremely Light penetration]]</includeonly>
}}
 
{{{1}}}% of non-omitted tasks implemented. {{#ifexpr: {{{1}}} < 100|If you're part of this language's community, please spread the word, and help beefmake upand thesekeep numbersthis number high!}}</div>
 
</div>