×
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:RecentlyEdited: Difference between revisions

mNo edit summary
mNo edit summary
Line 1: Line 1:
<noinclude>This template has DPL code that shows a list of recently edited pages in selected categories. It is in the format of images with link captions underneath. The images are (supposed to be) just barely small enough to fit two images per row on a mobile.<br>
<noinclude>{{documentation}}</noinclude>
'''''This template will only show pages with the following templates'''''<br>
*[[Template:ListChar]]
*[[Template:Locationbox]]
*[[Template:NPCBox]]
*[[Template:Listloc]]<br>
'''Parameters'''<br>
The parameters are:<br>
*''page0'', ''page1'', ''page2'', ''page3'' for choosing which categories of pages to go through. ''page0'' defaults to the page you are on, and the rest default to nothing.
*''count'' for choosing a number of how many images show. Defaults to 8.
*''align'' for where the images align vertically in their row. Can be either ''top'' or ''bottom''. Defaults to ''top''.<br>
Specify which categories of pages you want to include using the page parameters, and the number of pages to list using the count parameter.<br>
'''Example'''<br>
<nowiki>{{RecentlyEdited|page0=Yume Nikki Locations|page1=Yume Nikki Characters|page2=Yume 2kki Characters|count=12}}</nowiki>.</noinclude>
<includeonly>
<includeonly>
<div class="toccolours mw-collapsible"><big>'''Recently Edited'''</big><div class="mw-collapsible-content">{{#dpl:category={{{page0|{{PAGENAME}}}}}{{!}}{{{page1|}}}{{!}}{{{page2|}}}{{!}}{{{page3|}}}|uses=Template:ListChar{{!}}Template:Locationbox{{!}}Template:NPCBox{{!}}Template:Listloc|count={{{count|8}}}|include={ListChar}:image,{Locationbox}:image,{NPCBox}:image,{Listloc}:image|format=<div style{{=}}'text-align: center;'><ul>,<li style{{=}}"display: inline-block; vertical-align: {{{align|top}}}; width: 135px;">[[,{{!}}none{{!}}135x101px{{!}}%PAGE%]]<div style{{=}}'max-width: 135px; text-align: center;'>[[%PAGE%{{!}}%TITLE%]]</div></li>\n,</ul></div>|secseparators=,,File:,,,,,|multisecseparators={{!}}aa,,,|dominantsection=1|ordermethod=lastedit|order=descending|cacheperiod=604800}}</div></div></includeonly>
<div class="toccolours mw-collapsible"><big>'''Recently Edited'''</big><div class="mw-collapsible-content">{{#dpl:category={{{page0|{{PAGENAME}}}}}{{!}}{{{page1|}}}{{!}}{{{page2|}}}{{!}}{{{page3|}}}|uses=Template:ListChar{{!}}Template:Locationbox{{!}}Template:NPCBox{{!}}Template:Listloc|count={{{count|8}}}|include={ListChar}:image,{Locationbox}:image,{NPCBox}:image,{Listloc}:image|format=<div style{{=}}'text-align: center;'><ul>,<li style{{=}}"display: inline-block; vertical-align: {{{align|top}}}; width: 135px;">[[,{{!}}none{{!}}135x101px{{!}}%PAGE%]]<div style{{=}}'max-width: 135px; text-align: center;'>[[%PAGE%{{!}}%TITLE%]]</div></li>\n,</ul></div>|secseparators=,,File:,,,,,|multisecseparators={{!}}aa,,,|dominantsection=1|ordermethod=lastedit|order=descending|cacheperiod=604800}}</div></div></includeonly>

Revision as of 06:51, 1 July 2023

Documentation (for the above template, sometimes hidden or invisible)

Description

This template has DPL code that shows a list of recently edited pages in selected categories using a packed gallery.

Syntax

On a category page of either locations or characters:

{{RecentlyEdited}}

On other pages:

{{RecentlyEdited|category=}}

Usage

The template places a collapsible section of articles with images. The images are taken from templates used on the article pages. The template is recommended to be used directly on a category page, which will have it display pages from that category.

This template can only show pages that use the following templates:

From this it's obvious that only pages of locations and characters really work, hence it's best to use a category with those pages as the input.

The limitations in page selection restrict the use of the template, so any help in making it more general is appreciated.

Parameters

Displays a packed gallery of recently edited pages in a category.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Category/Categoriescategory

Input one or more category names to display recently edited articles from those categories. Separate multiple with the magic word {{!}}.

Example
Yume Nikki Locations{{!}}Yume Nikki Characters
Auto value
{{PAGENAME}}
Lineoptional
Number of Articlescount

The number of articles to display (from most recently edited to least recent).

Default
12
Numberoptional

Sample

The following input:

{{RecentlyEdited|category=Qxy{{!}}Spelude, Noildoof{{!}}Autumn|count=9}}

Produces:


Recently Edited