साँचा:Template reference list/doc

मुक्त ज्ञानकोश विकिपीडिया से
नेविगेशन पर जाएँ खोज पर जाएँ

{{

 साँचा:namespace detect

| type = notice | image = | imageright = | class = | style = margin-bottom:1.0em; | textstyle = | text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }}

This template is used to show the references used in a template on the template page.

Overview

साँचा:tl provides an explanatory list of references that are entered into the template in which Template reference list is inserted. The references appear in the article where the template is used if either साँचा:tl or the साँचा:tag tag is used in the article. By showing the references on the template page, the Cite error message is defeated, and it allows the template editor to verify those references.

Usage

Documentation page

If the template includes a documentation page, simply add a regular references section there.

Basic usage

If the template does not include a documentation page, add:

<noinclude>{{Template reference list}}</noinclude>

near the end of the template as in any article.

Grouped references

If one or more references of the template are grouped (like: <ref group="groupname">), you may use:

<noinclude>{{Template reference list|groupname1|groupname2|groupname3}}</noinclude>

It supports a maximum of 6 group names.

Important note

The article where the template is used must include a साँचा:tag tag or the साँचा:tl template.

If the references are grouped, the article must also include साँचा:tag tags or the साँचा:tlp templates.

Technical

This templates uses <h2>References</h2> instead of == References == to create the section header. The standard wikimarkup creates an edit link that when transcludeds links back to the original template. Thus, an editor who clicked on the edit link on the References section would confusingly open this template for editing.

See also