Help:A quick guide to templates: Difference between revisions
Content deleted Content added
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) m Text replacement - "[[Help:Template" to "[[Wikipedia:Help:Template " |
||
| (One intermediate revision by the same user not shown) | |||
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? '''
Line 66:
'''Where is the manual for the programming language used to write templates?'''
: The language inside templates is the same language as regular wiki markup, but template writers tend to use the more complex available functions such as #if: statements. See Wikipedia's [[Wikipedia:Help:Template]] and Wikimedia's [[
== See Also ==
| |||