Template:Content appearances: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary |
No edit summary Tags: Mobile edit Advanced mobile edit |
||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{wikitable|}}}|{{{!}} class="wikitable {{#if:{{{dk|}}}|dk}}" style="width:100%; text-align:center"}} | <includeonly>{{#if:{{{wikitable|}}}|{{{!}} class="wikitable {{#if:{{{sortable|}}}|sortable}} {{#if:{{{dk|}}}|dk}}" style="width:100%; text-align:center"}} | ||
! width="12%" | {{{imagelabel|Image}}} | ! {{#if:{{{sortable|}}}|class="unsortable"}} width="12%" | {{{imagelabel|Image}}} | ||
! width="10%" | Name | ! width="10%" | Name | ||
! {{{descriptionlabel|Description}}} | ! {{#if:{{{sortable|}}}|class="unsortable" {{!}}}}{{{descriptionlabel|Description}}} | ||
! width="7%" |{{{firstlevellabel|First level}}} | ! width="7%" |{{{firstlevellabel|First level}}} | ||
! width="7%" |{{{lastlevellabel|Last level}}} | ! width="7%" |{{{lastlevellabel|Last level}}} | ||
Line 27: | Line 27: | ||
This works for any amount of numbered <code>image</code>/<code>name</code>/<code>description</code>/<code>firstlevel</code>/<code>lastlevel</code> parameters. | This works for any amount of numbered <code>image</code>/<code>name</code>/<code>description</code>/<code>firstlevel</code>/<code>lastlevel</code> parameters. | ||
Additionally, if the value of <code>dk</code> is set to <code>y</code>, then the <code>dk</code> class is applied to the wikitable. Granted, <code>wikitable</code> must be set to <code>y</code> to use this as a standalone wikitable rather than as rows within a wikitable. | Additionally, if the value of <code>dk</code> is set to <code>y</code>, then the <code>dk</code> class is applied to the wikitable. Also, if the value of <code>sortable</code> is set to <code>y</code>, then the <code>sortable</code> class is applied to the wikitable. Granted, <code>wikitable</code> must be set to <code>y</code> to use this as a standalone wikitable rather than as rows within a wikitable. | ||
[[Category:Content templates]]</noinclude> | [[Category:Content templates]]</noinclude> |
Revision as of 16:30, May 15, 2024
A variation of {{content description}} that also lists the first and last levels where something appears.
Usage
The syntax is as follows:
{{content appearances |image1= |name1= |description1= |firstlevel1= |lastlevel1= }}
This works for any amount of numbered image
/name
/description
/firstlevel
/lastlevel
parameters.
Additionally, if the value of dk
is set to y
, then the dk
class is applied to the wikitable. Also, if the value of sortable
is set to y
, then the sortable
class is applied to the wikitable. Granted, wikitable
must be set to y
to use this as a standalone wikitable rather than as rows within a wikitable.