Last modified: 2011-01-13 01:25: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 T28701, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26701 - Passing URLs to templates via #show or #ask causes formatting problems
Passing URLs to templates via #show or #ask causes formatting problems
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-13 01:25 UTC by Dan Bolser
Modified: 2011-01-13 01:25 UTC (History)
2 users (show)

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


Attachments

Description Dan Bolser 2011-01-13 01:25:18 UTC
Assuming you have a simple template called 'url' with the following wikitext:

* [{{{2}}} {{{1}}}]


Calling the template within an ask works fine. e.g.

{{#ask: [[Some pages]] | ?Some url type property
 | format=template | template=url }}


However, a very similar 'explicit' call fails to be formatted correctly. e.g. on 'Some page':

{{url | {{PAGENAME}}
 | {{#show: {{PAGENAME}} | ?Some url type property | link=none }} }}

fails to render correctly.

Presumably the url string returned by the #show is being picked up and 'linked' by MediaWiki before it reaches the formatting within the template.

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


Navigation
Links