Template:Reflist: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{1}}} | {{#switch: {{{1|}}}
<includeonly><templatestyles src="Reflist/styles.css" /><div class ="{{#if: {{{1}}} | reflist ref{{{1|}}} | reflist}}" style="list-style-type:{{#switch: {{{1|}}}
| act1
| act1
| act 1 = <h4>Act 1</h4>
| act2
| act2
| act 2 = <h4>Act 2</h4>
| act3 = lower-alpha
| act3
| #default = decimal}};"> {{#if: {{{1|}}} | {{#tag:references|{{{refs|}}}|group="{{{1|}}}"}} | {{#tag:references}}}}</div></includeonly><noinclude>{{documentation|content=Add advanced references to a page. For use with [[Template:Ref]] and [[Template:Cite web]]. The first parameter optionally defines a group.
| act 3 = <h4>Act 3</h4>
 
| book
The groups act1, act2, act3, url, text and note will also be automatically formatted.
| 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|Act 1 |group="act1"}}
| act2
| act 2 = {{#tag:references|Act 2 |group="act2"}}
| act3
| act 3 = {{#tag:references|Act 3 |group="act3"}}
| book
| letter
| text = {{#tag:references|Books and letters |group="text"}}
| link
| URL
| url = {{#tag:references|External links|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.
==Example==
==Example==
Example this.<ref> example </ref>
When used with [[Template:Ref]]:
Example that.{{cite web
<pre>Example this.{{ref|example}}
|work = Official website
Example that.{{ref|act 2 reference|act2}}
|author = Perry
Example those.{{ref|act 1 reference|act1}}
|date = 1961-07-94
 
|url = https://bg3.wiki
{{reflist}}
|title = Perry's Homepage
{{reflist|act1|2}}
|publisher = Perry and friends
{{reflist|act2}}</pre>
|accessdate = 2023-03-03
Example this.{{ref|example}}
|archiveurl = https://archive.org/
Example that.{{ref|act 2 reference|act2}}
|archivedate = 2023-04-04
Example those.{{ref|act 1 reference|act1}}
}}
 
Example those.<ref group=act1> other </ref>
<pre>{{reflist}}
{{reflist|act1}}
{{reflist|url}}</pre>
{{reflist}}
{{reflist}}
{{reflist|act1}}
{{reflist|act1}}
{{reflist|url}}
{{reflist|act2}}
 
[[Category:Templates]]
[[Category:Citation templates]]
== Template data ==
== Template data ==
<templatedata>
<templatedata>
Line 57: Line 31:
"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.",
"type": "string",
"suggestedvalues": [
"act1",
"act2",
"act3",
"text",
"url",
"note"
]
},
"refs": {
"label": "Refs",
"description": "Add a list of references.",
"deprecated": "Not supported currently, usage is not advised."
}
}
}
},
"paramOrder": [
"1",
"refs"
]
}
}
</templatedata></noinclude>
</templatedata>}}</noinclude>

Latest revision as of 19:09, 1 February 2024

Template documentation

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

The groups act1, act2, act3, url, text and note will also be automatically formatted.

Example

When used with Template:Ref:

Example this.{{ref|example}}
Example that.{{ref|act 2 reference|act2}}
Example those.{{ref|act 1 reference|act1}}

{{reflist}}
{{reflist|act1|2}}
{{reflist|act2}}

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

  1. example
  1. act 1 reference
  1. act 2 reference

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
Group1

A group for use with Cite.

Suggested values
act1 act2 act3 text url note
Stringoptional
Refsrefs

Add a list of references.

Unknowndeprecated