Template:Issubst: Difference between revisions
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:< | {{<includeonly>safesubst:</includeonly>#ifeq: {{<includeonly>safesubst:</includeonly>NAMESPACE}}|{{NAMESPACE}}||yes}}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category: | [[Category:Metatemplates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 15:21, 28 January 2026
- This template is a metatemplate. It is used to build other templates and should not be used standalone, except for testing or simple usage.
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"
