×
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

mNo edit summary
m (align parameter and change default)
Line 8: Line 8:
The parameters are:<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.
*''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 how many images show. Defaults to 8.<br>
*''count'' for choosing a number of how many images show. Defaults to 8.
Specify which categories you want to use using the page parameters, and the number of pages to list using the count parameter.<br>
*''align'' for where the images align vertically in their row. Can be either ''top'' or ''bottom''. Defaults to ''bottom''.<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>
'''Example'''<br>
<nowiki>{{RecentlyEdited|page0=Yume Nikki Locations|page1=Yume Nikki Characters|page2=Yume 2kki Characters|count=12}}</nowiki>.</noinclude>
<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:execandexit={{#ifeq:{{NAMESPACE}}|Template|disabled on the template|}}|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: 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:execandexit={{#ifeq:{{NAMESPACE}}|Template|disabled on the template|}}|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|bottom}}}; 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 10:49, 24 June 2023

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.
This template will only show pages with the following templates

Parameters
The parameters are:

  • 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 bottom.

Specify which categories of pages you want to include using the page parameters, and the number of pages to list using the count parameter.
Example
{{RecentlyEdited|page0=Yume Nikki Locations|page1=Yume Nikki Characters|page2=Yume 2kki Characters|count=12}}.