Template:PM recipe list: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (use ditto mark instead as a dash would likely confuse some readers as being a recipe not found in any games)
mNo edit summary
 
Line 6: Line 6:
{{#forargs:recipe|key|value|<nowiki/>
{{#forargs:recipe|key|value|<nowiki/>
{{!}}-
{{!}}-
{{!}} {{#var:key}} {{!}}{{!}} {{#var:value}} {{!}}{{!}} {{{result{{#var:key}}|}}} {{!}}{{!}} {{{game{{#var:key}}|"}}}
{{!}} {{#var:key}} {{!}}{{!}} {{#var:value}} {{!}}{{!}} {{{result{{#var:key}}|"}}} {{!}}{{!}} {{{game{{#var:key}}|"}}}
}}
}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
Line 22: Line 22:
This works for any amount of numbered <code>recipe</code>/<code>result</code>/<code>game</code> parameters.
This works for any amount of numbered <code>recipe</code>/<code>result</code>/<code>game</code> parameters.


The numbered <code>game</code> parameters output the [[wikipedia:Ditto mark|ditto mark]] (<code>"</code>) by default; this allows a game title to only be listed once up until the list makes its way down to the next game title.
The numbered <code>result</code> and <code>game</code> parameters output the [[wikipedia:Ditto mark|ditto mark]] (<code>"</code>) by default; this allows a game title to only be listed once up until the list makes its way down to the next game title.


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

Latest revision as of 13:49, August 18, 2024

Usage

This template establishes a consistent format for listing the recipes in the Paper Mario series that an item can be an ingredient of. The syntax is as follows:

{{PM recipe list
|recipe1=
|result1=
|game1=
}}

This works for any amount of numbered recipe/result/game parameters.

The numbered result and game parameters output the ditto mark (") by default; this allows a game title to only be listed once up until the list makes its way down to the next game title.