Template talk:If then show
Template-protected edit request on 22 March 2019
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please remove the line <noinclude>{{pp-template|small=yes}}</noinclude>
- protection templates are automatically handled by the documentation page. Thanks, --DannyS712 (talk) 07:04, 22 March 2019 (UTC)
- Done — JJMC89 (T·C) 07:09, 22 March 2019 (UTC)
Named parameters
[edit]In a discussion at Template talk:Infobox person/Wikidata #Span tags not working properly after recent edit, Jonesey95 has made a good case that named parameters would be much more user-friendly and much less prone to error than the present unnamed parameters. So I propose to change the template's working so that it uses:
|test=
instead of the first unnamed parameter;|else=
instead of the second unnamed parameter;|prefix=
instead of the third unnamed parameter;|suffix=
instead of the fourth unnamed parameter;
What do others think? DannyS712, you are using it in your sandbox3 so it would need to be changed if this goes ahead.
I've made a demo of the proposed new code in Template:If then show/sandbox for testing if anyone is interested. --RexxS (talk) 15:33, 3 April 2019 (UTC)
@Mifter and Mike Peel: for uses in User talk:Mifter/Archive 10 and User talk:Mike Peel/Archive 36. Cheers --RexxS (talk) 15:35, 3 April 2019 (UTC)
- Support and let me know if you need any help making changes to pages. – Jonesey95 (talk) 16:39, 3 April 2019 (UTC)
- @RexxS: Rather than 'instead of', could it be 'as well'? That way it doesn't break existing uses. E.g.,
{{{test|{{{1|}}}}}}
. Thanks. Mike Peel (talk) 17:34, 3 April 2019 (UTC)- @Mike: I prefer replacement as Jonesey's argument really exposes the disadvantages of unnamed parameters. Looking at its pagelinks it would be a trivial job to replace the current uses at present. I think it would be better if we are going to deprecate the unnamed parameters to simply replace them now, before the template gets used any more widely. --RexxS (talk) 19:23, 3 April 2019 (UTC)
- @RexxS: It's used on a few more pages on other wikis... Thanks. Mike Peel (talk) 19:51, 3 April 2019 (UTC)
- @Mike:} There isn't a great need to synchronise the template across wikis, but if you wanted to update those, you could use the sandbox version from Special:Diff/890680027, which has the aliases and would be backwards-compatible with both. Cheers --RexxS (talk) 20:08, 3 April 2019 (UTC)
- @RexxS: It's used on a few more pages on other wikis... Thanks. Mike Peel (talk) 19:51, 3 April 2019 (UTC)
- @Mike: I prefer replacement as Jonesey's argument really exposes the disadvantages of unnamed parameters. Looking at its pagelinks it would be a trivial job to replace the current uses at present. I think it would be better if we are going to deprecate the unnamed parameters to simply replace them now, before the template gets used any more widely. --RexxS (talk) 19:23, 3 April 2019 (UTC)
- @RexxS: No problem with it - its listed in my sandbox because I made a list of all template-protected pages. --DannyS712 (talk) 18:41, 3 April 2019 (UTC)
Template-protected edit request on 19 March 2022
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Replace
{{#if
with
{{SAFESUBST:<noinclude />#if
to make the template subst:able. Qwerfjkltalk 13:47, 19 March 2022 (UTC)