How to preview a message with $params?

Jump to navigation Jump to search

Please summarize the below thread in the editing box. You may use any wikitext in your summary. When you finish, click "Save page".

You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in the group: Users.


You can view and copy the source of this page.

Return to Summary:Support/How to preview a message with $params?.

Hi!

I would like to view a message which has parameters, in order to check its syntax.

For exemple, MediaWiki:Notification-header-mention-status-bundle/fr has many imbricated magic words, it would be nice to test it, previewing a draft page.

Is there a template created for this goal?

Pols12 (talk)16:58, 7 September 2017

You can use the mw:int magic word on any page, is that enough?

Nemo (talk)17:02, 7 September 2017

Thank you for your answer.

Unfortunately, I can’t use {{int:}} magic word because it includes the "official" translation and not the last edit.

With the given example, today {{int:}} displays a message starting with "Parmi" whereas the last version starts with "Concernant".

Pols12 (talk)17:09, 7 September 2017

Maybe trying if the GENDER work or not? {{int:XXX|$2=Somebody}} (assume that that has {{GENDER:$2|foo}}) probably is useful

Liuxinyu970226 (talk)13:53, 8 April 2018

Neither int: nor Special:ExpandedTemplates is a reliable way to check how the message will work in action, especially for JavaScript messages.

However, if we assume that parsing will be okay and you just want to see the different versions, then I recommend Special:ExpandTemplates. Remember to set title to the full message title, so that correct language will be used for plurals, etc. and then use it like a template: {{MediaWiki:Notification-header-mention-status-bundle/fr|param1|param2..}}.

The downside is of course that you need to know and give all the parameters.

Nike (talk)08:37, 10 April 2018

Thank you Nike. I didn’t know Special:ExpandTemplates.

However, I don’t achieve to give params. In the follwing code, params are not taken into account: {{MediaWiki:Notification-header-mention-status-bundle/fr|aaa|Pols12|5|User talk:Pols12|3|2}}.

The following code work: {{int:Notification-header-mention-status-bundle/fr|Bastard|Pols12|5|User talk:Pols12|3|2}} But, as I explained to Nemo, int: display the real message, and I’d like to test a new translation, not waiting for their daily export.

Pols12 (talk)15:06, 13 April 2018
 

That’s what I want. But int: only work for exported translation (at least 1 day old), not for the last edit of a translation.

Pols12 (talk)15:09, 13 April 2018