Last modified: 2014-11-18 07:36:48 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 T75450, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 73450 - indicators with template parameters can't work
indicators with template parameters can't work
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-15 02:19 UTC by shi zhao
Modified: 2014-11-18 07:36 UTC (History)
12 users (show)

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


Attachments

Description shi zhao 2014-11-15 02:19:23 UTC
Page status indicators with tempalte parameters can't work:

<indicator name="{{{id|}}}">[[File:Foo.svg|20px]]</indicator>
Comment 1 Umherirrender 2014-11-15 08:48:52 UTC
The solutation for <tags> with template params is using of the {{#tag:}} parser function (the same for indicator or ref or references or ...)

Use {{#tag:indicator|name={{{id|}}}|[[File:Foo.svg|20px]]}}
Comment 2 shi zhao 2014-11-17 01:32:54 UTC
(In reply to Umherirrender from comment #1)
> The solutation for <tags> with template params is using of the {{#tag:}}
> parser function (the same for indicator or ref or references or ...)
> 
> Use {{#tag:indicator|name={{{id|}}}|[[File:Foo.svg|20px]]}}

{{#tag:}} error:

Error: Page status indicators' name attribute must not be empty.

see https://en.wikipedia.org/wiki/User:Shizhao/sandbox

source: 
{{#tag:indicator|name=foooo|[[File:cscr-featured.svg|20px]]}}
Comment 3 Bartosz Dziewoński 2014-11-17 01:35:32 UTC
The parameters need to be provided in this order:

{{#tag:indicator|[[File:cscr-featured.svg|20px]]|name=foooo}}
Comment 4 shi zhao 2014-11-17 01:49:22 UTC
(In reply to Bartosz Dziewoński from comment #3)
> The parameters need to be provided in this order:
> 
> {{#tag:indicator|[[File:cscr-featured.svg|20px]]|name=foooo}}

thx. I see
Comment 5 Bartosz Dziewoński 2014-11-17 22:47:32 UTC
The <indicator name="{{{id|}}}">[[File:Foo.svg|20px]]</indicator> syntax probably will not be supported: as far as I know no other tags support arbitrary wikitext in attributes and I wouldn't want to make this one different. I copied a few people who might have an opinion on this, anyone wants to say anything?
Comment 6 Jackmcbarn 2014-11-18 02:13:22 UTC
As was previously mentioned, just use #tag if you need this. I see no reason to make this tag special.
Comment 7 ssastry 2014-11-18 02:45:31 UTC
(In reply to Bartosz Dziewoński from comment #5)
> as far as I know no other tags support
> arbitrary wikitext in attributes and I wouldn't want to make this one
> different. 

Ah, interesting. I didn't know this. At one point, Gabriel and I had been fretting about templated attributes for extensions.

Parsoid already has some support for this, but we won't bother continuing to test and work on this.

Ex: https://gerrit.wikimedia.org/r/#/c/65575/ is an abandoned attempt. 

There are some FIXMEs in the code about the gaps which we'll remove and explicitly document that this feature doesn't need to be supported.

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


Navigation
Links