Last modified: 2009-02-28 19:41:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T14805, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 12805 - dynamic talk page link
dynamic talk page link
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-26 21:04 UTC by italvet
Modified: 2009-02-28 19:41 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description italvet 2008-01-26 21:04:23 UTC
if i want output the discussion page link for any page with parser functions i have no choice but use such esoteric code


   -->{{#if:{{{ns|}}}|<!--
      -->{{#switch:{{lc:{{{ns}}}}}<!--
        -->|discuter|discussion catégorie|discussion aide|discussion image|discussion mediawiki<!--
        -->|discussion portail|discussion modèle|discussion utilisateur|discussion wikipédia=<!--
        -->|&#32;'''·''' [[Discussion {{{ns}}}:{{{1|}}}|page de discussion]]}}<!--
        -->|&#32;'''·''' [[Discuter:{{{1|}}}|page de discussion]]}}}}<!--


it would be nice that something like this works :

input {{TALKPAGENAME: {{{1}}} }} outputs [[(localised namespace talkpage prefix):{{{1}}}]]

for example

{{TALKPAGENAME:Foo}} -> [[Talk:Foo]] on en: [[Discuter:Foo]] on fr:

{{TALKPAGENAME:User:A guy}} -> [[User_talk:A_guy]] on en: [[Discussion_utilisateur:A_guy]] on fr:

{{TALKPAGENAME:Category:Bar}} -> [[Category_talk:Bar]]

etc.
Comment 1 Niklas Laxström 2009-02-28 19:41:18 UTC
This seems to be fixed at some point.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links