Difference between revisions of "DPL Extension Testing Ground"
(→Beta Testing favor) |
m (→Beta Testing favor) |
||
Line 62: | Line 62: | ||
}} | }} | ||
===Beta Testing favor=== | ===Beta Testing favor=== | ||
− | |||
Please note that some NPCs do not have favor. | Please note that some NPCs do not have favor. | ||
− | + | ==== Serbule NPCs ==== | |
{{ #dpl: | {{ #dpl: | ||
− | | category = | + | | category = Serbule NPCs |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| include = #Small Talk | | include = #Small Talk | ||
− | | table = class="sortable table" style="width:50%",NPC Name,Favor | + | | table = class="sortable table" style="width:50%",Serbule NPC Name,Favor |
| tablerow = style="font-weight:bold"¦%%, | | tablerow = style="font-weight:bold"¦%%, | ||
− | |||
− | |||
− | |||
− | |||
}} | }} |
Revision as of 22:14, 28 December 2014
This page is used for testing the DPL extension (it should be an orphan page). See DPL Manual.
DPL Cheatsheet
Invocation
We can use <dpl> or {{ #dpl: ... }} to invoke DPL (Dynamic Page Lists). The latter is more powerful:
- Magic words like {{PAGENAME}} or {{CURRENTDAY}} can be used.
- Template calls like {{{some template}}} can be used as parameters.
- Parser function calls like {{#if:...|...|...}} can be used within arguments.
Special characters and escaping
Wiki characters must be escaped in the DPL arguments:
- Use {{!}} (ie. Template:!) or the special symbol ¦ to escape the pipe character.
- ¶ or \n must be used to insert a linefeed character where linefeeds are required by the wiki formatting.
Example of using an escape pipe character:
{{#dpl: |category = cat1¦cat2 |linksto = {{{1}}} }}
Debugging
resultsheader=«pre»«nowiki» resultsfooter=«/nowiki»«/pre»
Using Titlematch
Pulling all news article for 2014 only. Note! : titlematch can create inefficient queries, and should not be necessary if categories can do it.
- Game updates/2014-12-20
- Game updates/2014-12-15
- Game updates/2014-12-06
- Game updates/2014-12-05
- Game updates/2014-12-02
- Game updates/2014-11-27
- Game updates/2014-11-25
- Game updates/2014-11-24
- Game updates/2014-11-16
- Game updates/2014-11-08
- Game updates/2014-11-04
- Game updates/2014-11-01
- Game updates/2014-10-27
- Game updates/2014-10-25
- Game updates/2014-10-23
- Game updates/2014-10-22
- Game updates/2014-10-21
- Game updates/2014-10-09
- Game updates/2014-10-06
- Game updates/2014-10-04
- Game updates/2014-09-23
- Game updates/2014-09-20
- Game updates/2014-09-15
- Game updates/2014-09-07
- Game updates/2014-09-06
- Game updates/2014-09-01
dplreplace
This could be useful... (manual)
{{#dplreplace:abrakadabra|ab|AB}}
ABrakadABra
uses (pulling pages using certain templates)
This is the main way we could handle skills/recipes tables with DPL and templating. WORK IN PROGRESS (trying to figure out the templating of table rows with DPL).
- Anagoge Island
- Anagoge Travel Log
- Eltibule
- Fae Realm
- Gazluk
- Ilmari
- Kur Mountains
- Template:MAP infobox
- Povus
- Rahu
- Red Wing Casino
- Serbule
- Serbule Hills
- Staging Area
- Sun Vale
- Tutorial Cave
- Zone Template
Ability table (work in progress)
This can be made to look nice, and the same code can be used to output various skill tables. I don't like the complexity though, simple "row templates" like the NPC Shops would be easier to do and easier to understand. However this is the only way I can think of atm in case developer wants to feed all individual abilities/recipes/etc in separate articles.
We don't really need this automation because there is no real need to pull abilities in various formats across various pages. They are mostly going to be listed on the Skills page, and NPCs only feature a subset of abilities that they can train, which can be maintained manually.
Extension:DynamicPageList (DPL), version 2.3.0 : Warning: No results.
Beta Testing favor
Please note that some NPCs do not have favor.
Serbule NPCs
Serbule NPC Name | Favor |
---|---|
Akhisa's Herald | |
Azalak | |
Bahdba | |
Blanche | |
Charles Thompson | |
Creepy Alchemist | |
Dye Monster | |
Echur | |
Elahil | |
Fainor | |
Fitz the Boatman | |
Flia | |
Gisli | |
Happy-Go-Lucky Bat | |
Harry the Wolf | |
Hulon | |
Ivyn | |
Jara | |
Jaw | |
Joeh |
Variation 1
Variation 2
Variation 3
|
Jurl the Boatman | |
Larsan |
Variation 1
Variation 2
Variation 3
|
Legacy Item Replacer | |
Leonard Allenson | |
Lugnir | |
Marna |
Variation 1
Variation 2
Variation 3
Variation 4
|
Mu | |
Mushroom Jack | |
Nelson Ballard | |
Norbert/Strange Pig | |
Pennoc | |
Poe | |
Rita | |
Roshun the Traitor | |
Selphie | |
Sentient Flame | |
Sir Arif |
Variation 1
Variation 2
Variation 3
Variation 4
|
Sir Coth | |
Strange Spider | |
Tadion | |
Teaching Golem | |
Therese | |
Velkort | |
Voo | |
Way | |
Westley | |
Yoy | |
Yurra | |
Zealo | |
Zeratak |