Template:Content description: Difference between revisions
mNo edit summary |
(→Usage) Tags: Mobile edit Advanced mobile edit |
||
Line 26: | Line 26: | ||
This works for any amount of numbered <code>image</code>/<code>name</code>/<code>description</code> parameters. | This works for any amount of numbered <code>image</code>/<code>name</code>/<code>description</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. You can also apply the <code>sortable</code> class by setting the value of <code>sortable</code> to <code>y</code> | 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. You can also apply the <code>sortable</code> class to the wikitable by setting the value of <code>sortable</code> to <code>y</code>. | ||
[[Category:Content templates]]</noinclude> | [[Category:Content templates]]</noinclude> |
Revision as of 19:17, May 22, 2024
This template establishes a consistent format for displaying a list of subjects on a game page and their respective descriptions. If you also want to list where something appears first and last, see {{content appearances}}.
For large lists, only use this once you're absolutely certain that everything has been added, since the manual process of adding a new entry in alphabetical order could result in all following numbered parameters each having to be incremented by one.
Usage
The syntax is as follows:
{{content description |image1= |name1= |description1= }}
This works for any amount of numbered image
/name
/description
parameters.
Additionally, if the value of dk
is set to y
, then the dk
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. You can also apply the sortable
class to the wikitable by setting the value of sortable
to y
.