Template:InlineIcon: Difference between revisions

From Paper Mario: TTYD Speedrun Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is a template for adding an inline icon to route pages. If used with a single parameter, it will try to use the input for the displayed text, as well as the file name.
This is a template for adding an inline icon to route pages. If used with a single parameter, it will try to use the input for both the displayed text and the file name.


<pre>Get the '''{{InlineIcon|Mushroom}}''' from the block.</pre>
<pre>Get the '''{{InlineIcon|Mushroom}}''' from the block.</pre>
Get the '''{{InlineIcon|Mushroom}}''' from the block.
Get the '''{{InlineIcon|Mushroom}}''' from the block.


If the file name and text need to be different, name the two parameters '''image=''' and '''text='''.
If the file name and text need to be different, name the two parameters '''image''' and '''text'''. This may be necessary if the item/badge has regional sprites, or if you want to list a quantity when buying from a shop.


<pre>{{InlineIcon|image=Power Rush JP.png|text=Power Rush}}
<pre>{{InlineIcon|image=Power Rush JP.png|text=Power Rush}}

Latest revision as of 21:29, 11 November 2026

This is a template for adding an inline icon to route pages. If used with a single parameter, it will try to use the input for both the displayed text and the file name.

Get the '''{{InlineIcon|Mushroom}}''' from the block.

Get the Mushroom from the block.

If the file name and text need to be different, name the two parameters image and text. This may be necessary if the item/badge has regional sprites, or if you want to list a quantity when buying from a shop.

{{InlineIcon|image=Power Rush JP.png|text=Power Rush}}

{{InlineIcon|image=Fright Mask.png|text=6 Fright Masks}}

Power Rush

6 Fright Masks