Help:Template: Difference between revisions

Content deleted Content added
Line 64:
Click on [[Template:Lambda]], then click on the "Edit source" tab to see the template code (its wikitext). The "active" part of that code, called the {{dfn|expansion}} of the template, is the single word <code>&amp;lambda;</code>.{{efn|<code>&amp;lambda;</code> is the [[List of XML and HTML character entity references|HTML character entity]] for the Greek letter (λ).}} The remainder of the wikitext is enclosed between {{xtag|noinclude}} tags so it is displayed on the template page itself but will not be displayed when the template is used (or called) on another page.
 
To transclude Template:Lambda onto another page (i.e., to use it on another page), type {{tlx|lambda}} (or {{tlx|Lambda}}—the case of the first letter is not significant) intosignificant—into the wikitext of the target page and press {{Button|Show preview}}. The page will be displayed with the {{dfn|template call}} replaced by the expansion of the template, as if the wikitext actually contained <code>&amp;lambda;</code> at that point. The displayed page will therefore contain the text "λ".
 
For example, type <code>The 11th letter of the Greek alphabet is the lambda ({{tl|lambda}})</code> and you will see "The 11th letter of the Greek alphabet is the lambda ({{lambda}})" when previewing the page or after saving the change. You can use templates without knowing the details of their code; you only need to remember what result they produce, which is usually described on the template page.