Template:PixelImage: Difference between revisions

From I-Pixelmon
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 35: Line 35:
→ icon + text “Golden Axe”, internal link.
→ icon + text “Golden Axe”, internal link.


{{PixelImage|filename=Minecraft-goldenaxe.png|display=Golden Axe|size=64|wiki=minecraft|showtext=no}}  
{{PixelImage|filename=Minecraft-goldenaxe.png|display=Golden Axe|size=64|wiki=minecraft|showtext=no}} → icon + No text, Minecraft wiki link.
 


{{PixelImage|filename=pixelmon-abilitycapsule.png|display=Ability Capsule|size=64|wiki=pixelmon|showtext=no}}
</noinclude>
</noinclude>

Latest revision as of 16:21, 10 June 2025

Usage

{{PixelImage
|filename = MyImage.png        <!-- required -->
|display  = Diamond Pickaxe    <!-- optional -->
|size     = 32                 <!-- optional, defaults 24 -->
|wiki     = minecraft          <!-- optional: minecraft / pixelmon / ”” -->
}}
Parameters
  • filename – **required**. Exact file name, including extension.
  • display – optional. Text to show next to the icon.
 If omitted, only the icon is shown and it is **not** a link.
  • size – optional. Width (px). Defaults to 24 px.
  • wiki – optional.
 **minecraft** → icon + text link to Minecraft Wiki.  
 **pixelmon**  → icon + text link internally.  
 anything else → no links.
  • showtext – optional (default yes).
 Set to no/false/0 to suppress the text label even if display is supplied.

Examples

→ 24 px icon, no link, no text.

Golden Axe test text → icon + text “Golden Axe”, no links.

Golden Axe → 32 px icon + text, both link to https://minecraft.wiki/w/Golden_Axe


Golden Axe → icon + text “Golden Axe”, internal link.

→ icon + No text, Minecraft wiki link.