Last modified: 2011-03-15 12:52:05 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 T29990, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27990 - Asking for the category of a page: "link=none" does not print category namespace and "default=" does not print default value
Asking for the category of a page: "link=none" does not print category namesp...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-11 12:34 UTC by Daniel Hansch
Modified: 2011-03-15 12:52 UTC (History)
2 users (show)

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


Attachments

Description Daniel Hansch 2011-03-11 12:34:16 UTC
1) enter the following query into an article which is instance of category Foo:
{{#ask:[[{{FULLPAGENAME}}]]|?Category=|default=|link=none}}

2) expected result is (en is local language):
Category:Foo

==> instead "Foo" is printed (without namespace).

thats wrong.
Comment 1 Jeroen De Dauw 2011-03-11 12:39:50 UTC
Why is this wrong? Does the documentation state the behavior is different? If so, please link to it. In any case, what is the problem with the current behavior?
Comment 2 Daniel Hansch 2011-03-11 12:58:09 UTC
I expect that option "link=none" always prints out full page name,
like in:

a) {{#ask:[[Category:Foo]]|default=|link=none}}
==> prints (since Category:Bar is instance of Category:Foo): 
Category:Bar

b) {{#ask:[[Category:Foo]]|?Link=|default=|link=none}}
==> prints (since Category:Foo contains "[[Link::Category:Bar]]")
Category:Bar

It is a matter of consistency if "link=none" prints out the
full page name in this case, too:

{{#ask:[[Category:Bar]]|?Category=|default=|link=none}}
==>Category:Foo (GOOD)
==>Foo (BAD)
Comment 3 Daniel Hansch 2011-03-15 12:52:05 UTC
In addition:

"default=foo" does not work, too.

test:
{{#ask:[[{{FULLPAGENAME}}]]|?Category|default=nocategory}}

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


Navigation
Links