Template:PM recipe list: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary |
No 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> | ||
== Usage == | == Usage == | ||
This template establishes a consistent format for listing | 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>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. | |||
[[Category:Content templates]]</noinclude> | [[Category:Content templates]]</noinclude> |
Revision as of 14:06, June 25, 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 -
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.