Template:PM recipe list: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
m (use ditto mark instead as a dash would likely confuse some readers as being a recipe not found in any games)
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 <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>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>

Revision as of 10:53, July 29, 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 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.