Template talk:Subst
This template was considered for deletion on 2017 October 26. The result of the discussion was "keep". |
See also
editsubst:
editThis conversation was migrated from Wikipedia:Help desk at 05:33, 16 August 2005 (UTC).
What is the point in using the syntax {{subst:Template name}}? Couldn't we just use the forumla {{Template name}}? CG 16:28, August 15, 2005 (UTC)
- Usually, we do use {{Template name}}. Subst: expands the template in its current form and freezes it. It is also useful if the template doesn’t fit and needs to be customised, but then leaves the overhead of updating by hand if you ever change in the future. Susvolans (pigs can fly) 16:37, 15 August 2005 (UTC)
- Don't forget to "subst" templates when you use them on talk pages - it reduces server load, and prevents accidental blanking of the template (and yes, that is a "subst" version of Template:Subst). Zzyzx11 (Talk) 16:45, 15 August 2005 (UTC)
- Generally, we also use Subst on templates that are used on thousands of pages like Template:vfd. Because the template and each page are treated as seperate data, the server generates a cache of any pages which use that template. And so one change to the template will increase the server load because it will have to modify the entire cache again. Pages with "subst" templates are not stored in the cache because the code text already stored on the page. If you are interested in the technical details, please read m:Help:Template. Zzyzx11 (Talk) 16:57, 15 August 2005 (UTC)
- In short: without subst, the template will be loaded every time you load the page. If you use subst: the text will from the template will be included. Changing the template after inclusion won't change the text on an article when using subst:.
(end migration)
- Note:some of the above concerns about server load are not necessarily shared by the technical staff. Rich Farmbrough, 11:35 27 February 2007 (GMT).
accidental blanking
edithow does subst prevent accidental blanking? →AzaToth 21:34, 13 December 2005 (UTC)
- When templates containing a section are used, MediaWiki treats them as just another section and adds the usual [edit] link. Users will often edit the last section to add a new message at the bottom of the page, which leads to people leaving messages in the template since [edit] leads directly there. By substituting text, the [edit] link edits that section of the page instead of the template. // Pathoschild 21:58, 13 December 2005 (UTC)
Warning
editShould this be moved from Category:User warning templates to Category:User information templates. Users aren't breaching any policies by not susbsting. AndrewRT(Talk) 19:26, 6 February 2007 (UTC)
- Really it's neither, the general useage is Template information template. Rich Farmbrough, 11:34 27 February 2007 (GMT).
Duplicate "the"
editThere's a duplicate word "the" in the second heading. Please remove it. The sentence is: "It should probably not be "subst"ed, as the the wording or advice may change." --Addict 2006 04:45, 2 March 2007 (UTC)
Redirect to Template:Uw-subst
edit{{editprotected}} This template is depreciated by the "uw-" template and needs to be redirected. Regards.--12 Noon 2¢ 19:01, 1 January 2008 (UTC)
- Done. Sandstein (talk) 21:47, 1 January 2008 (UTC)
subst not working on title year range template
editI've found that adding subst:
works fine on templates such as {{title year}} and {{Title year+1}}, but just results in a blank when used on {{title year range}}. Try it in 1983–84 New York Islanders season for example. Any explanation, or fix available? Colonies Chris (talk) 12:36, 6 January 2024 (UTC)