m (Dinoxel a déplacé la page Modèle:Template:Icon/old-gen console vers Modèle:Icon/old-gen console sans laisser de redirection) |
mAucun résumé des modifications |
||
(3 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
<!-- |
<!-- |
||
+ | |||
+ | // load l10n info: |
||
+ | -->{{icon-version/l10n}}<!-- |
||
+ | |||
//width & height, without "px". |
//width & height, without "px". |
||
-->{{#vardefine:width|{{{width|{{{size|12}}}}}}}}<!-- |
-->{{#vardefine:width|{{{width|{{{size|12}}}}}}}}<!-- |
||
Ligne 10 : | Ligne 14 : | ||
-->}}<!-- |
-->}}<!-- |
||
− | -->[[File:Old-Gen Console only.png|{{#var:width}}x{{#var:height}}px|link={{#if:{{{nl|}}}|| |
+ | -->[[File:Old-Gen Console only.png|{{#var:width}}x{{#var:height}}px|link={{#if:{{{nl|}}}||{{l10n|icon-version|link_oldgen_console}}}}|{{l10n|icon-version|text_oldgen_console}}]]<!-- |
− | |||
− | --><noinclude> |
||
− | |||
− | Displays a linked old-gen console icon, which when clicked, takes the user to the [[Old-gen console version]] page. The link can be removed with the parameter "nl" . |
||
− | |||
− | == Usage == |
||
− | All parameters are optional. |
||
− | |||
− | <code><nowiki>{{</nowiki>icon/old-gen console<br/> |
||
− | |nl=y/yes: un-links the icon; default is a linked icon<br/> |
||
− | |size= ##; size in px. equal to width=## AND height=##, the image will be resized to fit within the given width and height in pixels. Default is currently 32(px) and can be found here: [[:File:Old-Gen Console only.png]].<br/> |
||
− | |width= ##; will override size=## in horizontal dimension. Default is currently 12(px) and can be found here: [[:File:Old-Gen Console only.png]].<br/> |
||
− | |height= ##; will override size=## in vertical dimension. Default is currently 16(px) and can be found here: [[:File:Old-Gen Console only.png]].<br/> |
||
− | |scale= scale ratio; default is 1. Size dimension will be multiplied by this ratio.<br/> |
||
− | |small= y/yes; creates a smaller icon (of 12px by default), equal to scale=0.75. This will be overrided by scale=xx. (useful when space is an issue)<br/> |
||
− | }}</code> |
||
− | |||
− | Note that the image will always retain its aspect ratio. |
||
− | |||
− | == Examples == |
||
− | {| class="wikitable" |
||
− | ! code !! displays !! clickable !! note |
||
− | |- |
||
− | |<nowiki>{{icon/old-gen console}}</nowiki> || {{icon/old-gen console}} ||rowspan=5 align=center| {{yes}} || |
||
− | |- |
||
− | |<nowiki>{{icon/old-gen console | small=y }}</nowiki> || {{icon/old-gen console | small=y }} || |
||
− | |- |
||
− | |<nowiki>{{icon/old-gen console | scale=0.5 }}</nowiki> || {{icon/old-gen console | scale=0.5 }} || |
||
− | |- |
||
− | |<nowiki>{{icon/old-gen console | size=40 | scale=0.5 }}</nowiki> || {{icon/old-gen console | size=40 | scale=0.5 }} || equal to <nowiki>{{icon/old-gen console | size=20}}</nowiki> |
||
− | |- |
||
− | |<nowiki>{{icon/old-gen console | width=16 | height=30}}</nowiki> || {{icon/old-gen console | width=16 | height=30}} || image will '''fit within''' the rectangle and retain its aspect ratio. |
||
− | |- |
||
− | |<nowiki>{{icon/old-gen console | nl=y }}</nowiki> || {{icon/old-gen console | nl=y }} ||rowspan=2 align=center| {{no}} ||rowspan=2| '''not''' clickable. |
||
− | |- |
||
− | |<nowiki>{{icon/old-gen console | nl=y | size=20 }}</nowiki> || {{icon/old-gen console | nl=y | size=20 }} |
||
− | |} |
||
− | |||
− | [[Category:Modèles de version]] |
||
− | [[Category:Modèles d'icône]] |
||
− | </noinclude> |
+ | --><noinclude>{{i18n-ready}}{{doc|icon/common}}</noinclude> |
Dernière version du 30 juillet 2020 à 00:41
Documentation La documentation ci-dessous est transcluse de Modèle:Icon/common/doc. (modifier | historique)
[purger]
Displays the linked icon shown above. To display multiple icons, use {{icon}}.
Usage
All parameters are optional.
{{ icon/old-gen console | small = y | nl = y | size = <size in px> | width = <width in px> | height = <height in px> | scale = <scale ratio> }}
- small
Reduces the size of the icon to 75%; evaluated after
, $width
, and $height
. Equal to $size
|scale=0.75
; overridden by
.
$scale
- nl
Removes the link from the icon. It is linked by default.
- size
Size in px; sets
and $width
to the passed value. The image will be resized to fit within the given size. Note that it will always retain its aspect ratio.
$height
- width / height
Overrides
in the horizontal/vertical dimension.
$size
- scale
Scale ratio; width and height of the image will be multiplied with this value. Default is 1.