Automatic or Manually assisted: Automatic, unsupervised
Programming language(s): Perl
Source code available: User:AnomieBOT/source/tasks/SafesubstFixer.pm
Function overview: Replace {{{subst|}}} in templates with <includeonly>safesubst:</includeonly>, and related edits.
Links to relevant discussions (where appropriate): Wikipedia talk:Template messages/User talk namespace#safesubst:
Edit period(s): As needed
Estimated number of pages affected: Up to ~600 for the first run
Exclusion compliant (Y/N): Yes
Already has a bot flag (Y/N): Yes
Function details: Until recently, the only way to make a template work both when substed and when not substed while also not cluttering the substed output with parser functions (e.g. #if, #switch) was to require a parameter "subst=subst:" be specified when substing. Now we have safesubst: which can be used for the same purpose, and without requiring the oft-forgotten "subst" parameter.
Upon request, the bot will go through a well-defined list of templates and replace {{{subst|}}} parameter uses with the new <includeonly>safesubst:</includeonly> or {{{|safesubst:}}} keyword. It may also insert the new keyword into parser functions lacking any substitution and/or into specifically-named template invocations, as requested.
The first run will be for the user warning templates (i.e. Special:PrefixIndex/Template:Uw-). I'm making a generic request in case anyone comes up with another well-defined set of templates that need the same treatment. Anomie ⚔ 16:54, 20 April 2010 (UTC) reply
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. — The Earwig (talk) 19:13, 25 April 2010 (UTC) reply
#ifeq:|yes|}}</includeonly>
at the bottom of
[2] and
[3]? —
The Earwig
(talk)
22:54, 26 April 2010 (UTC)
reply
{{foo|=}}
, cryptic as it may be. :)Will the bot operate per the Function details, or per the Discussion? Josh Parris 14:20, 4 May 2010 (UTC) reply
Approved. Josh Parris 04:42, 5 May 2010 (UTC) reply
Automatic or Manually assisted: Automatic, unsupervised
Programming language(s): Perl
Source code available: User:AnomieBOT/source/tasks/SafesubstFixer.pm
Function overview: Replace {{{subst|}}} in templates with <includeonly>safesubst:</includeonly>, and related edits.
Links to relevant discussions (where appropriate): Wikipedia talk:Template messages/User talk namespace#safesubst:
Edit period(s): As needed
Estimated number of pages affected: Up to ~600 for the first run
Exclusion compliant (Y/N): Yes
Already has a bot flag (Y/N): Yes
Function details: Until recently, the only way to make a template work both when substed and when not substed while also not cluttering the substed output with parser functions (e.g. #if, #switch) was to require a parameter "subst=subst:" be specified when substing. Now we have safesubst: which can be used for the same purpose, and without requiring the oft-forgotten "subst" parameter.
Upon request, the bot will go through a well-defined list of templates and replace {{{subst|}}} parameter uses with the new <includeonly>safesubst:</includeonly> or {{{|safesubst:}}} keyword. It may also insert the new keyword into parser functions lacking any substitution and/or into specifically-named template invocations, as requested.
The first run will be for the user warning templates (i.e. Special:PrefixIndex/Template:Uw-). I'm making a generic request in case anyone comes up with another well-defined set of templates that need the same treatment. Anomie ⚔ 16:54, 20 April 2010 (UTC) reply
Approved for trial (50 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. — The Earwig (talk) 19:13, 25 April 2010 (UTC) reply
#ifeq:|yes|}}</includeonly>
at the bottom of
[2] and
[3]? —
The Earwig
(talk)
22:54, 26 April 2010 (UTC)
reply
{{foo|=}}
, cryptic as it may be. :)Will the bot operate per the Function details, or per the Discussion? Josh Parris 14:20, 4 May 2010 (UTC) reply
Approved. Josh Parris 04:42, 5 May 2010 (UTC) reply