(Created page with "==Description== This template has DPL code that shows a list of all locations/NPCs in a category of locations/characters with thumb images next to each article link. <br clear=all> ==Syntax== On a category of locations or characters:<br> <pre>{{ListThumb}}</pre><br> On any other page:<br> <pre>{{ListThumb|page=Yume Nikki Locations}}</pre><br> With other parameters:<br> <pre>{{ListThumb|page=Yume Nikki Characters|size=70|columns=3}}</pre> <br clear=all> ==Usage== The func...") |
m (remove column param) |
||
(13 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
<br clear=all> | <br clear=all> | ||
==Syntax== | ==Syntax== | ||
On a category of locations or characters: | On a category of locations or characters: | ||
<pre>{{ListThumb}}</pre | <pre>{{ListThumb}}</pre> | ||
On any other page: | On any other page: | ||
<pre>{{ListThumb|page=Yume Nikki Locations}}</pre | <pre>{{ListThumb|page=Yume Nikki Locations}}</pre> | ||
==Usage== | ==Usage== | ||
The function creates collapsible section with a default of two columns. Articles are listed in alphabetical order and a thumbnail from each is placed to the left of the article name. This creates a more visual list than the pure text of category pages. Its recommended to use this template directly on the location/character categories. When used on a category | The function creates collapsible section with a default of two columns. Articles are listed in alphabetical order and a thumbnail from each is placed to the left of the article name. This creates a more visual list than the pure text of category pages. Its recommended to use this template directly on the location/character categories. This template does not work with any other category of articles as they do not use the Locationbox, NPCBox, or Characterbox templates. | ||
Note: this template is prevented from working on [[Category:Yume 2kki Locations]] as loading 800+ images is not a good idea. | |||
When used on a category of articles that use any of Locationbox, NPCBox, or Characterbox, the function grabs the images from the articles to use them as thumbnails. You can choose which category to generate a list of by specifying the ''page'' parameter. | |||
Keep in mind that the ''size'' parameter defaults to 100px and restricts both height and width. | |||
Note: this template is prevented from working on [[:Category:Yume 2kki Locations]] as loading 800+ images is not a good idea. | |||
==Parameters== | ==Parameters== | ||
<templatedata> | <templatedata>{ "description": "","params": { | ||
{ | |||
"page": { | "page": { | ||
"label": "Category Page", | "label": "Category Page", | ||
"type": "line", | "type": "line", | ||
"description": "Select | "description": "Select the category of which to generate a list of articles with thumbnails.", | ||
"example": "Wataru", | "example": "Wataru", | ||
"autovalue": "{{PAGENAME}}" | "autovalue": "{{PAGENAME}}" | ||
}, | }, | ||
"size": { | "size": { | ||
"label": "Thumbnail | "label": "Thumbnail Size", | ||
"type": "number", | "type": "number", | ||
"description": "Limit the width of | "description": "Limit both the width and height of each thumbnail image to a size in pixels.", | ||
"default": "100" | "default": "100" | ||
}}}</templatedata> | |||
} | |||
</templatedata> | |||
==Sample== | ==Sample== | ||
The following input: | The following input: | ||
<pre>{{ListThumb|page=HAL|size=300}}</pre> | |||
{{ListThumb|page=HAL|size=300 | |||
</pre | |||
Produces: | Produces: | ||
{{ListThumb|page=HAL|size=300 | {{ListThumb|page=HAL|size=300}} | ||
<noinclude>__NOTOC__ [[Category:Template documentation]]</noinclude> | <noinclude>__NOTOC__ [[Category:Template documentation]]</noinclude> | ||
<includeonly>__NOEDITSECTION__</includeonly> |
Latest revision as of 06:14, 22 July 2023
Description
This template has DPL code that shows a list of all locations/NPCs in a category of locations/characters with thumb images next to each article link.
Syntax
On a category of locations or characters:
{{ListThumb}}
On any other page:
{{ListThumb|page=Yume Nikki Locations}}
Usage
The function creates collapsible section with a default of two columns. Articles are listed in alphabetical order and a thumbnail from each is placed to the left of the article name. This creates a more visual list than the pure text of category pages. Its recommended to use this template directly on the location/character categories. This template does not work with any other category of articles as they do not use the Locationbox, NPCBox, or Characterbox templates.
When used on a category of articles that use any of Locationbox, NPCBox, or Characterbox, the function grabs the images from the articles to use them as thumbnails. You can choose which category to generate a list of by specifying the page parameter.
Keep in mind that the size parameter defaults to 100px and restricts both height and width.
Note: this template is prevented from working on Category:Yume 2kki Locations as loading 800+ images is not a good idea.
Parameters
Parameter | Description | Type | Status | |
---|---|---|---|---|
Category Page | page | Select the category of which to generate a list of articles with thumbnails.
| Line | optional |
Thumbnail Size | size | Limit both the width and height of each thumbnail image to a size in pixels.
| Number | optional |
Sample
The following input:
{{ListThumb|page=HAL|size=300}}
Produces: