Hello, Apologies if this has been asked before, or if there's a more appropriate forum. I've been hunting but not found anything yet on mediawiki, Wikipedia, or the discussion list archive. Tried wikitext-l first but not sure anybody's on that list anymore.
Is it possible to parse or call the data from template A on page X, and spit parts of it back out using another template (say, template B) on page Y, and in a different namespace? For the sake of argument, assume there is only one template A iteration on page X.
For example,
Template A {{bookdata | image = no | title = A big long title | maplink = Image:Title_p82.gif }}
Template B
{{mapdata | title = [calls 'title' value from bookdata] }}
It seems like there should be a way to do this, so if it means reading manuals on something I'd be happy to. At this point I'm just not sure which direction I should be going to read up on this.
Thanks for any advice.
Craig
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Craig Haggit wrote: [snip]
Template A {{bookdata | image = no | title = A big long title | maplink = Image:Title_p82.gif }}
Template B
{{mapdata | title = [calls 'title' value from bookdata] }}
You might look into using Semantic MediaWiki for this sort of thing.
- -- brion
On Wed, Sep 10, 2008 at 1:13 AM, Brion Vibber brion@wikimedia.org wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Craig Haggit wrote: [snip]
Template A {{bookdata | image = no | title = A big long title | maplink = Image:Title_p82.gif }}
Template B
{{mapdata | title = [calls 'title' value from bookdata] }}
You might look into using Semantic MediaWiki for this sort of thing.
I've suggested an API function to do that. I also offered to write one, but, alas, no time...
Magnus
wikitech-l@lists.wikimedia.org