More actions
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
This page relies heavily on DPL3 (Dynamic Page List 3), documentation here: https://help.fandom.com/wiki/Extension:DPL3/Manual. DPL has a 1 day cache and will not update before then. To force it to update, go to the essays homepage and in the menu click on '''Soft Refresh'''. | This page relies heavily on DPL3 (Dynamic Page List 3), documentation here: https://help.fandom.com/wiki/Extension:DPL3/Manual. DPL has a 1 day cache and will not update before then. To force it to update, go to the essays homepage and in the menu click on '''Soft Refresh'''. | ||
I’m unsure how | I’m unsure how many resources DPL needs to make the page, I can only hope the server supports the load once we start getting a lot of essays. | ||
--- | --- | ||
Line 14: | Line 14: | ||
* [[Template:Essay categories|Essay_categories]] | * [[Template:Essay categories|Essay_categories]] | ||
* [[Template:Essay authors|Essay_authors]] | * [[Template:Essay authors|Essay_authors]] | ||
We also use one module ([[Module:Reading time]]) to estimate a reading time. It can be invoked on any page though. | |||
While each template has its own stylesheet, we really only use the ones associated with Essays_homepage and Infobox_essay (found at /style.css). On MediaWiki, once a stylesheet is called on a page (through a template for example), it will apply to ''everything'' it can on that page. By selectively declaring properties in either essays_homepage or infobox_essay, we can control what appears (and how) on the new essays page (called the '''essays feed''') AND on individual '''essay pages''' (one such example: [[Essay:A nutrition and fitness guide]]) as well. | While each template has its own stylesheet, we really only use the ones associated with Essays_homepage and Infobox_essay (found at /style.css). On MediaWiki, once a stylesheet is called on a page (through a template for example), it will apply to ''everything'' it can on that page. By selectively declaring properties in either essays_homepage or infobox_essay, we can control what appears (and how) on the new essays page (called the '''essays feed''') AND on individual '''essay pages''' (one such example: [[Essay:A nutrition and fitness guide]]) as well. | ||
This documentation goes through each template and the module one by one. | This documentation goes through each template and the module one by one. | ||
== Essays_homepage == | == Essays_homepage == | ||
Line 80: | Line 70: | ||
The code:<blockquote><nowiki><dpl></nowiki> | The code:<blockquote><nowiki><dpl></nowiki> | ||
namespace = Essay | |||
ordermethod = lastedit | ordermethod = lastedit | ||
Line 94: | Line 84: | ||
addeditdate=true | addeditdate=true | ||
titlemaxlength= | titlemaxlength=60 | ||
userdateformat = Y-m-d format = ,\n* <span class="essay-small">%DATE%</span>, <span class="lastupdate-title">[[%PAGE%|%TITLE%]]</span>, | userdateformat = Y-m-d format = ,\n* <span class="essay-small">%DATE%</span>, <span class="lastupdate-title">[[%PAGE%|%TITLE%]]</span>, | ||
</ dpl></blockquote>What it does is create a list of the 7 most recently updated essays (that is, when an edit was committed) | </ dpl></blockquote>What it does is create a list of the 7 most recently updated essays (that is, when an edit was committed). You can change that 7 count to anything else in the template by editing '''count = 7''' in the DPL code. | ||
titlemaxlength sets how many characters can appear in the title variable before we truncate it with ... I picked | titlemaxlength sets how many characters can appear in the title variable before we truncate it with ... I picked 60 so that it still looks good on desktop (about 2 full lines of text), but we can change it at any time. | ||
Notably we also order by last edit (ordermethod), meaning the most recently updated essay will be pushed to the top of the list. | Notably we also order by last edit (ordermethod), meaning the most recently updated essay will be pushed to the top of the list. | ||
Line 152: | Line 142: | ||
<blockquote><nowiki><dpl></nowiki> | <blockquote><nowiki><dpl></nowiki> | ||
namespace=Essay | |||
mode=unordered | mode=unordered | ||
Line 158: | Line 148: | ||
includesubpages=false | includesubpages=false | ||
ordermethod= firstedit | ordermethod=firstedit | ||
order=descending | order=descending | ||
Line 165: | Line 155: | ||
<nowiki></dpl></nowiki></blockquote> | <nowiki></dpl></nowiki></blockquote> | ||
Line 175: | Line 164: | ||
ordermethod= is how the output will be sorted. Firstedit means that it will list the output by first edit made, i.e. page creation. Lastedit is the last edit made (used for Latest Updates). There’s several other ordering methods available. | ordermethod= is how the output will be sorted. Firstedit means that it will list the output by first edit made, i.e. page creation. Lastedit is the last edit made (used for Latest Updates). There’s several other ordering methods available. | ||
order=ascending or descending to sort the list one way or the other. | order=ascending or descending to sort the list one way or the other. | ||
include= this is the important one. Include allows you to include something specific with your output, pulled from the page. In this case we pull the content of the infobox_essay template | include= this is the important one. Include allows you to include something specific with your output, pulled from the page. In this case we pull the content of the infobox_essay template. | ||
This code together creates a bullet-point list ordered from most recent to oldest essay and pulls the infobox essay template under each bullet point. | This code together creates a bullet-point list ordered from most recent to oldest essay and pulls the infobox essay template under each bullet point. |