Template:PEGI: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
{{#vardefine:3|{{#if:{{{3|{{#ifeq:{{{1|}}}|3|y}}}}}|3}}}}{{#vardefine:7|{{#if:{{{7|{{#ifeq:{{{1|}}}|7|y}}}}}|7}}}}{{#vardefine:rating|{{#var:3|{{#var:7|}}}}}}<!--
{{#if:{{{3}}}|[[File:PEGI rating - 3.png|35px|PEGI 3}]]}}
-->{{#switch:{{#var:rating}}<!--
{{#if:{{{7}}}|[[File:PEGI rating - 7.png|35px|PEGI 7}]]}}
-->|3|7=[[File:PEGI rating - {{#var:rating}}.png|35px|PEGI {{#var:rating}}]]<!--
{{#if:{{{violence}}}|[[File:PEGI rating - violence.png|35px|Gross Violence}]]}}<noinclude>
-->}}<!--
 
-->{{#if:{{{violence|}}}|[[File:PEGI rating - violence.png|35px|{{#if:{{#var:7}}|Gross v|V}}iolence]]}}<noinclude>
PEGI (Pan European Game Information) is a European video game content rating system.
PEGI (Pan European Game Information) is a European video game content rating system.


See https://pegi.info/ for more information about the ratings.
See https://pegi.info/ for more information about the ratings.


== Usage ==
 
<nowiki>{{PEGI|7|violence=y}}</nowiki> displays-> {{PEGI|7=y|violence=y}}
[[Category:Templates]]</noinclude>
{|
! Param !! Displays
|-
|3 || [[File:PEGI rating - 3.png|35px]]
|-
|7 || [[File:PEGI rating - 7.png|35px]]
|-
|violence|| [[File:PEGI rating - violence.png|35px]]
|}[[Category:Templates]]</noinclude>
11

edits