Template:PixelImage: Difference between revisions
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
<!-- ================= | <!-- ========================================================= --> | ||
<includeonly>{{#if: {{{4|}}} |[[File:{{{1}}}|{{{3|32}}}px|class=pixelated|link={{{2|{{#titleparts:{{{1}}}|1}}}}}]]<span style="margin:0;padding:0;">[[{{{2|{{#titleparts:{{{1}}}|1}}}}}|{{{4}}}]]</span>|[[File:{{{1}}}|{{{3|32}}}px|class=pixelated|link={{{2|{{#titleparts:{{{1}}}|1}}}}}]]}}<!----></includeonly> | |||
== Usage == | == Usage == | ||
<pre><nowiki>{{PixelImage | <pre><nowiki>{{PixelImage | ||
Revision as of 05:59, 2 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.
Examples
[[File:{{{1}}}|32px|class=pixelated|link={{{1}}}]]
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.
Examples
Template loop detected: Template:PixelImage → 24 px icon, no link, no text.
Template loop detected: Template:PixelImage test text → icon + text “Golden Axe”, no links.
Template loop detected: Template:PixelImage → 32 px icon + text, both link to https://minecraft.wiki/w/Golden_Axe
Template loop detected: Template:PixelImage
→ icon + text “Golden Axe”, internal link.
</noinclude>
→ 24 px icon, no link, no text.
[[File:{{{1}}}|32px|class=pixelated|link={{{1}}}]]
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.
Examples
Template loop detected: Template:PixelImage → 24 px icon, no link, no text.
Template loop detected: Template:PixelImage test text → icon + text “Golden Axe”, no links.
Template loop detected: Template:PixelImage → 32 px icon + text, both link to https://minecraft.wiki/w/Golden_Axe
Template loop detected: Template:PixelImage
→ icon + text “Golden Axe”, internal link.
</noinclude> test text
→ icon + text “Golden Axe”, no links.
[[File:{{{1}}}|32px|class=pixelated|link={{{1}}}]]
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.
Examples
Template loop detected: Template:PixelImage → 24 px icon, no link, no text.
Template loop detected: Template:PixelImage test text → icon + text “Golden Axe”, no links.
Template loop detected: Template:PixelImage → 32 px icon + text, both link to https://minecraft.wiki/w/Golden_Axe
Template loop detected: Template:PixelImage
→ icon + text “Golden Axe”, internal link.
</noinclude>
→ 32 px icon + text, both link to
https://minecraft.wiki/w/Golden_Axe
[[File:{{{1}}}|32px|class=pixelated|link={{{1}}}]]
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.
Examples
Template loop detected: Template:PixelImage → 24 px icon, no link, no text.
Template loop detected: Template:PixelImage test text → icon + text “Golden Axe”, no links.
Template loop detected: Template:PixelImage → 32 px icon + text, both link to https://minecraft.wiki/w/Golden_Axe
Template loop detected: Template:PixelImage
→ icon + text “Golden Axe”, internal link.
</noinclude>
→ icon + text “Golden Axe”, internal link.