Platonides wrote:
Rolf Lampa wrote:
Hm... but transclusion doesn't work with
regular URLs?
What I do is that I collect info about some structured sub pages, like so:
== Documentation ==
{{:basepagename/this}}
{{:basepagename/that}}
{{:basepagename/allkinds}}
{{:basepagename/offstuff}}
and...
{{:basepagename/one is a redirect!}}
It seems like I can't use an URL to extract the actual redirect from the
last one.
Regards,
// Rolf Lampa
With {{:basepagename/that}} you don't get its wiki-markup, but the
content users would have if they visited the page. On a redirect, the
content users see is those of the redirected page. So it's
consistent.
Yes, and it's also what I do expect.
But my question is wheter there is a way to tweak it so that I can
display the wiki-markup to the user, not what it ends up displying if
clicking on it (or transcluding it).
The reason I want to do this is that I want to show this wiki-markup
info on a "edit page" where the (gathered) content of a bunch of related
pages is created / edited. The whole things kind of represents a class,
with attributes. In order to know whether the "redirect field" needs to
be edited or not I need to display the actual wiki-markup (not the final
parsed result) on the "edit page". The structure (pages involved) I want
to deal with in the "edit page" could look something like this:
----
Item/ID
Item/ID/Name
Item/ID/Summary
Item/ID/Related (redirect, may at first point at "self", i.e.
"#REDIRECT [[Item/ID]]" )
----
And, on the formatted "edit page" the user would see something like this
( simplifying user input ) :
----
ID: 0000
Name: Some name of an item of this sort.
Summary: Well, this text simulates a data container, or an instance of a
"class", using several wiki-pages to represent attributes in an
"object"
with ID = 0000. It also utilizes #REDIRECTs to represent "pointers"
(...). For the user to be able to check if the pointer (named "Related")
is NULL ( [[]] ) has a desired value I need to be able to display the
wiki-markup in the attribute named "/Related" on next line, like so:
Related: #REDIRECT [[Item/0000/As]]
----
In this very "instance" (0000) the "pointer" could be interpreted as
being assigned to "Self", which is the default value, until any later
point in time when there's a related page to point at. IN this context,
a dedicated "edit page", it perhaps makes more sense to show the
wiki-markup rather than a link to... well, who would know where, because
you would have to click the link in order to know find out where it leads...
So, if there's no way to tweak it to display the wiki-markup, by using
regular wiki-syntax, then I guess I will simply have to accept that.
Regards,
// Rolf Lampa