Difference between revisions of "Template:Issubst/Documentation"

From GodWiki
Jump to: navigation, search
(Borrowed docs from Wikipedia's Template:Issubst/Documentation)
 
m (Removed includeonly tags around category)
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
 
*"<code><nowiki>{{subst:issubst}}</nowiki></code>" → "yes"
 
*"<code><nowiki>{{subst:issubst}}</nowiki></code>" → "yes"
  
<includeonly>
+
<noinclude>[[Category:Templates/Documents|{{PAGENAME}}]]</noinclude>
<!-- Categories here -->
 
</includeonly>
 

Latest revision as of 06:22, 12 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"