Difference between revisions of "Template:Issubst/Documentation"

From GodWiki
Jump to: navigation, search
(Borrowed docs from Wikipedia's Template:Issubst/Documentation)
 
m (Category)
Line 8: Line 8:
 
*"<code><nowiki>{{subst:issubst}}</nowiki></code>" → "yes"
 
*"<code><nowiki>{{subst:issubst}}</nowiki></code>" → "yes"
  
<includeonly>
+
<includeonly><noinclude>[[Category:Templates/Documents|{{PAGENAME}}]]</noinclude></includeonly>
<!-- Categories here -->
 
</includeonly>
 

Revision as of 18:23, 11 November 2018

Usage

Meta template 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:

{{ {{{|safesubst:}}}issubst}}

Examples

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