Last modified: 2010-05-15 15:50:57 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 T13049, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11049 - Pipe trick doesn't work when link destination depends upon a variable
Pipe trick doesn't work when link destination depends upon a variable
Status: RESOLVED DUPLICATE of bug 8785
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.10.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-23 22:02 UTC by DarsVaeda
Modified: 2010-05-15 15:50 UTC (History)
2 users (show)

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


Attachments

Description DarsVaeda 2007-08-23 22:02:33 UTC
<wikicode>
[[Wikipedia:{{PAGENAME}}|]]
</wikicode>

results in unparsed plain text while PAGENAME is "Stonehenge" instead of a link to Wikipedia (in this example):

<output>
[[Wikipedia:Stonehenge|]]
</output>

(but thats for any other page name too)
Comment 1 Rob Church 2007-08-23 22:36:10 UTC
I would imagine this is because the "pipe trick" (e.g. the [[Foo|]] behaviour) is dealt with during the pre-save transform, whereas {{PAGENAME}} isn't expanded until parse time.
Comment 2 Danny B. 2007-08-24 01:30:18 UTC
Use direct notation:

[[Wikipedia:{{PAGENAME}}|{{PAGENAME}}]]
Comment 3 Casey Brown 2007-08-24 01:37:26 UTC
You can expand.  [[Wikipedia:NAME|]] is just a shortuct, you can use [[Wikipedia:NAME|NAME]]
Comment 4 Brion Vibber 2007-08-24 14:13:03 UTC

*** This bug has been marked as a duplicate of bug 8785 ***

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


Navigation
Links