Template:Rating: Difference between revisions

From OSDev.wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content added Content deleted
(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: Line 1:
{{{2|[[Category:Level {{{1|{{{level|0}}}}}} Tutorials]]}}}<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|}}};"><!--
<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 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><!--
--><tr><th>Difficulty level</th></tr><tr><td>[[Image:Difficulty {{{1|{{{level|0}}}}}}.png]]<br />{{#switch: {{{1|{{{level|0}}}}}}
| 0 = Not rated
| 1 = Beginner
| 2 = Medium
| 3 = Advanced
| 4 = Master
| {{Template error|Unparseable difficulty level {{{1|{{{level|0}}}}}}}}
}}</td></tr><!--


--></table><noinclude>
--></table><noinclude>
Line 7: Line 14:
<pre>
<pre>
{{Rating|3}}
{{Rating|3}}
{{Rating|3|no-categorize}}
{{Rating|3|}}
</pre>
</pre>
Use the following levels:
Use the following levels:
Line 15: Line 22:
* 3: Advanced
* 3: Advanced
* 4: Master
* 4: Master
Add an empty second parameter to prevent the article from being added to the category.
</noinclude>
</noinclude>

Latest revision as of 20:12, 16 June 2024

Difficulty level

Not rated

Usage:

{{Rating|3}}
{{Rating|3|}}

Use the following levels:

  • 0 or not specified: Not rated
  • 1: Beginner
  • 2: Medium
  • 3: Advanced
  • 4: Master

Add an empty second parameter to prevent the article from being added to the category.