GuildWiki

GuildWiki has been locked down: anonymous editing and account creation are disabled. Current registered users are unaffected. Leave any comments on the Community Portal.

READ MORE

GuildWiki
Register
Advertisement

DPL[]

Here is DPL to get any date's dialogue. It depends on there being no headers on the page other than for the dialogue sections.

{{#dpl:
|title=Nicholas the Traveler/Past Dialogues
|include=#%{{Nicholas the Traveler/index|{{{1|}}}}}
}}
So this is the Desolation, land of the dead and home to no man. It does have its perks, though! For instance, I havene't heard a single sniffle out of the Professor over there since we arrived. I think it's because of the way the Sulfurous Haze sulfuric fumes combine with the naturally dry desert air. He's had a lingering cold, and on top of that he got nipped on the leg when we had to run from a pack of hyenas. Speaking of which, would you happen to have 3 Mummy Wrappings that I can use to mend his leg?

The "click here to edit today's dialogue" might profit from a &preload=page or &editintro=page. --◄mendel► 09:45, July 27, 2010 (UTC)

The # isn't needed there, % is the symbol for including a section by number. Why are you setting up talk pages like templates? I've copied that idea onto the article itself, which makes more sense.
Also, I don't see how preload or editintro would be any more helpful than what's already here. Preload wouldn't work at all: If the page or section to be edited already exists then only its wikitext is loaded, the preload command is ignored.. Editintro would require creating a single-use (throwaway) template with the same instructions that I've already included here, and just because the instructions are outside the box doesn't mean they'll be any more effective. —Dr Ishmael Diablo the chicken 14:03, July 27, 2010 (UTC)
I am setting up talk pages like templates because it saves me creating a separate demo template, and that way the demo is stored with the talk.
On the other hand, I do not believe that setting up articles as templates is a good idea (except in cases where we're transcluding the relevant content on the page wholly), because it marries the function ("current dialogue") to a specific representation of the underlying data. If we're putting the dialogue on the location pages and delete this page here, you'll have to change the template calls instead of just the template. Also, using this article as a template means that people have to remember to prepend a ":" when transcluding it; you are getting the current dialogue from a call that says "past dialogues" and is needlessly long; and in implementing your solution you opted to forego the date parameter for some reason, so in fact past dialogues can't be accessed.
The editintro can provide a copy & paste header if the location info has already been added to the wiki, and it can't be inadvertently deleted. In fact, storing the editintro right on this page in an <onlyinclude><includeonly> section does make sense (if it works, I don't remember if it has to be in template namespace?), because it will be geared to editing just this page, won't be used for anything else, and saves us the "throwaway template".
If the editintro was used, then the setup could be changed so that the section does not, in fact, already exist, and then the preload could be used. --◄mendel► 06:39, July 28, 2010 (UTC)
editintro and preload both ignore <noinclude>/<onlyinclude>, for example, that tries to find 'User:Dr ishmael/doc'. So yes, it would have to be a throwaway template with no documentation. And as for mainspace templates, we've never done that before. Oh wait. —Dr Ishmael Diablo the chicken 12:31, July 28, 2010 (UTC)
Ah, you're right about the noninclusion not working; I read that but failed to realize it applied here. (Probably would've noticed if I'd tried. ;)
Your "mainspace templates" fall under cases where we're transcluding the relevant content on the page wholly, and they don't have parameters or logic. This one has an implicit time parameter. --◄mendel► 18:30, July 28, 2010 (UTC)
Yeah, I didn't think of that until shortly after I posted. Sigh. —Dr Ishmael Diablo the chicken 18:56, July 28, 2010 (UTC)
Advertisement