Template:Infobox ship part: Difference between revisions

Screw it, mandatory/optional categorization is now done manually, and that code was broken.
(Fixed the P3D context trying to categorize the article.)
(Screw it, mandatory/optional categorization is now done manually, and that code was broken.)
Line 20: Line 20:
! {{#if:{{{pikmin3deluxe|}}}|Mission|Location}}
! {{#if:{{{pikmin3deluxe|}}}|Mission|Location}}
| [[{{{location}}}]]
| [[{{{location}}}]]
|}<includeonly>{{#if:{{{noicons|}}}||{{#if:{{{pikmin3deluxe|}}}||{{#if:{{{pikmin1|}}}|{{game icons|p=y|p3=y}}|{{game icons|p=y}}}}}}}} [[Category:Ship parts]]{{#if:{{{pikmin1|}}}|{{#ifeq:{{{mandatory}}}|no|[[Category:Optional ship parts]]|[[Category:Mandatory ship parts]]}}}}</includeonly><noinclude>
|}<includeonly>{{#if:{{{noicons|}}}||{{#if:{{{pikmin3deluxe|}}}||{{#if:{{{pikmin1|}}}|{{game icons|p=y|p3=y}}|{{game icons|p=y}}}}}}}} [[Category:Ship parts]]</includeonly><noinclude>


{{clear}}
{{clear}}
Line 26: Line 26:
Place this at the top of [[ship part]] articles. This creates an information box with data about the ship part.
Place this at the top of [[ship part]] articles. This creates an information box with data about the ship part.


Articles with this template are automatically categorized under [[:Category:Ship parts]]. If it's used in the context of ''Pikmin'', it also categorizes the article under either [[:Category:Mandatory ship parts]] or [[:Category:Optional ship parts]].
Articles with this template are automatically categorized under [[:Category:Ship parts]].


==Parameters==
==Parameters==