Template talk:Issubst

Edit request - adding comment in noinclude section
Add some sort of comment, for example, to the   section as per WP:DOC

APerson (talk!) 03:08, 11 November 2013 (UTC)
 * Red information icon with gradient background.svg Not done: I don't think it's really worth adding 60,000 pages to the job queue just to add an html comment. Maybe you could add a note to the /doc subpage instead? Best — Mr. Stradivarius  ♪ talk ♪ 04:58, 11 November 2013 (UTC)

Template-protected edit request on 4 July 2016
Should it be changed to ? Please note that the parameter  must be completely blank.

83.31.146.90 (talk) 15:33, 4 July 2016 (UTC)
 * Your suggestion to use Ifsubst is in the Template:Issubst/sandbox, tested at X7 for now. Yes, logically it works, but I believe that the way it's currently written is possibly more performant, rather than relying on a different template. Using ifsubst will raise the number of transclusions of that template from 2K to about 69K if I'm not mistaken. Honestly not sure if it's a drastic improvement. Re-open if you suggest otherwise. Not done for now. — Andy W.  ( talk  · ctb) 15:59, 4 July 2016 (UTC)

Template-protected edit request on 19 March 2024
Please replace the code with the sandbox version, shown below:

The current version compares  to , which is needlessly complex. The above version instead relies on the fact that  expands to nothing when not substing, and to itself when substing. Note that  is not particularly special; any of several other parser functions and templates could be used instead.

Another alternative is to use an HTML comment  instead of the   call. While that is more efficient, I am not sure it is safe to assume that a substed #if will treat an HTML comment as non-empty. Is that a bug or a feature? There are no tests for this in the ParserFunctions code repository, and the parser replaces comments with strip markers, which many parser functions remove from their input. So I think that unless and until a separate  parser function is created, the version I propose is the best one.

P.S. I did consider including in this request, using text from WP:TDOC, though decided against it because this is a protected template; users who have access to edit it should already be aware of WP:CAT. PleaseStand (talk) 19:31, 19 March 2024 (UTC)
 * This template is used in 70,000 pages and hasn't changed materially in 14 years. Is there really a need for this change? – Jonesey95 (talk) 20:14, 19 March 2024 (UTC)
 * Deactivated my edit request, as the above comment appears to indicate this is a controversial change. The proposed version improves efficiency of the code, though apparently, not everyone considers the improvement to be significant enough for a highly-used template. PleaseStand (talk) 06:30, 22 March 2024 (UTC)