Help:Dynamic page list
this wiki
DynamicPageList is a Mediawiki extension originally developed for Wikinews. It enables Memory Alpha archivists to create a list of pages that are listed in a set of categories. For more information see Dynamic Page List on MediaWiki.
Every page on Memory Alpha that invokes DPL links to a special "Extension DPL" template automatically.
Use
Edit
DynamicPageList can be used with XML-like syntax in the wiki edit view. The parameters control the pages to list, the display order, and the display mode. See the following sections for information on each parameter. For example, the following are the oldest five pages on Memory Alpha that need one or more citations:
<dpl> category = Memory Alpha pages needing citation count = 5 order = ascending addfirstcategorydate = true </dpl>
- 2014-05-18 16:40:36 2335
- 2016-02-28 08:25:53 61 Cygni
- 2016-02-22 04:10:45 Aldebaran whiskey
- 2016-06-10 19:29:26 Alexander Enberg
- 2013-08-28 03:38:22 Alien of the week
Below are some commonly-used options and parameters. For a complete set of DynamicPageList commands, see the manual on the DPL website.
Page selection
Edit
- category
- lists categories from which to select articles. DynamicPageList will list pages that are found in every category listed on a separate category line (i.e. an AND operation). To perform an OR operation, separate categories with the pipe character ("|") on a single category line. A minimum and maximum number of entries to list is set in the extension's source code. You may use magic words like {{CURRENTMONTHNAME}} in the category name.
- The syntax is
category = 1st category name | 2nd category name | ...
This example will list pages that have [[Category:TOS performers]] OR [[Category:TAS performers]], AND [[Category:ENT performers]]:
<dpl> category = TOS performers|TAS performers category = ENT performers </dpl>
- notcategory
- restricts the list of pages to those not in a particular category. You can use magic words like {{CURRENTMONTHNAME}} in the category name.
- The syntax is
notcategory = category name
This example will list pages that have [[Category:TAS performers]] but NOT [[Category:TOS performers]]:
<dpl> category = TAS performers notcategory = TOS performers </dpl>
- namespace
- restricts the list of pages displayed to those in one of the listed namespaces, specified by name (see the List of namespaces). To select the main namespace, use a null string as the namespace parameter (i.e.
namespace =). An invalid name produces an error message.- Note that namespace ids are no longer valid as namespace arguments.
- The syntax is
namespace = 1st namespace name | 2nd namespace name | ...
<dpl> category = Memory Alpha maintenance templates namespace = Template </dpl>
- Template:!
- Template:!!
- Template:&
- Template:'
- Template:----
- Template:=
- Template:Also
- Template:Anchor
- Template:Blurb
- Template:Bots
- Template:Bracket left
- Template:Bracket right
- Template:Clear
- Template:Cm2cmn
- Template:Colon
- Template:Colored Panel
- Template:Curly left
- Template:Curly right
- Template:DEFAULTSORT
- Template:DISPLAYTITLE
- Template:Daysago
- Template:Documentation
- Template:Documentation subpage
- Template:Enabled with WikiFeatures
- Template:Example
- Template:Extension DPL
- Template:Extension DPL cache
- Template:Greek
- Template:Here
- Template:Hidden category
- Template:Image link
- Template:International
- Template:International needs translation
- Template:Internationalshort
- Template:Linktip
- Template:Navbox
- Template:New
- Template:News edit
- Template:Ogginfo
- Template:Panel
- Template:Panel2
- Template:Portal
- Template:RequestedLinks
- Template:Shortcut
- Template:Startdiscussion
- Template:Svg
- Template:TOCright
- Template:Tabview message
- Template:Tba
- Template:Trek box office
- Template:Unsigned
- Template:Unsigned-anon
- Template:Visible anchor
- redirects
- determines whether or not to include redirect pages. The value can be exclude (default, don't list redirects), include (list redirects), or only (don't list pages that aren't redirects).
<dpl> category = Nicknames redirects = only </dpl>
- count
- restricts the number of results that are shown. By default, the pages added to the category most recently are shown (see order). Note that the extension will not list more results than the maximum defined in the extension source code.
<dpl> category = Performers count = 3 </dpl>
Details displayed
Edit
- shownamespace
- displays the namespace in the page names. The value can be true (default, display in name: Help:Contents) or false (don't display in name: Contents).
<dpl> category = Memory Alpha maintenance templates shownamespace = false </dpl>
- !
- !!
- &
- '
- ----
- =
- Also
- Anchor
- Blurb
- Bots
- Bracket left
- Bracket right
- Clear
- Cm2cmn
- Colon
- Colored Panel
- Curly left
- Curly right
- DEFAULTSORT
- DISPLAYTITLE
- Daysago
- Documentation
- Documentation subpage
- Enabled with WikiFeatures
- Example
- Extension DPL
- Extension DPL cache
- Greek
- Here
- Hidden category
- Image link
- International
- International needs translation
- Internationalshort
- Linktip
- Memory Alpha article type templates
- Memory Alpha constants templates
- Memory Alpha did you know templates
- Memory Alpha featured article templates
- Memory Alpha internal templates
- Memory Alpha message templates
- Memory Alpha navigational templates (maintenance)
- Memory Alpha pic of the day templates
- Memory Alpha stub templates
- Memory Alpha titles templates
- Navbox
- New
- News edit
- Ogginfo
- Panel
- Panel2
- Portal
- RequestedLinks
- Shortcut
- Startdiscussion
- Svg
- TOCright
- Tabview message
- Tba
- Trek box office
- Unsigned
- Unsigned-anon
- Visible anchor
- addfirstcategorydate
- shows the date each article was added to category. The value can be true (display date) or false (default, don't display date). If many categories are specified, it uses the first category. The linked page names are prepended with the date formatted according to your date display preferences.
<dpl> category = Aquans addfirstcategorydate = true </dpl>
- 2006-11-28 01:57:27 Cadmar
- 2017-02-22 02:08:24 Cheeron
- 2006-11-28 01:57:27 Domar
- 2006-11-28 01:57:20 Lemus
- 2009-04-25 21:28:26 Category:Memory Alpha images (Aquans)
- 2006-11-28 01:57:20 Nephro
- 2006-11-28 01:57:37 Rila
- 2007-08-24 13:45:01 Unnamed Aquans
- mode
- determines the format of the list. The value can be unordered (default, outputs a bulleted list, HTML tag "ul"), ordered (outputs numbered list, HTML tag "ol"), none (outputs plain text with line breaks), or inline (outputs an inline list separated by the character(s) specified in the 'inlinetext' parameter).
unordered: <dpl> category = Constellations mode = unordered </dpl> ordered: <dpl> category = Constellations mode = ordered </dpl> plain text: <dpl> category = Constellations mode = none </dpl> inline: <dpl> category = Constellations mode = inline </dpl>
unordered:
- Andromeda
- Aries
- Auriga
- Cancer (constellation)
- Canis Major
- Canis Minor
- Cetus
- Columba
- Cygnus
- Eastern lights
- Eridanus
- Fornax
- Gemini (constellation)
- Great Horn
- Hercules (constellation)
- Leo (constellation)
- Lepus
- Lynx
- Monoceros
- Orion (constellation)
- Perseus
- Pisces
- Puppis
- Scorpius
- Sculptor (constellation)
- Taurus
- The Runners
- Virgo
ordered:
- Andromeda
- Aries
- Auriga
- Cancer (constellation)
- Canis Major
- Canis Minor
- Cetus
- Columba
- Cygnus
- Eastern lights
- Eridanus
- Fornax
- Gemini (constellation)
- Great Horn
- Hercules (constellation)
- Leo (constellation)
- Lepus
- Lynx
- Monoceros
- Orion (constellation)
- Perseus
- Pisces
- Puppis
- Scorpius
- Sculptor (constellation)
- Taurus
- The Runners
- Virgo
plain text:
Andromeda
Aries
Auriga
Cancer (constellation)
Canis Major
Canis Minor
Cetus
Columba
Cygnus
Eastern lights
Eridanus
Fornax
Gemini (constellation)
Great Horn
Hercules (constellation)
Leo (constellation)
Lepus
Lynx
Monoceros
Orion (constellation)
Perseus
Pisces
Puppis
Scorpius
Sculptor (constellation)
Taurus
The Runners
Virgo
inline:
Andromeda - Aries - Auriga - Cancer (constellation) - Canis Major - Canis Minor - Cetus - Columba - Cygnus - Eastern lights - Eridanus - Fornax - Gemini (constellation) - Great Horn - Hercules (constellation) - Leo (constellation) - Lepus - Lynx - Monoceros - Orion (constellation) - Perseus - Pisces - Puppis - Scorpius - Sculptor (constellation) - Taurus - The Runners - Virgo
- inlinetext
- defines the inline text separator to be used when
mode = inlineis specified. The default is - .
<dpl> category = Asteroids mode = inline shownamespace = false inlinetext = • </dpl>
Apperson's Asteroid • Asteroid alpha 331 • Asteroid belts • Asteroid beta 671 • Asteroid gamma 601 • Internment Camp 371 • Rura Penthe • Talaxian asteroid colony • Unnamed asteroids • Vedala asteroid • Yonada
Order
Edit
- ordermethod
- determines the order and date to display. The value can be categoryadd (output sorted by date pages added to first category), counter (output sorted based on number of times pages have been viewed, i.e. ~popularity), size (output sorted based on size of articles), firstedit (output sorted by date pages were first edited, i.e. page creation), lastedit (output sorted by date pages were last edited), title (default, output sorted by article (prefix+)title) or titlewithoutnamespace (output sorted by article title regardless of namespace).
lastedit: <dpl> category = Ba'ku addfirstcategorydate = true ordermethod = lastedit </dpl> categoryadd: <dpl> category = Ba'ku addfirstcategorydate = true ordermethod = categoryadd </dpl>
lastedit:
- 2007-02-07 22:56:16 Tournel
- 2009-04-25 21:29:02 Category:Memory Alpha images (Ba'ku)
- 2012-06-26 11:45:25 Sojef
- 2010-08-01 05:20:22 Unnamed Ba'ku
- 2007-02-07 22:58:41 Unnamed Son'a
- 2012-06-26 11:26:10 Gallatin
- 2007-02-07 22:54:57 Artim
- 2012-06-26 12:20:10 Ru'afo
- 2007-02-07 22:54:40 Anij
categoryadd:
- 2007-02-07 22:54:40 Anij
- 2007-02-07 22:54:57 Artim
- 2007-02-07 22:56:16 Tournel
- 2007-02-07 22:58:41 Unnamed Son'a
- 2009-04-25 21:29:02 Category:Memory Alpha images (Ba'ku)
- 2010-08-01 05:20:22 Unnamed Ba'ku
- 2012-06-26 11:26:10 Gallatin
- 2012-06-26 11:45:25 Sojef
- 2012-06-26 12:20:10 Ru'afo
- order
- decides the sort direction. The value can be descending (default, most recent to oldest) or ascending (oldest to most recent).
<dpl> category = Ba'ku order = ascending </dpl>
Go • Search • Namespaces • Page names • Shortcuts (keyboard) • Links (backlinks • piped • interwiki • redirects) • Categories • Supported browsers
New pages • Editing • Sections • Templates • Special characters • ISBN links • Edit summary • Minor edits • Edit conflicts
Wiki markup (HTML) • Tables (sorting) • Sections • Images (galleries) • Formulas • Poems and lyrics
Recent changes (enhanced) • Related changes • Watching pages • Diff • Page history • Edit summary • User contributions • Minor edits
Starting a new page • Renaming a page • Merging two pages • Protecting a page • Deleting a page • Edit conflicts
Parser functions • Variables • Magic words • Input boxes • Image maps • Random selections • Dynamic page lists • RSS feeds • Tabview • Category trees • Ogg files