Last modified: 2011-03-13 18:06:45 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 T20857, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18857 - Categorizing and wikilinking with the Pipe
Categorizing and wikilinking with the Pipe
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: 2009-05-20 18:50 UTC by Matthias Becker
Modified: 2011-03-13 18:06 UTC (History)
2 users (show)

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


Attachments

Description Matthias Becker 2009-05-20 18:50:29 UTC
It seems there's no way of categorizing articles by using a template's parameter if the value needs to be shortened for the article's output like <nowiki>[[Foo (a word)|Foo]]</nowiki> since <nowiki>[[Foo (a word)|]]</nowiki> does not parse as <nowiki>[[Foo]]</nowiki> when this construction is used involving a template. Hence it isn't possible to use one parameter value as a criteria for categorizing as well as showing this same parameter value wikilinked in the article output.

Since I don't know if I could explain what I mean here a particular example which also explains why this is a problem:

If one would have a parameter with the value ''County=Washington County (Oregon)'' the syntax <nowiki>[[{{{County}}}|]]</nowiki> will not result as <nowiki>[[Washington County (Oregon)|Washington County]]</nowiki> normally would but it will show <nowiki>[[Washington County (Oregon)|]]</nowiki> (however, if you you're setting ''County=Washington County (Oregon)|Washington County'' the linking works) ... if now one wants to categorize an article by using the template parameter value -- in the given example the syntax would be ... [[:Category:{{{County}}}]]... -- you need the parameter without Wikilinks because (in this example) <nowiki>[[Category:{{{County}}}|]] would not have the intended result. (See [http://de.wikipedia.org/w/index.php?title=Vorlage:Infobox_Ort_in_den_Vereinigten_Staaten&diff=next&oldid=59752142 this] for what I did in the specific case in the template, [http://de.wikipedia.org/w/index.php?title=Houston&diff=59734396&oldid=59548860 here] is my earlier edit in the infobox and [[File:Infobox USA DE county 2009.jpg|this image]] shows the unwished result.) --~~~~
Comment 1 Matthias Becker 2009-05-20 18:53:39 UTC
The link for image: http://commons.wikimedia.org/wiki/Image:Infobox_USA_DE_county_2009.jpg?uselang=de
Comment 2 Roan Kattouw 2009-05-20 19:17:27 UTC
This is because shortcuts like [[Foo (word)|]] are expanded to [[Foo (word)|Foo]] on save time, not on parse time: it's done in a phase called pre-save transform or PST, in which ~~~~ is also expanded.

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


Navigation
Links