User:Xerxes: Difference between revisions

Jump to navigation Jump to search
292 bytes removed ,  8 October 2017
Line 138: Line 138:
=== Miscellaneous tips ===
=== Miscellaneous tips ===
==== [https://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party) DPL] ====
==== [https://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party) DPL] ====
Because this is a wiki, there's a lot of neat tricks you can do to find patterns and help you in your quest to document IDs. One of them is DPL. While I won't get into all the specifics of using DPL (since I don't know them myself), here's an example of what you can do with it:
Because this is a wiki, there's a nearly Turing-complete scripting language and all its extensions available to find patterns in the wiki's IDs. The most useful of those extensions is DPL. DPL is the primary method used on the wiki for interacting with IDs both inside and outside of templates, and a familiarity with it is almost crucial. Take the following as a small example of what be done:


<code><nowiki>{{#dpl:titlematch=____28|ordermethod=lastedit|order=ascending|redirects=only|mode=inline|inlinetext=<nowiki>, </nowiki></nowiki><nowiki>|notcategory=Not GameID|notcategory=Unofficial GameID}}</nowiki></code><!--
<pre>{{#dpl:titlematch=____28|ordermethod=lastedit|order=ascending|redirects=only|mode=inline|inlinetext=<nowiki>, </nowiki>|notcategory=Not GameID|notcategory=Unofficial GameID}}</pre>


^^DON'T COPY/PASTE FROM HERE^^! I had to do some absolutely disgusting nowiki-ing to get this shit to come out right. Copy from the actual page, or the one below. -->
This gives an output of:
 
This gives the output of:


{{#dpl:titlematch=____28|ordermethod=lastedit|order=ascending|redirects=only|mode=inline|inlinetext=<nowiki>, </nowiki>|notcategory=Not GameID|notcategory=Unofficial GameID}}
{{#dpl:titlematch=____28|ordermethod=lastedit|order=ascending|redirects=only|mode=inline|inlinetext=<nowiki>, </nowiki>|notcategory=Not GameID|notcategory=Unofficial GameID}}


What this does, is finds all IDs on the wiki with publisher ID 28, and lists them from the last edited to the most recent. With tools like this you can easily go through and add an edit to each ID, and your DPL will update as you go along to put the oldest edit first, so the one on top is always the next one you want to edit. This will help a lot in mass-edits or deep investigations, and it's worth keeping up your sleeve in case a situation crops up where you need it.
What this does, is finds all IDs on the wiki with publisher ID 28, and lists them from the last edited to the most recent. With this someone could easily go through and add an edit to each ID, and the same DPL would update during the process to keep the oldest edit on top.


== TODO ==
== TODO ==
6,906

edits

Navigation menu