User:Trig Jegman/Icon: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(Created page with "<includeonly>[[File:{{{subject|}}} {{{game|}}}{{#if:{{{variation|}}}|{{{variation|}}} | }}icon.{{{ext|png}}}|{{{size|24x24px}}}|alt={{#if:{{{textlink|}}}|{{{textlink|}}}|{{{subject|}}}}}|class={{{class|}}}|link={{#if:{{{textlink|}}}|{{{textlink|}}}|{{{subject|}}}}}]]{{#if:{{{textlink|}}}|[[{{{textlink|}}}]]|​}}</includeonly><noinclude> {|class = "wikitable" ! Code || Result |- | <pre>{{icon|Swooping Snitchbug}}</pre> | {{User:Trig Jegman/Icon|subject=Swo...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>[[File:{{{subject|}}} {{{game|}}}{{#if:{{{variation|}}}|{{{variation|}}}&nbsp;|&nbsp;}}icon.{{{ext|png}}}|{{{size|24x24px}}}|alt={{#if:{{{textlink|}}}|{{{textlink|}}}|{{{subject|}}}}}|class={{{class|}}}|link={{#if:{{{textlink|}}}|{{{textlink|}}}|{{{subject|}}}}}]]{{#if:{{{textlink|}}}|[[{{{textlink|}}}]]|&#8203;}}</includeonly><noinclude>
<includeonly>[[File:{{{subject|}}}{{#if:{{{variation|}}}|&nbsp;{{{variation|}}}&nbsp;|&nbsp;}}{{{game|}}} icon.{{{ext|png}}}|{{{size|24x24px}}}|alt={{#if:{{{textlink|}}}|{{{textlink|}}}|{{{subject|}}}}}|class={{{class|}}}|link={{#if:{{{textlink|}}}|{{{textlink|}}}|{{{subject|}}}}}]]{{#if:{{{textlink|}}}|[[{{{textlink|}}}]]|&#8203;}}</includeonly><noinclude>
 
==Parameters==
{| class = "wikitable"
! 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: "&lt;subject&gt; &lt;version&gt; 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==
<pre>
{{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>}}
</pre>


{|class = "wikitable"
{|class = "wikitable"
! Code || Result
! Code || Result
|-
| <pre>{{icon|subject=Swooping Snitchbug}}</pre>
| {{User:Trig Jegman/Icon|subject=Swooping Snitchbug|game=P3}}
|-
|-
| <pre>{{icon|Swooping Snitchbug}}</pre>
| <pre>{{icon|Swooping Snitchbug}}</pre>
| {{User:Trig Jegman/Icon|subject=Swooping Snitchbug}}
| {{User:Trig Jegman/Icon|subject=Arachnode|game=P3|variation=Indigenous Life|ext=jpg}}
|-
|-
| <pre>{{icon|Shoot|y|16px}}</pre>
| <pre>{{icon|subject=Shoot|subject=Bookend|game=P4|textlink=Bookend|size=16px}}</pre>
| {{User:Trig Jegman/Icon|subject=Shoot|textlink=Shoot|size=16px}}
| {{User:Trig Jegman/Icon|subject=Bookend|game=P4|textlink=Bookend|size=16px}}
|-
|-
| <pre>{{icon|Burgeoning Spiderwort|y|v=spicy|n=Spicy Burgeoning Spiderwort|nosize=y}}</pre>
| <pre>{{icon|Burgeoning Spiderwort|subject=Burgeoning Spiderwort|game=P4|variation=spicy|imglink=Burgeoning Spiderwort|textlink=Burgeoning Spiderwort{{!}}Spicy Burgeoning Spiderwort}}</pre>
| {{User:Trig Jegman/Icon|subject=Burgeoning Spiderwort|variation=spicy|imglink=Burgeoning Spiderwort|textlink=Burgeoning Spiderwort{{!}}Spicy Burgeoning Spiderwort}}
| {{User:Trig Jegman/Icon|subject=Burgeoning Spiderwort|game=P2|imglink=Burgeoning Spiderwort|textlink=Burgeoning Spiderwort{{!}}Spicy Burgeoning Spiderwort}}
|}
|}

Latest revision as of 18: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