Template:PM recipe list: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
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>
== Usage ==
== Usage ==
This template establishes a consistent format for listing which [[recipe]]s in the [[Paper Mario (series)|''Paper Mario'' series]] that an item can be an ingredient of. The syntax is as follows:
This template establishes a consistent format for listing the [[recipe]]s in the [[Paper Mario (series)|''Paper Mario'' series]] that an item can be an ingredient of. The syntax is as follows:


<pre>
<pre>
Line 21: Line 21:


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>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 14: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.