Template:Reflist: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#if: {{{1}}} | {{#switch: {{{1|}}}
<includeonly>{{#if: {{{1}}} | {{#tag:references|{{{2|}}}|group="{{{1|}}}"}} | {{#tag:references}}}}</includeonly><noinclude>Add advanced references to a page. For use with [[Template:Cite]] and [[Template:Cite web]]. The first parameter optionally defines a group.
| act1
| act 1 = <h4>Act 1</h4>
| act2
| act 2 = <h4>Act 2</h4>
| act3
| act 3 = <h4>Act 3</h4>
| book
| letter
| text = <h4>Books and letters</h4>
| link
| URL
| url = <h4>External links</h4>
| #default = <h2> References </h2>
}}}}{{#switch: {{{1|}}}
| act1
| act 1 = {{#tag:references|1|group="act1"}}
| act2
| act 2 = {{#tag:references|1|group="act2"}}
| act3
| act 3 = {{#tag:references|1|group="act3"}}
| book
| letter
| text = {{#tag:references|1|group="text"}}
| link
| URL
| url = {{#tag:references|1|group="url"}}
| #default = {{#tag:references}}
}}</includeonly><noinclude>Add advanced references to a page. For use with [[Template:Cite]] and [[Template:Cite web]]. The first parameter optionally defines a group and adds the appropriate header to the page.


If using this template to display groups, remember to first use the template without any parameter, as in the example on this page.
To use a custom group, see [[Template:Reflist/custom]].
==Example==
==Example==
Example this.{{cite|example}}
Example this.{{cite|example}}
Line 59: Line 28:
"1": {
"1": {
"label": "Group",
"label": "Group",
"description": "A group for use with Cite. Valid values are act1, act2, act3, text, and url. Leave empty it no group is fitting"
"description": "A group for use with Cite."
}
}
}
}
}
}
</templatedata></noinclude>
</templatedata></noinclude>
8,856
edits

Navigation menu