Last modified: 2006-05-19 13:44:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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