Template:PM recipe list: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(Created page with "<includeonly>{| class="wikitable" style="text-align:center" ! Recipe ! {{{resultlabel|Result}}} ! {{{gamelabel|Game}}} {{#forargs:recipe|key|value|<nowiki/> {{!}}- {{!}} {{#var:value}} {{!}}{{!}} {{{result{{#var:key}}|}}} {{!}}{{!}} {{{game{{#var:key}}|}}} }} |}</includeonly><noinclude> == Usage == This template establishes a consistent format for listing which recipes in the ''Paper Mario'' series that an item can be an ingredient of. The sy...")
 
m (use ditto mark instead as a dash would likely confuse some readers as being a recipe not found in any games)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable" style="text-align:center"
<includeonly>{| class="wikitable" style="text-align:center"
! Recipe
! #
! {{{recipelabel|Recipe}}}
! {{{resultlabel|Result}}}
! {{{resultlabel|Result}}}
! {{{gamelabel|Game}}}
! {{{gamelabel|Game}}}
{{#forargs:recipe|key|value|<nowiki/>
{{#forargs:recipe|key|value|<nowiki/>
{{!}}-
{{!}}-
{{!}} {{#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 20: 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 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 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.