« Module:Icon/doc » : différence entre les versions

De Pikmin FR
fr>Fxfxfx0
Aucun résumé des modifications
m 12 versions importées
 
(10 versions intermédiaires par 3 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
Template to display inline icons such as controllers, buttons, and graphics. Meant as a base template to be chained, but can also be called directly.
Template to display inline icons such as controllers, buttons, and graphics. Meant as a base template to be chained, but can also be called directly.


Ligne 42 : Ligne 43 :


=== Valid types ===
=== Valid types ===
==== Mode Icons ====
<!--==== Mode Icons ====
<code><nowiki>{{</nowiki>Icon|Mode|''Name''}}</code>
<code><nowiki>{{</nowiki>Icon|Mode|''Name''}}</code>
<small>''Note: Names are case-sensitive.''</small>
<small>''Note: Names are case-sensitive.''</small>
Ligne 50 : Ligne 51 :
|Regular Battle 2
|Regular Battle 2
|Ranked Battle 2
|Ranked Battle 2
|Private Battle
|Splatoon Private Battle
|Private Battle 2
|Splatoon 2 Private Battle
|Regular Battle S2 2
|Regular Battle S2 2
|Splat Zones
|Splat Zones
Ligne 61 : Ligne 62 :
|{{Icon|Mode|Regular Battle 2}}
|{{Icon|Mode|Regular Battle 2}}
|{{Icon|Mode|Ranked Battle 2}}
|{{Icon|Mode|Ranked Battle 2}}
|{{Icon|Mode|Private Battle}}
|{{Icon|Mode|Splatoon Private Battle}}
|{{Icon|Mode|Private Battle 2}}
|{{Icon|Mode|Splatoon 2 Private Battle}}
|{{Icon|Mode|Regular Battle S2 2}}
|{{Icon|Mode|Regular Battle S2 2}}
|{{Icon|Mode|Splat Zones}}
|{{Icon|Mode|Splat Zones}}
Ligne 71 : Ligne 72 :


* For a complete list, see ''[http://splatoonwiki.org/w/index.php?title=Special%3APrefixIndex&prefix=Mode_Icon_&namespace=6 files beginning with Mode_Icon_]''
* For a complete list, see ''[http://splatoonwiki.org/w/index.php?title=Special%3APrefixIndex&prefix=Mode_Icon_&namespace=6 files beginning with Mode_Icon_]''
 
-->
==== S Icons ====
==== S Icons ====
<code><nowiki>{{</nowiki>Icon|S|''Name''}}</code>
<code><nowiki>{{</nowiki>Icon|S|''Name''}}</code>
Ligne 132 : Ligne 133 :
See {{t|Button|name|console}}
See {{t|Button|name|console}}


[[Catégorie:Modèles d’intégration]]
[[Catégorie:Modèles d'intégration]]

Dernière version du 9 avril 2025 à 23:20

Template to display inline icons such as controllers, buttons, and graphics. Meant as a base template to be chained, but can also be called directly.

Usage

{{Icon|<grouping>|<name>}}

group First positional or named, required This is the group that the icon belongs to, such as a controller type or game or some other grouping.

Valid types include:

  • Mode
  • Pro
  • S
  • S2
  • S3
  • RotM
  • Switch
  • Wii U
  • Most groups under Icons.
name Second positional or named, required This is the icon that you want. Appropriate values here vary by the group specified.
ext Named only, optional The file extension of the inline icon image without the dot. By default, it is "png". For some groups this may need changing to "svg" or "jpg".
link Named only, optional What the inline icon image links to. By default, this unlinks the image. This should rarely need specifying.
size Named only, optional The size of the inline icon image. By default, this is 28px. This should rarely need specifying.
alt Named only, optional The alt text of the inline icon image. By default, this is the same as the "name" text specified. Doesn't need changing unless specifically to point out the icon's context like "Button".

Valid types

S Icons

{{Icon|S|Name}}

Name Callie Marie Spyke Ammo Knights
Output Callie Marie Spyke Ammo Knights

S2 Icons

{{Icon|S2|Name}}

Name Judd Li'l Judd Pearl Marina
Output Judd Li'l Judd Pearl Marina

S3 Icons

{{Icon|S3|Name}} and {{Icon|RotM|Name}}

Name Hotlantis Shiver Frye Big Man
Output Hotlantis Shiver Frye Big Man

Controller Button Icons

See {{Button|<name>|<console>}}