Help:Templates: Difference between revisions

From Wikishire
Jump to navigation Jump to search
Created page with "Need help using templates? To use a template, simply add {{''Your template here''}} to the page. Example: <pre>{{ASIN}}</pre> generates: {{ASIN}}"
 
mNo edit summary
 
Line 7: Line 7:
generates:
generates:
{{ASIN}}
{{ASIN}}
To substitute, add the prefix subst: after the curly brackets which are <nowiki>{{, then add your template name here and then }}</nowiki>.
Example:
Substituting expands the code from:
<pre>{{subst:0}}</pre>
to:
<pre><span style="visibility:hidden;color:transparent;">{{{1|0}}}</span></pre>
You may also add a pipe ({{!}})  and then text from here after the template name (}}). You can also add = like: |Example=example or #ifeq or like this.

Latest revision as of 03:52, 14 June 2019

Need help using templates?

To use a template, simply add {{Your template here}} to the page.

Example:

{{ASIN}}

generates: ASIN {{{1}}}

To substitute, add the prefix subst: after the curly brackets which are {{, then add your template name here and then }}.

Example: Substituting expands the code from:

{{subst:0}}

to:

<span style="visibility:hidden;color:transparent;">{{{1|0}}}</span>

You may also add a pipe (|) and then text from here after the template name (}}). You can also add = like: |Example=example or #ifeq or like this.