Edge Rewrite
Jump to content

Module talk:For each named parameter

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 20 days ago by Pppery in topic Way to ignore specific parameters?

Way to ignore specific parameters?

[edit]

Hi. I'm trying to add a |_subst= parameter to {{Magic word link/sandbox}}, but because it uses this module the parameter instead just appears as an extra parameter to the end of the magic word link example (i.e. {{mwl|#if|foo|bar}} would produce {{#if:foo|bar|_subst=yes}} instead of an ideal {{subst:#if|foo|bar}}). Is there any way to invoke this module where it will ignore specific named parameters, such as |_subst=? Axolitl (talk | contribs) 15:53, 30 August 2026 (UTC)Reply

You can make the block inside the nowiki output nothing if the name is the one you want to exclude. For example see Module:For each named parameter/doc#Example with special handling of a parameter. * Pppery * it has begun... 03:20, 4 September 2026 (UTC)Reply