Hi All,
On http://meta.wikimedia.org/wiki/Help:Magic_words it lists all the various MediaWiki magic words.
I'm looking for something that can be used to give the talk page for the current page.
For example, in: * The main namespace (namespace 0), it would return "Talk:{{PAGENAME}}". * In the talk namespace ({{ns:1}}), it would return "Talk:{{PAGENAME}}" (since the talk page for a talk page is the talk page itself). * In the User namespace ({{ns:2}}), it would return "User_talk:{{PAGENAME}}". * In the User talk namespace ({{ns:3}}), it would return "User_talk:{{PAGENAME}}" (since the talk page for a user talk page is the user talk page itself). * And so forth...
Does anyone know of a way of doing this? If not, can I maybe suggest a new magic word along these lines, such as "{{TALKPAGE}}", which would do this?
All the best, Nick.
Nick Jenkins wrote:
Hi All,
On http://meta.wikimedia.org/wiki/Help:Magic_words it lists all the various MediaWiki magic words.
I'm looking for something that can be used to give the talk page for the current page.
For example, in:
- The main namespace (namespace 0), it would return "Talk:{{PAGENAME}}".
- In the talk namespace ({{ns:1}}), it would return
"Talk:{{PAGENAME}}" (since the talk page for a talk page is the talk page itself).
- In the User namespace ({{ns:2}}), it would return "User_talk:{{PAGENAME}}".
- In the User talk namespace ({{ns:3}}), it would return
"User_talk:{{PAGENAME}}" (since the talk page for a user talk page is the user talk page itself).
- And so forth...
Does anyone know of a way of doing this? If not, can I maybe suggest a new magic word along these lines, such as "{{TALKPAGE}}", which would do this?
All the best, Nick.
http://en.wikipedia.org/wiki/Template:Talk currently just tacks a " talk" to the end of the namespace, but you could use the http://en.wikipedia.org/wiki/Template:Switch template to detect whether the current page is already a talk page and refrain from adding " talk" to the namespace.
"Minh Nguyen" mxn@zoomtown.com wrote in message news:440A82FF.9050006@zoomtown.com...
Nick Jenkins wrote:
On http://meta.wikimedia.org/wiki/Help:Magic_words it lists all the various MediaWiki magic words. I'm looking for something that can be used to give the talk page for the current page. For example, in:
- The main namespace (namespace 0), it would return "Talk:{{PAGENAME}}".
- In the talk namespace ({{ns:1}}), it would return
"Talk:{{PAGENAME}}" (since the talk page for a talk page is the talk page itself).
- In the User namespace ({{ns:2}}), it would return
"User_talk:{{PAGENAME}}".
- In the User talk namespace ({{ns:3}}), it would return
"User_talk:{{PAGENAME}}" (since the talk page for a user talk page is the user talk page itself).
- And so forth...
Does anyone know of a way of doing this? If not, can I maybe suggest a new magic word along these lines, such as "{{TALKPAGE}}", which would do this?
http://en.wikipedia.org/wiki/Template:Talk currently just tacks a " talk" to the end of the namespace, but you could use the http://en.wikipedia.org/wiki/Template:Switch template to detect whether the current page is already a talk page and refrain from adding " talk" to the namespace.
I did this on :en: already: http://en.wikipedia.org/wiki/Template:ARTICLESPACE http://en.wikipedia.org/wiki/Template:TALKSPACE
HTH HAND
Nick Jenkins wrote:
Hi All,
On http://meta.wikimedia.org/wiki/Help:Magic_words it lists all the various MediaWiki magic words.
I'm looking for something that can be used to give the talk page for the current page.
For example, in:
- The main namespace (namespace 0), it would return "Talk:{{PAGENAME}}".
- In the talk namespace ({{ns:1}}), it would return
"Talk:{{PAGENAME}}" (since the talk page for a talk page is the talk page itself).
- In the User namespace ({{ns:2}}), it would return "User_talk:{{PAGENAME}}".
- In the User talk namespace ({{ns:3}}), it would return
"User_talk:{{PAGENAME}}" (since the talk page for a user talk page is the user talk page itself).
- And so forth...
Does anyone know of a way of doing this? If not, can I maybe suggest a new magic word along these lines, such as "{{TALKPAGE}}", which would do this?
All the best, Nick.
http://en.wikipedia.org/wiki/Template:Talk currently just tacks a " talk" to the end of the namespace, but you could use the http://en.wikipedia.org/wiki/Template:Switch template to detect whether the current page is already a talk page and refrain from adding " talk" to the namespace.
I've added {{TALKPAGENAME}} and {{TALKPAGENAMEE}} variables which will be available when someone next synchronises the site with the code.
[Note: On talk pages, the variable will simply print out the current page name.]
Rob Church
On 05/03/06, Nick Jenkins nickpj@gmail.com wrote:
Hi All,
On http://meta.wikimedia.org/wiki/Help:Magic_words it lists all the various MediaWiki magic words.
I'm looking for something that can be used to give the talk page for the current page.
For example, in:
- The main namespace (namespace 0), it would return "Talk:{{PAGENAME}}".
- In the talk namespace ({{ns:1}}), it would return
"Talk:{{PAGENAME}}" (since the talk page for a talk page is the talk page itself).
- In the User namespace ({{ns:2}}), it would return "User_talk:{{PAGENAME}}".
- In the User talk namespace ({{ns:3}}), it would return
"User_talk:{{PAGENAME}}" (since the talk page for a user talk page is the user talk page itself).
- And so forth...
Does anyone know of a way of doing this? If not, can I maybe suggest a new magic word along these lines, such as "{{TALKPAGE}}", which would do this?
All the best, Nick. _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Well, [a] SourceForge is shit, so it didn't commit properly and [b] I'm not bothering, since Avar, Niklas and Mark are objecting.
Sorry.
Rob Church
On 05/03/06, Rob Church robchur@gmail.com wrote:
I've added {{TALKPAGENAME}} and {{TALKPAGENAMEE}} variables which will be available when someone next synchronises the site with the code.
[Note: On talk pages, the variable will simply print out the current page name.]
Rob Church
On 05/03/06, Nick Jenkins nickpj@gmail.com wrote:
Hi All,
On http://meta.wikimedia.org/wiki/Help:Magic_words it lists all the various MediaWiki magic words.
I'm looking for something that can be used to give the talk page for the current page.
For example, in:
- The main namespace (namespace 0), it would return "Talk:{{PAGENAME}}".
- In the talk namespace ({{ns:1}}), it would return
"Talk:{{PAGENAME}}" (since the talk page for a talk page is the talk page itself).
- In the User namespace ({{ns:2}}), it would return "User_talk:{{PAGENAME}}".
- In the User talk namespace ({{ns:3}}), it would return
"User_talk:{{PAGENAME}}" (since the talk page for a user talk page is the user talk page itself).
- And so forth...
Does anyone know of a way of doing this? If not, can I maybe suggest a new magic word along these lines, such as "{{TALKPAGE}}", which would do this?
All the best, Nick. _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Rob Church wrote: On 05/03/06, Rob Church robchur@gmail.com wrote:
I've added {{TALKPAGENAME}} and {{TALKPAGENAMEE}} variables which will be available when someone next synchronises the site with the code.
Well, [a] SourceForge is shit, so it didn't commit properly and [b] I'm not bothering, since Avar, Niklas and Mark are objecting.
If you don't mind me asking, what's the objection? This is a feature that has been requested several times during the time I've been here. It would be extremely useful for both templates and system messages. I was ready to jump and shout with joy that this perennial request had finally been fulfilled before I saw your followup message. :(
Anyway, if you do decide to implement something like this, I'd prefer to see {{TALKNAMESPACE}} and, to complement it, {{CONTENTNAMESPACE}}. Plus the URL-encoded forms, of course.
And while we're wishing for the moon, how about an {{encode:}} function so we wouldn't _need_ all those pre-URL-encoded variables? It would be very useful in a number of templates, such as [[en:Template:Vandal]], too.
On 3/5/06, Ilmari Karonen nospam@vyznev.net wrote:
If you don't mind me asking, what's the objection?
The objection is that this variable presumes that there will be one talk page per each main namespace page, which does not hold true in the new namespace system which'll be merged into HEAD shortly. Hence adding this would introduce compatability problems later.
Ævar Arnfjörð Bjarmason wrote:
The objection is that this variable presumes that there will be one talk page per each main namespace page, which does not hold true in the new namespace system which'll be merged into HEAD shortly. Hence adding this would introduce compatability problems later.
Ah, okay. That does sound interesting. Is there somewhere I can learn more about this new system?
Ævar Arnfjörð Bjarmason wrote:
On 3/5/06, Ilmari Karonen nospam@vyznev.net wrote:
If you don't mind me asking, what's the objection?
The objection is that this variable presumes that there will be one talk page per each main namespace page, which does not hold true in the new namespace system which'll be merged into HEAD shortly. Hence adding this would introduce compatability problems later.
Well, it would allow you to _define_ multiple namespaces that have the same parent namespace but as far as I know they wouldn't work right as "talk" namespaces at all.
-- brion vibber (brion @ pobox.com)
wikitech-l@lists.wikimedia.org