Template:Issubst: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
Template to detect substitution
 
ArrowHead294 (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{safesubst:<noinclude />#ifeq: {{safesubst:<noinclude />NAMESPACE}}|{{NAMESPACE}}||yes}}<noinclude>
{{<includeonly>safesubst:</includeonly>#ifeq: {{<includeonly>safesubst:</includeonly>NAMESPACE}}|{{NAMESPACE}}||yes}}<noinclude>
{{Documentation}}
{{Documentation}}


[[Category:Templates]]
[[Category:Metatemplates]]
</noinclude>
</noinclude>

Latest revision as of 15:21, 28 January 2026

Template documentation[view] [edit] [history] [purge]
This template is a metatemplate. It is used to build other templates and should not be used standalone, except for testing or simple usage.
English Wikipedia has an article on:

This is a metatemplate that returns "yes" if evaluated during substitution, and the empty string if evaluated during transclusion.

Note that this template must be used in safesubst mode to work properly:

{{<includeonly>safesubst:</includeonly>issubst}}

Examples

  • "{{issubst}}" → ""
  • "{{subst:issubst}}" → "yes"