Page MenuHomePhabricator

Passing URLs to templates via #show or #ask causes formatting problems
Closed, DeclinedPublic

Description

Author: dan.bolser

Description:
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=templatetemplate=url }}

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

{{url | {{PAGENAME}}

{{#show: {{PAGENAME}}?Some url type propertylink=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.


Version: unspecified
Severity: enhancement

Details

Reference
bz26701

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:20 PM
bzimport set Reference to bz26701.
Aklapper subscribed.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues and to close remaining tasks in Wikimedia Phabricator. If you still face the problem reported in this task in a supported version of SMW, please feel free to transfer your report to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues . We are sorry for the inconvenience.