Template:Oatchi: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
No edit summary
Tags: Mobile edit Advanced mobile edit
(blank the image alt since it's handled by the span text)
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[File:Oatchi P4 icon.png|16px|class=invert|link={{#if:{{{1|}}}|{{{1}}} (Oatchi)}}]]<span style="font-size:0">Oatchi</span>{{#if:{{{1|}}}|[[{{{1}}} (Oatchi)| {{{1}}}]]}}<noinclude>
[[File:Oatchi P4 icon.png|16px|alt=|class=invert|link={{#if:{{{1|}}}|Gear#Pup {{{1}}}}}]]<span style="font-size:0">{{{alt|Pup}}}</span>{{#if:{{{1|}}}|[[Gear#Pup {{{1}}}| {{{1}}}]]}}<noinclude>


==Info==
==Info==
This template places an [[Oatchi]] icon on the page, in a style that matches {{p4}}{{'s}} usage of this icon in text. The template includes a parameter where the name of a piece of Pup Gear can be entered, which will display the Gear name alongside the icon and make them both a link to the respective section on the [[Gear]] article.
This template places an [[Oatchi]] icon on the page, in a style that matches {{p4}}{{'s}} usage of this icon in text.


==Example==
==Parameters==
{| class = "wikitable"
! Parameter || Mandatory || Default || Purpose || Detailed description
|-
! 1
| '''No''' ||  || Pup Gear || The name of a piece of Pup Gear. Displays the Gear name alongside the icon and links them both to the respective section on the [[Gear]] article.
|-
! alt
| '''No''' || Pup || Alt text || The alt text of the icon. Used for things such as the table of contents and a page's preview text. To remove the alt text completely, set <code>alt</code> equal to nothing (i.e. <code><nowiki>{{oatchi|alt=}}</nowiki></code>).
|}
 
==Examples==
{|class="wikitable"
{|class="wikitable"
! Code
! Code
! Result
! Result
! Read as
|-
|-
| <pre>{{oatchi}} Air Armor</pre>
| <pre>{{oatchi}} Air Armor</pre>
| {{oatchi}} Air Armor
| {{oatchi}} Air Armor
| Pup Air Armor
|-
|-
| <pre>{{oatchi|Air Armor}}</pre>
| <pre>{{oatchi|Air Armor}}</pre>
| {{oatchi|Air Armor}}
| {{oatchi|Air Armor}}
| Pup Air Armor
|-
| <pre>{{oatchi|Air Armor|alt=Oatchi's}}</pre>
| {{oatchi|Air Armor|alt=Oatchi's}}
| Oatchi's Air Armor
|}
|}


[[Category:Inline templates]]</noinclude>
[[Category:Inline templates]]</noinclude>

Revision as of 08:35, February 20, 2024

Pup

Info

This template places an Oatchi icon on the page, in a style that matches Pikmin 4's usage of this icon in text.

Parameters

Parameter Mandatory Default Purpose Detailed description
1 No Pup Gear The name of a piece of Pup Gear. Displays the Gear name alongside the icon and links them both to the respective section on the Gear article.
alt No Pup Alt text The alt text of the icon. Used for things such as the table of contents and a page's preview text. To remove the alt text completely, set alt equal to nothing (i.e. {{oatchi|alt=}}).

Examples

Code Result Read as
{{oatchi}} Air Armor
Pup Air Armor Pup Air Armor
{{oatchi|Air Armor}}
Pup Air Armor Pup Air Armor
{{oatchi|Air Armor|alt=Oatchi's}}
Oatchi's Air Armor Oatchi's Air Armor