Template:Reflist: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
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>

Revision as of 18:30, 28 October 2023

Add advanced references to a page. For use with Template:Cite and Template:Cite web. The first parameter optionally defines a group.

Example

Example this.[1] Example that.[url 1] Example those.[act1 a]

{{reflist}}
{{reflist|act1}}
{{reflist|url}}
  1. example
  1. act 1 reference
  1. Official website: Perry (1961-07-94). Perry's Homepage. Perry and friends. Retrieved 2023-03-03. Archived from the original on 2023-04-04.

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
Group1

A group for use with Cite.

Unknownoptional