Last modified: 2010-05-15 15:50:57 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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