Template:Rating: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
Make it possible to show the rating without being in the category
m make categorization includeonly
 
(5 intermediate revisions by 4 users not shown)
Line 1:
<includeonly>{{{2|[[Category:Level {{{1|{{{level|0}}}}}} Tutorials]]}}}</includeonly><table style="font-size:95%; line-height:1.5em; padding:0.25em; float:right; margin: 0 0 8px 15px; clear:right; border:1px solid #aaaaaa; background:#eee; text-align:center;{{{2|}}};"><!--
 
--><tr><th>Difficulty level</th></tr><tr><td>[[Image:Difficulty {{{1|{{{level|0}}}}}}.png]]<br />{{If|{{Eq|{{{1|{{{level|0}}}}}}|0}}|Not#switch: rated|{{If|{{Eq|{{{1|{{{level|0}}}}}}|1}}|Beginner|{{If|{{Eq|{{{1|{{{level|0}}}}}}|2}}|Medium|{{If|{{Eq|{{{1|{{{level|0}}}}}}|3}}|Advanced|Master}}}}}}}}</td></tr><!--
| 0 = Not rated
| 1 = Beginner
| 2 = Medium
| 3 = Advanced
| 4 = Master
| {{Template error|Unparseable difficulty level {{{1|{{{level|0}}}}}}}}
}}</td></tr><!--
 
--></table><noinclude>
Line 7 ⟶ 14:
<pre>
{{Rating|3}}
{{Rating|3|no-categorize}}
</pre>
Use the following levels:
Line 15 ⟶ 22:
* 3: Advanced
* 4: Master
Add an empty second parameter to prevent the article from being added to the category.
</noinclude>