×
Create a new article
Write your page title here:
We currently have 3,036 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
3,036Articles

Template:ListThumb/doc: Difference between revisions

mNo edit summary
Line 3: Line 3:
<br clear=all>
<br clear=all>
==Syntax==
==Syntax==
On a category of locations or characters:<br>
On a category of locations or characters:
<pre>{{ListThumb}}</pre><br>
<pre>{{ListThumb}}</pre>
On any other page:<br>
On any other page:
<pre>{{ListThumb|page=Yume Nikki Locations}}</pre><br>
<pre>{{ListThumb|page=Yume Nikki Locations}}</pre>
With other parameters:<br>
With other parameters:
<pre>{{ListThumb|page=Yume Nikki Characters|size=70|columns=3}}</pre>
<pre>{{ListThumb|page=Yume Nikki Characters|size=70|columns=3}}</pre>
<br clear=all>
<br clear=all>
Line 15: Line 15:
<br clear=all>
<br clear=all>
==Parameters==
==Parameters==
<templatedata>
<templatedata>{"params":{
{
"params": {
"page": {
"page": {
"label": "Category Page",
"label": "Category Page",
Line 38: Line 36:
"example": "3",
"example": "3",
"default": "2"
"default": "2"
}
}}}</templatedata>
}
}
</templatedata>
<br clear=all>
<br clear=all>
==Sample==
==Sample==
The following input:
The following input:
<code><pre>{{ListThumb|page=HAL|size=300|columns=1}}</pre></code>
<pre>{{ListThumb|page=HAL|size=300|columns=1}}</pre>
Produces:
Produces:
{{ListThumb|page=HAL|size=300|columns=1}}
{{ListThumb|page=HAL|size=300|columns=1}}
<noinclude>__NOTOC__ [[Category:Template documentation]]</noinclude>
<noinclude>__NOTOC__ [[Category:Template documentation]]</noinclude>

Revision as of 05:27, 1 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}}

With other parameters:

{{ListThumb|page=Yume Nikki Characters|size=70|columns=3}}


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 with articles using either Locationbox or NPCBox, the function grabs the images from the articles to use them as thumbnails. You can still use it on other pages by specifying the page parameter. This template does not work with any other category of articles as they do not use the Locationbox or NPCBox templates. Keep in mind that the size parameter defaults to 100px and only effects width, potentially making tall images a problem.
Note: this template is prevented from working on as loading 800+ images is not a good idea.

Parameters

No description.

Template parameters

ParameterDescriptionTypeStatus
Category Pagepage

Select which category of which to generate a list of articles with thumbnails.

Example
Wataru
Auto value
{{PAGENAME}}
Lineoptional
Thumbnail Widthssize

Limit the width of every thumbnail image to a size in pixels.

Default
100
Example
70
Numberoptional
Number of Columnscolumns

The number of columns the articles are ordered in. Any more than 2 may cause the list to be unreadable on mobile devices.

Default
2
Example
3
Numberoptional


Sample

The following input:

{{ListThumb|page=HAL|size=300|columns=1}}

Produces: