Le 24/09/2017 à 19:31, bawolff a écrit :
Why not just make a template containing <includeonly>{{ping|first user|second user|third user|...}}</includeonly>
Your issue is almost certainly that the pipes aren't being tokenized as argument separators when they come from a transcluded template. (Its the same reason that {{!}} works in tables, except in reverse).
Alternatively, {{ping|{{subst::Wiktionary/Tremendous Wiktionary User Group/affiliates}}}} would probably work.
I encounter a similar problem in an other template I'm trying to write. Indeed, `subst` works as expected, but I would like to keep the call as is. So that when saving, the list won't be expanded, but will stay dynamic. So using the same example, something like
{{ping|{{param::Wiktionary/Tremendous Wiktionary User Group/affiliates}}}}
Is there already a way to do that.
The other option I see is that the called template or module called should directly return the whole call. Actually, with a frame:expandTemplate or frame:preprocess it does work for the case I was asking this question.
-- Brian
On Sun, Sep 24, 2017 at 3:41 PM, mathieu stumpf guntz psychoslave@culture-libre.org wrote:
I'm trying to solve the problem exposed here: https://meta.wikimedia.org/wiki/User_talk:Psychoslave#Template:Participants (in French)
In a nutshell, the goal is to be able to ping a group of user on meta. so ideally, you just type something like {{ping|my_group}} But as ping and the underlying "Module:Reply_to" are expecting one user per argument my current idea is to make something like {{ping|{{:/some_group/members}}}} so instead of {{ping|Amqui|Ariel1024|Aryamanarora|Benoît_Prieur|Daniel_Kinzler_(WMDE)|Delarouvraie|Epantaleo|Ernest-Mtl|GastelEtzwane|JackPotte|Jberkel|Jitrixis|Kimdime|LA2|LaMèreVeille|Lydia_Pintscher_(WMDE)|Lyokoï|M0tty|Malaysiaboy|Marcmiquel|Micru|Nattes_à_chat|Nemo_bis|Noé|Otourly|Pamputt|psychoslave|Rich_Farmbrough|Rodelar|Satdeep_Gill|Sebleouf|Shavtay|Stalinjeet|S_The_Singer|TAKASUGI_Shinji|TaronjaSatsuma|Thibaut120094|Thiemo_Mättig_(WMDE)|tpt|Trizek_(WMF)|VIGNERON|Vive_la_Rosière|Xabier_Cañas|Xenophôn}}
I can just write {{ping|{{:Wiktionary/Tremendous Wiktionary User Group/affiliates}}}} for example
but even if I put verbatim in a template: Amqui|Ariel1024|Aryamanarora|Benoît_Prieur|Daniel_Kinzler_(WMDE)|Delarouvraie|Epantaleo|Ernest-Mtl|GastelEtzwane|JackPotte|Jberkel|Jitrixis|Kimdime|LA2|LaMèreVeille|Lydia_Pintscher_(WMDE)|Lyokoï|M0tty|Malaysiaboy|Marcmiquel|Micru|Nattes_à_chat|Nemo_bis|Noé|Otourly|Pamputt|psychoslave|Rich_Farmbrough|Rodelar|Satdeep_Gill|Sebleouf|Shavtay|Stalinjeet|S_The_Singer|TAKASUGI_Shinji|TaronjaSatsuma|Thibaut120094|Thiemo_Mättig_(WMDE)|tpt|Trizek_(WMF)|VIGNERON|Vive_la_Rosière|Xabier_Cañas|Xenophôn in the page
and call ping with this template as argumement, it will end up with a "Error in Template:Reply to: Input contains forbidden characters."
This message is generated by the module Reply_to but I can't change it since it's protected.
So I'm looking for a way to bypass whatever generate this error, or more broadly any idea to resolve the exposed problem.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l