User:Trig Jegman/Icon: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 5: Line 5:
! Parameter || Mandatory || Default || Purpose || Detailed description
! Parameter || Mandatory || Default || Purpose || Detailed description
|-
|-
! 1
! subject
| '''Yes''' ||  || Subject || Name of the subject's article.
| '''Yes''' ||  || Subject || Name of the subject's article.
|-
|-
! 2
! textlink
| No ||  || Text link || If this has a value, like "y", the subject's name will also appear in front of the icon, with a link to the subject's article.
| No ||  || Text link || If this has a value, like "y", the subject's name will also appear in front of the icon, with a link to the subject's article.
|-
|-
! 3
! size
| No || 24x24px || Size || Use this to set the icon to a size of your liking.
| No || 24x24px || Size || Use this to set the icon to a size of your liking.
|-
|-
! v
! variation
| No ||  || Version || If there is more than one version of the subject, use this parameter to specify it. This is valid for icon filenames that follow the following pattern: "<subject> <version> icon.png".
| No ||  || Variation || If there is more than one version of the subject, use this parameter to specify it. This is valid for icon filenames that follow the following pattern: "<subject> <version> icon.png".
|-
|-
! l
! imglink
| No ||  || Link || If the link to the article is different from the icon's name, specify it here.
| No ||  || Image Link || If the link to the article is different from the icon's name, specify it here.
|-
|-
! n
| No ||  || Display name || If you want a different display name for the text link, specify it here.
|-
|-
! c
! class
| No ||  || Class || If you'd like to add a CSS class to the image, specify it here.
| No ||  || Class || If you'd like to add a CSS class to the image, specify it here.
|-
|-
! nosize
! extension
| No ||  || Ignore "size" || If this parameter has a value, the icon size will not be changed from the original.
| No ||  || Change file extension || If this parameter has a value, the file extension will be changed to it.
|}
|}



Latest revision as of 17:28, March 7, 2024


Parameters

Parameter Mandatory Default Purpose Detailed description
subject Yes Subject Name of the subject's article.
textlink No Text link If this has a value, like "y", the subject's name will also appear in front of the icon, with a link to the subject's article.
size No 24x24px Size Use this to set the icon to a size of your liking.
variation No Variation If there is more than one version of the subject, use this parameter to specify it. This is valid for icon filenames that follow the following pattern: "<subject> <version> icon.png".
imglink No Image Link If the link to the article is different from the icon's name, specify it here.
class No Class If you'd like to add a CSS class to the image, specify it here.
extension No Change file extension If this parameter has a value, the file extension will be changed to it.

Skeleton

{{icon|subject=<main subject|variation=<any alternate forms>|size=<defaults to 24px>|imglink=<link on the image; defaults to subject>|textlink=<when added, creates a text link>|class=<optional css class>|ext=<non-png file extensions>}}
Code Result
{{icon|subject=Swooping Snitchbug}}
Swooping Snitchbug
{{icon|Swooping Snitchbug}}
File:Arachnode Indigenous Life P3 icon.jpg
{{icon|subject=Shoot|subject=Bookend|game=P4|textlink=Bookend|size=16px}}
BookendBookend
{{icon|Burgeoning Spiderwort|subject=Burgeoning Spiderwort|game=P4|variation=spicy|imglink=Burgeoning Spiderwort|textlink=Burgeoning Spiderwort{{!}}Spicy Burgeoning Spiderwort}}
Spicy Burgeoning SpiderwortSpicy Burgeoning Spiderwort