Template:Content description: Difference between revisions
(→Usage) Tags: Mobile edit Advanced mobile edit |
m (Text replacement - "{{!}}}}{{{" to "{{!}}}} {{{") |
||
Line 3: | Line 3: | ||
! {{#if:{{{sortable|}}}|class="unsortable"}} width="12%" | {{{imagelabel|Image}}} | ! {{#if:{{{sortable|}}}|class="unsortable"}} width="12%" | {{{imagelabel|Image}}} | ||
! width="10%" | Name | ! width="10%" | Name | ||
! {{#if:{{{sortable|}}}|class="unsortable" {{!}}}}{{{descriptionlabel|Description}}} | ! {{#if:{{{sortable|}}}|class="unsortable" {{!}}}} {{{descriptionlabel|Description}}} | ||
{{#forargs:name|key|value|<nowiki/> | {{#forargs:name|key|value|<nowiki/> | ||
{{!}}- | {{!}}- |
Revision as of 20:06, June 10, 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
.