Template talk:Dw-nsdnld

Latest comment: 13 years ago by OlEnglish in topic Code Update

Code Update edit

{{editprotected}}

Could a templatey administrator change this

<includeonly>{{subst:</includeonly><includeonly>empty template|<strong class="error">You forgot to subst this template. Replace {{dw-nsdnld}} with {{subst:dw-nsdnld}}</strong>}}{</includeonly><noinclude>{</noinclude>{<noinclude>[[Template:</noinclude>di-dw no source no license<noinclude>|di-dw no source no license]]</noinclude>|month={{<includeonly>subst:</includeonly>CURRENTMONTHNAME}}|day={{<includeonly>subst:</includeonly>CURRENTDAY}}|year={{<includeonly>subst:</includeonly>CURRENTYEAR}}}}<noinclude>{{pp-template|small=yes}}{{documentation}}</noinclude>

to this

<includeonly>{{{{{|safesubst:}}}substchecktop|Dw-nsdnld|subst={{{subst|}}}}}</includeonly>{{<noinclude>tlp|</noinclude>di-dw no source no license|<noinclude>2=</noinclude>date={{{{{|safesubst:}}}Date}}}}<includeonly>{{{{{|safesubst:}}}substcheckbottom|subst={{{subst|}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>

at Template:Dw-nsdnld? Thanks. Set Sail For The Seven Seas 252° 32' 45" NET 16:50, 13 September 2010 (UTC)Reply

Could you first explain what this is supposed to do so I know I'm not breaking anything? Hersfold (t/a/c) 03:45, 19 September 2010 (UTC)Reply
These updates add the following changes to the template:
  1. Updating the substitution check code to a more efficient version.
  2. Optimising the demo display on the Template:Dw-nsdnld page to use Template:Tlp, simplifying the code.
  3. Removing the redundant page protection template, which is already included as part of the documentation.
  4. Updating the date parameters to use existing date templates rather than variables, simplifying the code.
Thanks. Set Sail For The Seven Seas 317° 13' 15" NET 21:08, 19 September 2010 (UTC)Reply
As with the other templates you've requested PER for, I have to say   Not done at present. I'd like to see it tested in a sandbox, otherwise my feeling is "If it ain't broke, don't fix it." —  Tivedshambo  (t/c) 21:56, 21 September 2010 (UTC)Reply

A copy of this code can now be found in the sandbox and its effects can be seen at testcases. The template updates include the following changes:

  1. Updating the substitution check code to a more efficient version.
  2. Updating the date parameters to use existing date templates rather than variables, simplifying the code.
  3. Optimising the demo display on the Template:Dw-nsdnld page to use Template:Tlp, simplifying the code.
  4. Removing the redundant page protection template, which is already included as part of the documentation.
  5. Moving categories to the documentation subpage.

Thanks. Set Sail For The Seven Seas 344° 25' 30" NET 22:57, 21 September 2010 (UTC)Reply

  Done I trust you know what you're doing.. -- œ 02:39, 22 September 2010 (UTC)Reply