Help:A quick guide to templates: Difference between revisions
Content deleted Content added
Caleb Cooper (talk | contribs) |
Caleb Cooper (talk | contribs) m Text replacement - "[[Help:Template" to "[[Wikipedia:Help:Template " |
||
Line 26:
===Parameters===
Templates can have parameters which the page can dynamically incorporate into the transcluded page. Instead of just the template name, like <code><nowiki>{{foo}}</nowiki></code>, an embedded template tag would have additional values separated by [[vertical bar]]s (|), e.g. <code><nowiki>{{foo|July|lc=yes}}</nowiki></code>. Here <code>July</code> is the value of the first unnamed parameter; <code>yes</code> is the value of the named parameter <code>lc</code>. Writing the template page for a template with parameters is more complicated than for a template with no parameters. See [[Wikipedia:Help:
===Editing existing templates===
Line 51:
'''How can I add parameters?'''
: See [[Wikipedia:Help:
'''I edited the template, so why didn't the page it is used on change? '''
| |||