On Sat, Feb 18, 2006 at 01:03:17PM -0500, Jay R. Ashworth wrote:
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?
And it turns out I was damned close. Further spelunking in the help,
which I was too sick to do the other day, apparently, suggests that the
comments in the subst section at
http://en.wikipedia.org/wiki/Help:Variable#Depending_on_page
to wit:
When a template containing
{{<includeonly>subst:</includeonly>PAGENAME}} is subst'ed in a page,
the name of the latter page is put in the wikitext, and similarly for
other variables.
which is precisely what I need: when someone creates a B which
transcludes A, B will contain it's own name as part of the edit link.
But it doesn't appear to be working. The created B instead includes
the uninterpreted {{<includeonly>subst:</includeonly>PAGENAME}} .
This is in 1.5.3. That help page doesn't say 1.6-only as some do; is
this a 1.6-only behavior anyway? Or am I missing something else?
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?