« Module:Icon/doc » : différence entre les versions
De Pikmin FR
fr>Nukleopatra m Remplacement de texte : « http:// » par « https:// » |
m Text replacement - "PrefixIndex" to "Prefix index" |
||
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> | ||
{| class="wikitable" style="text-align:center" | {| class="wikitable" style="text-align:center" | ||
Ligne 70 : | Ligne 71 : | ||
|} | |} | ||
* For a complete list, see ''[ | * For a complete list, see ''[http://splatoonwiki.org/w/index.php?title=Special%3APrefix index&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 89 : | Ligne 90 : | ||
|} | |} | ||
* For a complete list, see ''[ | * For a complete list, see ''[http://splatoonwiki.org/w/index.php?title=Special%3APrefix index&prefix=S_Icon_&namespace=6 files beginning with S_Icon_]'' | ||
==== S2 Icons ==== | ==== S2 Icons ==== | ||
Ligne 108 : | Ligne 109 : | ||
|} | |} | ||
* For a complete list, see ''[ | * For a complete list, see ''[http://splatoonwiki.org/w/index.php?title=Special%3APrefix index&prefix=S2_Icon_&namespace=6 files beginning with S2_Icon_]'' | ||
==== S3 Icons ==== | ==== S3 Icons ==== | ||
Ligne 127 : | Ligne 128 : | ||
|} | |} | ||
* For a complete list, see ''[ | * For a complete list, see ''[http://splatoonwiki.org/w/index.php?title=Special%3APrefix index&prefix=S3_Icon_&namespace=6 files beginning with S3_Icon_]'' and ''[http://splatoonwiki.org/w/index.php?title=Special%3APrefix index&prefix=RotM_Icon_&namespace=6 files beginning with RotM_Icon_]'' | ||
==== Controller Button Icons ==== | ==== Controller Button Icons ==== | ||
See {{t|Button|name|console}} | See {{t|Button|name|console}} | ||
[[ | [[Category:Inline templates]] |
Version du 17 septembre 2024 à 10:13
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:
| |||
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 |
- For a complete list, see index&prefix=S_Icon_&namespace=6 files beginning with S_Icon_
S2 Icons
{{Icon|S2|Name}}
Name | Judd | Li'l Judd | Pearl | Marina |
Output | Judd | Li'l Judd | Pearl | Marina |
- For a complete list, see index&prefix=S2_Icon_&namespace=6 files beginning with S2_Icon_
S3 Icons
{{Icon|S3|Name}} and {{Icon|RotM|Name}}
Name | Hotlantis | Shiver | Frye | Big Man |
Output | Hotlantis | Shiver | Frye | Big Man |
- For a complete list, see index&prefix=S3_Icon_&namespace=6 files beginning with S3_Icon_ and index&prefix=RotM_Icon_&namespace=6 files beginning with RotM_Icon_
Controller Button Icons
See {{Button|<name>|<console>}}