User:GrayBeard Actual/DPL Archive
Subpages Menu | |
---|---|
To-Do | |
Sandbox | |
Cheatsheet | |
Diagnostics Pages | |
Notebook | |
DPL Archive | |
My Sig |
DPL Search and Count
"PRE" formatted to reduce DPL queries from the Sandbox.
{{#dpl: |uses = Template:Grid/Crafting Table |format=,|resultsheader=There are currently %TOTALPAGES% pages containing the crafting grid. }}
Create DPL search using new Template:Recipe
Version 2 (with phantom template + formatting from crafting/grid
Begin testing: February 3, 2016
Completed and implemented February 4, 2016
Once the query is ready to go live, change |allowcachedresults=false to true
"PRE" formatted to reduce DPL queries from the Sandbox.
{{#dpl: category=weapons |allowcachedresults=false |uses = Template:Recipe |include = {infobox item}:image, {infobox item}:category, {Recipe} dpl, {infobox item}:unlocked |secseparators = ¶¦ {{#if:,,|[[File:,|30px|link=%PAGE%]]|[[File:Placeholder.png|30px|link=%PAGE%]]}} [[%PAGE%]],¶¦,,¶¦,¶¦, |multisecseparators = ,,<br> |format={¦ class="wikitable sortable"¶!Item!!Category!! class="unsortable" ¦ Required Materials!!Unlocked Through,¶¦-,,¶¦} }}
DPL Search: Recent Edits
10 most-recent edits to pages matching these parameters:
"PRE" formatted to reduce the number of DPL queries from this Sandbox.
{{#dpl: | category = Craftable_items | notcategory = Removed_Items | uses = Template:Grid/Crafting_Table | ordermethod = lastedit | order = descending | addpagecounter = true | count = 10 | addeditdate=true | adduser=true }}
Wandering through this page, exploring ways to use DPL: http://semeb.com/dpldemo/index.php?title=Addpagecounter#addpagecounter
DPL Search: Marked for Deletion
"PRE" formatted to reduce DPL queries from Sandbox
{{#dpl: | category = Category:Candidates_for_deletion | ordermethod = lastedit | addeditdate=true | order = descending | addpagecounter = true | adduser=true | count=5 }}
DPL Search: New Pages
"PRE" formatted to reduce the number of DPL queries from this Sandbox.
{{#dpl: | namespace= | ordermethod=created | order=descending | count=30 }}
From: http://semeb.com/dpldemo/index.php?title=DPL:FAQ#Best_way_to_return_list_of_new_pages
DPL Search: List Pages Using Template:Infobox_warning
Comleted February 10, 2016
Preparing to rename the template, as it's not an infobox.
{{#dpl: | uses = Template:Infobox_warning | allowcachedresults = yes }}
DPL Search: Recent Changes
All edits since 2/1/16, not user Mcwresearch:
{{#dpl: | namespace = | allrevisionssince=20160201 | notmodifiedby=Mcwresearch | ordermethod = lastedit | order = descending | addeditdate = true | adduser=true }}
Good reference: http://semeb.com/dpldemo/index.php?title=DPL:Manual_-_DPL_parameters:_Criteria_for_page_selection
DPL Search: Stale Pages
{{#dpl: | namespace = | ordermethod = lastedit | order = descending | allrevisionsbefore=20151001 | addeditdate = true | adduser=true }}
DPL Search: Meltable Items Producing Iron
Found on Iron_Ingot
This is a good candidate for a list page...
Functional:
<dpl> category = Meltable items category = Scrap_Iron namespace= uses= Template:infobox item include = {infobox item}:image, {infobox item}:weight, {infobox item}:weight_forge secseparators = \n|[[File:,|60px|link=%PAGE%]] [[%PAGE%|%TITLE%]],\n|,,\n| format = {| class="wikitable sortable" style="width:50%"\n!Name!!Weight (lb)!!Forge Weight,\n|- </dpl>
DPL Search: Removed Items Without Infobox Parameter
"Note that in combination with templates the regexp matching will only work if you produce some output at all via the include statement.[1]
Implementation here on Gamepedia seems to differ from DPL Manual in that after the template name in the "include" statement, you don't want a space before calling the results of a specific parameter.
Also, wasn't able to effectively use a regex number limiter such as {3,6}
to limit the "." wildcard to between 3 - 6 characters. Matching any number of characters after the "=" works, albeit sloppily.
Functional:
{{#dpl: | category = Removed_Items | uses = Template:infobox item | include = {infobox item}:removed | includematch= /\{{!}}\s*removed\s*=\s*.*/s | table = , Page, Version }}
Functional:
{{#dpl: | category = Removed_Items | uses = Template:infobox item | include = {infobox item}:item-id | includenotmatch= /\{{!}}\s*removed\s*=\s*.*/s | table = , Page, Item-id }}
DPL Search: semi-auto weapons
Functional:
{{#dpl: | category = Firearms | uses = Template:infobox item | include = {infobox item}:type | includematch= /\{{!}}\s*type\s*=\s*Semi-automatic\s*/s | table = , Page, type }}
This could be useful to detect unused parameters in the the beast (Template:Infobox_item)
List all "types" used in infoboxes (CPU-Costly and a big-honking table!)
Functional:
{{#dpl: | uses = Template:infobox item | include = {infobox item}:type | table = , Page, type }}
List all buffs
Conditional within DPL to hide image gibberish if no image is provide. Must escape curlies and pipes[2]:
Functional:
{{#dpl: |category = Buffs |include = {infobox buff}:image:type:hunger:thirst:health:stamina |table = class="wikitable sortable",-,Name, Type, Hunger, Thirst, Health, Stamina |tablerow = ²{#if: %% {{!}} [[File:%%|30px|link=%PAGE%]] }² [[%PAGE%]],%% }}
Very useful in solvoing:
escape character | corresponding wiki character |
---|---|
« | < |
» | > |
²{ | {{ |
}² | }} |
¶ | newline |
\n | newline |
¦ | | |
{{!}} | | |
{{!!}} | || |
References
<references>