Category talk:Templates needing substitution checking

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Why?[edit]

Why would a template need "substitution checking"?--Mr. Guye (talk) 23:21, 17 April 2017 (UTC)[reply]

WP:Substitution doesn't explain the purpose of this category or how it's usually added to templates. It's a bit technical. First see {{Substcheck}}. The category is often added by {{Fix}} or {{Fix-span}}. {{Fix}} should be called with the parameter | subst = <includeonly>{{subst:substcheck}}</includeonly> to enable the substitution checking described in {{Substcheck}}. {{Fix}} detects if the parameter is missing and adds the category in this case. So if you see Category:Templates needing substitution checking on a template then it's often because it calls {{Fix}} without the subst parameter. The call may be via another used template or module and not directly in the source so it may be difficult to get rid of the category. However, on most templates I don't think it's a problem to have the category. PrimeHunter (talk) 10:34, 18 April 2017 (UTC)[reply]