I'm working on a (clearly :-) non-WMF project using MediaWiki, and I've
tripped over something that I can't figure out how to do using the
templating language.
Several things I've seen in various WP templates suggest there are many
thing about that part of the parser that I don't understand (and can't
locate doco for), but if there's a better list than this on which to
ask, please let me know.
And so, to the problem:
I'm trying to use MW as a database.
I just wanted to get out of the way up front that I realize that's the
problem here. :-)
I have a template ("A").
This template is instantiated on many pages ("A"->"B",
"A"->"C", "A"->"D").
Those pages are in turn transcluded onto other pages:
"A"->"B"->"E"
"A"->"B"->"F"
"A"->"B"->"G"
"A"->"C"->"H"
"A"->"C"->"I"
"A"->"C"->"J"
"A"->"D"->"K"
"A"->"D"->"L"
What I'm trying to accomplish is to include a link on "A" that, when
the user is looking at "I" will permit them to edit "C".
I had been hoping that I could include the PAGENAMEE magic word in the
template ("A") as part of an HTTP edit link, but alas, PAGENAMEE (and
presumably all the other magic words that pertain to pages) bind so
late in the parse chain that they point to "I" in that situation.
In a situation like this, is there any reasonable way to grab the name
of "C" from inside the code of "A"? Something with subst:, maybe?
The actual pages are
A:
http://tbkinfo.net/wiki/index.php/Template:Infobox_Show
C:
http://tbkinfo.net/wiki/index.php/O%27Maddy%27s_House
I:
http://tbkinfo.net/wiki/index.php/O%27Maddy%27s
Cheers,
-- jra
--
Jay R. Ashworth jra(a)baylink.com
Designer Baylink RFC 2100
Ashworth & Associates The Things I Think '87 e24
St Petersburg FL USA
http://baylink.pitas.com +1 727 647 1274
A: No.
Q: Should I include quotations after my message body?