Last modified: 2006-05-19 13:44:47 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 T6489, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 4489 - Parameter replacement in messages happens only after parsing
Parameter replacement in messages happens only after parsing
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 3704 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-01-04 23:43 UTC by elephantus
Modified: 2006-05-19 13:44 UTC (History)
2 users (show)

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


Attachments
These two fix this but probably break other things (1.04 KB, patch)
2006-01-05 19:46 UTC, elephantus
Details
See previous (428 bytes, patch)
2006-01-05 19:46 UTC, elephantus
Details

Description elephantus 2006-01-04 23:43:13 UTC
Parameter replacement ($1, $2...) in MediaWiki messages happens only after the
parsing of the message is done (incl. expansion of templates and functions
invoked through template syntax, eg {{plural:number|x|y|z}}). This means that
message parameters can't be used as function arguments, which would be very
useful in messages like "categoryarticlecount" and similar. Could the parsing be
somehow moved after the parameter replacement?
Comment 1 Ævar Arnfjörð Bjarmason 2006-01-04 23:45:58 UTC
What do you mean "function arguments" ?
Comment 2 elephantus 2006-01-04 23:47:32 UTC
(In reply to comment #1)
> What do you mean "function arguments" ?

Eg {{plural:$1|one|two|three}}

Comment 3 elephantus 2006-01-05 16:56:48 UTC
*** Bug 3704 has been marked as a duplicate of this bug. ***
Comment 4 elephantus 2006-01-05 19:46:27 UTC
Created attachment 1262 [details]
These two fix this but probably break other things

1/2
Comment 5 elephantus 2006-01-05 19:46:52 UTC
Created attachment 1263 [details]
See previous

2/2
Comment 6 Eugene Zelenko 2006-05-19 13:44:47 UTC
I don't know is this problem is fixed exactly as in this bug
description/patches, but PLURAL: works correctly in 1.7alpha (r14284).

Bug 3704 is definitely fixed.

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


Navigation
Links