FamilySearch Wiki:Template documentation: Difference between revisions

m
fix template
(Created page with "Templates are a very powerful feature of {{mw|MediaWiki|MediaWiki}}, but can be confusing to new users and even experienced users can have difficulty making sen...")
 
m (fix template)
Line 43: Line 43:
Save the subpage and return to the template itself, <code>Template:X</code>, in this example. Edit the template and append the following at the end of the template code:
Save the subpage and return to the template itself, <code>Template:X</code>, in this example. Edit the template and append the following at the end of the template code:


  {{Colors|black|#CCC|{{var|[--last line of your template code--]}}}}<nowiki>&lt;noinclude>
  {{Colors|black|#CCC|var|[--last line of your template code--]}}<nowiki>&lt;noinclude>


{{Documentation}}
{{Documentation}}
Line 85: Line 85:
* HTML tags like {{tag|ref|params=group{{=}}"note"}} can be easily inserted with {{tl|tag}}. This example is written as {{tlp|tag|ref|params{{=}}group{{=}}"note"}}
* HTML tags like {{tag|ref|params=group{{=}}"note"}} can be easily inserted with {{tl|tag}}. This example is written as {{tlp|tag|ref|params{{=}}group{{=}}"note"}}
* Equals sign '''=''' can be inserted with {{tn|{{=}}}}. For example, {{tlp|Citation needed|date{{=}}1900-02-29}} is made by {{tlp|tlp|Citation needed|date{{<nowiki />=}}1900-02-29}}. Avoid the equivalent notation &amp;#61; which is not easy to read for other editors.
* Equals sign '''=''' can be inserted with {{tn|{{=}}}}. For example, {{tlp|Citation needed|date{{=}}1900-02-29}} is made by {{tlp|tlp|Citation needed|date{{<nowiki />=}}1900-02-29}}. Avoid the equivalent notation &amp;#61; which is not easy to read for other editors.
* Don't forget the single {{tag|nowiki|s}} tag. [[<nowiki />{{tag|nowiki|s}}example]] becomes [[<nowiki />example]]* For a link to a category, use {{tl|cat}}. For example {{tlp|cat|Templates with incorrect parameter syntax}} becomes {{cat|Templates with incorrect parameter syntax}}.
* Don't forget the single {{tag|nowiki|s}} tag. [[<nowiki />{{tag|nowiki|s}}example]] becomes [[<nowiki />example]]* For a link to a category, use {{tl|cat}}. For example {{tlp|cat|Templates with incorrect parameter syntax}} becomes cat|Templates with incorrect parameter syntax.


==See also==
==See also==
42,316

edits