DPL Extension Testing Ground

From Project: Gorgon Wiki
Revision as of 22:14, 28 December 2014 by BetaNotus (talk | contribs) (Beta Testing favor)
Jump to: navigation, search

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.

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).

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

Have you mastered the Riposte? I prefer it over Parry. We should spar some time, I'll show you the move.

Variation 2

It's not an obsession. I mean I can stop any time I want to. I just love the taste of pork products. Actually just about any meat is great. But especially pork.

Variation 3

I taught myself swordsmanship by killing pigs. I guess the fascination with pigs grew from that.

Jurl the Boatman
Larsan

Variation 1

Yep, I was there when Dwyndarre burned. I... don't really want to talk about it.

Variation 2

Did you hear the humans want to collect taxes from us? Tax! Just for running a shop! That's absurd. There's barely any security here, so what would I be paying for? If you want to collect tax, you'd better... sorry. Council customs make me a little upset.

Variation 3

Business isn't exactly booming out here. But there's enough wanderers stopping by to make it worth the trouble.

Legacy Item Replacer
Leonard Allenson
Lugnir
Marna

Variation 1

Alchemy and shopkeeping go hand and hand. I mean, you gotta buy the ingredients, and sell the results, so it just fits.

Variation 2

I heard Mushroom Jack has invented a delicious meat substitute out of mushrooms. He won't share, though. Says it's not perfected yet.

Variation 3

Busy busy busy! I'm in this store practically all the time, either making stuff or selling stuff. But it's not like there's a lot of entertainment in this dive, so I'm not exactly missing out on anything.

Variation 4

Now I may not be a human, but I think I do pretty well at this shop-keeping business anyway.

Mu
Mushroom Jack
Nelson Ballard
Norbert/Strange Pig
Pennoc
Poe
Rita
Roshun the Traitor
Selphie
Sentient Flame
Sir Arif

Variation 1

There was a second engineer with me originally. Lady Rasheen. She died after exploring a nearby room. She said a lich with the mind of a child was stealing her memories. She died slowly, horribly.

Variation 2

Those little dinosaurs can rend flesh at an insane rate! But they have a hard time clawing through armor.

Variation 3

Have you seen those dinosaurs down here? Yeah, that... uh... that was a council corps error. We portalled 'em in from hundreds of miles away! They can't hurt you much if you're wearing enough armor.

Variation 4

I keep the place mostly safe with my runes and sigils. Was never really good with a sword, but I'm great at the lost art of sigil-scripting.

Sir Coth
Strange Spider
Tadion
Teaching Golem
Therese
Velkort
Voo
Way
Westley
Yoy
Yurra
Zealo
Zeratak