User:GrayBeard Actual/DPL Archive

From 7 Days to Die Wiki
Jump to: navigation, search
Some items' or groups' chance to drop changes according to the player's gamestage. Here you can see those values for any gamestage you want using the little box below. Just type the gamestage you want in the box and press the Apply!-button. The values should change immediately, if the chance is different.


DPL Search and Count[edit | edit source]

"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[edit | edit source]

Version 2 (with phantom template + formatting from crafting/grid[edit | edit source]

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[edit | edit source]

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[edit | edit source]

"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[edit | edit source]

"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[edit | edit source]

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[edit | edit source]

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[edit | edit source]

{{#dpl:
 | namespace =
 | ordermethod = lastedit
 | order = descending
 | allrevisionsbefore=20151001
 | addeditdate = true
 | adduser=true
}}

DPL Search: Meltable Items Producing Iron[edit | edit source]

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[edit | edit source]

"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[edit | edit source]

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!)[edit | edit source]

Functional:

{{#dpl:
 | uses = Template:infobox item
 | include = {infobox item}:type
 | table = , Page, type
}}

List all buffs[edit | edit source]

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[edit | edit source]

<references>