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



YumeWiki
2,815Articles

Template:RecentlyEdited: Difference between revisions

m (more forced linebreaks)
mNo edit summary
 
(15 intermediate revisions by the same user not shown)
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>
'''Parameters'''<br>
The parameters are:<br>
*''page0'', ''page1'', ''page2'', ''page3'' for choosing which categories of pages to go through. ''page0'' defaults to the Locations category of the namespace you are on, and the rest default to nothing.
*''count'' for choosing how many images show. Defaults to 8.<br>
Specify which categories you want to use 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" style='text-align: center;'>
<div class="toccolours mw-collapsible"><big>'''Recently Edited'''</big><div class="mw-collapsible-content">{{#dpl:category={{#if:{{{category|}}}|{{#arraymap:{{{category}}}|,|item|item|{{!}}}}|{{PAGENAME}}}}|uses=Template:ListChar{{!}}Template:Locationbox{{!}}Template:NPCBox{{!}}Template:Listloc{{!}}Template:Characterbox|count={{{count|8}}}|include={ListChar}:image,{Locationbox}:image,{NPCBox}:image,{Listloc}:image,{Characterbox}:image|format=<div style{{=}}'text-align: center;'><ul>,<li style{{=}}"display: inline-block; vertical-align: {{{align|middle}}}; width: 135px;">[[,{{!}}none{{!}}135x101px{{!}}%PAGE%]]<div style{{=}}'max-width: 135px; text-align: center;'>[[%PAGE%{{!}}%TITLE%]]</div></li>\n,</ul></div>|secseparators=,,File:,,,,,|multisecseparators={{!}}aa,,,{{!}}aa,|dominantsection=1|ordermethod=lastedit|order=descending|cacheperiod=604800}}</div></div></includeonly>
<big>'''Recently Edited'''</big>
<div class="mw-collapsible-content">
{{#dpl:execandexit={{#ifeq:{{NAMESPACE}}|Template|disabled on the template|}}|category={{{page0|{{NAMESPACE}} Locations}}}{{!}}{{{page1|}}}{{!}}{{{page2|}}}{{!}}{{{page3|}}}|count={{{count|8}}}|include={Locationbox}:image,{NPCBox}:image|format=<div style{{=}}'text-align: center;'><ul>,<li style{{=}}"display: inline-block; vertical-align: top; width: 135px;">[[File:,{{!}}none{{!}}135x101px{{!}}%PAGE%]]<div style{{=}}'max-width: 135px; text-align: center;'>[[%PAGE%{{!}}%TITLE%]]</div></li>\n,</ul></div>|rows=2|ordermethod=lastedit|order=descending|cacheperiod=604800}}
</div></div>
</includeonly>

Latest revision as of 04:04, 13 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. It is in the format of images with link captions underneath.

Syntax

On a category page of either locations or characters:

{{RecentlyEdited}}

Manual input and with a higher number of pages listed:

{{RecentlyEdited|category=Yume Nikki Locations, Yume Nikki Characters, Yume 2kki Characters|count=16}}

Usage

The template places a collapsible section containing a selected number of images in a row. The articles to use in the list are those found in inputted categories. The images are taken from templates used on the article pages. This template can only show pages that use the following templates:

  • Template:ListChar
  • Template:Locationbox
  • Template:NPCBox
  • Template:Listloc
  • Template:Characterbox

From this it's obvious that only pages of locations and characters really work with this, hence it's best to use those kinds of pages as inputs.
The template is meant to show pages with recent activity as editors may be inclined to follow up on those edits. New pages which would be recieving more edits will appear which similarly attracts more attention. The limitations in page selection are annoying and restrict the use of the template, so any help in making it easier to use is appreciated.

Parameters

Template parameters

ParameterDescriptionTypeStatus
Category/Categoriescategory

Choose category pages to find the recently edited articles from those categories. Separate multiple with commas.

Example
Yume Nikki Locations, Yume 2kki Characters, Wataru
Auto value
{{PAGENAME}}
Lineoptional
Number of Articlescount

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

Default
8
Example
12
Numbersuggested
Article Alignmentalign

How the image and caption underneath are aligned with the rest of the row. As they are grouped together, text spanning multiple lines will mess with the alignment in the same way different image heights would.

Suggested values
bottom top middle
Default
top
Linesuggested

Sample

The following input:

{{RecentlyEdited|category=Qxy, Spelude, Noildoof, Autumn|count=14|align=middle}}

Produces: