Template:SMG missions table: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
(Sorry about that)
Tag: Manual revert
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable" style="text-align:center;width:100%"
<includeonly>{| class="wikitable {{#if:{{{sortable|}}}|sortable}}" style="text-align:center"
! Mission
! width=10%|Mission
! {{{imagelabel|Image}}}
! {{#if:{{{sortable|}}}|class="unsortable"}} width=10%|{{{imagelabel|Image}}}
! {{{summarylabel|Summary}}}
! {{#if:{{{sortable|}}}|class="unsortable"}} |{{{summarylabel|Summary}}}
{{#forargs:mission|key|value|<nowiki/>
{{#forargs:mission|key|value|<nowiki/>
{{!}}-
{{!}}-
Line 20: Line 20:


This works for any amount of numbered <code>mission</code>/<code>image</code>/<code>summary</code> parameters.
This works for any amount of numbered <code>mission</code>/<code>image</code>/<code>summary</code> parameters.
In addition, you can apply the <code>sortable</code> class to the template by setting the value of <code>sortable</code> to <code>y</code>.


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

Latest revision as of 12:04, May 23, 2024

Usage

This template establishes a consistent format for listing every mission of a galaxy in Super Mario Galaxy and Super Mario Galaxy 2. The syntax is as follows:

{{SMG missions table
|mission1=
|image1=
|summary1=
}}

This works for any amount of numbered mission/image/summary parameters.

In addition, you can apply the sortable class to the template by setting the value of sortable to y.