Template:Reflist: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(Taken from [http://en.wikipedia.org/wiki/Template:Reflist Wikipedia.])
 
(adding a "refs" parameter for defining references inside reflist + Documentation/TemplateData)
 
Line 1: Line 1:
<div class="references-small {{#if: {{{colwidth|}}} | references-column-width | {{#iferror: {{#ifexpr: {{{1|1}}}>1 | references-column-count references-column-count-{{{1}}} }} }} }}" {{#if: {{{colwidth|}}}| style="-moz-column-width:{{{colwidth}}}; column-width:{{{colwidth}}};" | {{#if: {{{1|}}}| style="-moz-column-count:{{{1}}}; column-count:{{{1}}};" }} }}>
<div class="references-small {{#if: {{{colwidth|}}} | references-column-width | {{#iferror: {{#ifexpr: {{{1|1}}}>1 | references-column-count references-column-count-{{{1}}} }} }} }}" {{#if: {{{colwidth|}}}| style="-moz-column-width:{{{colwidth}}}; column-width:{{{colwidth}}};" | {{#if: {{{1|}}}| style="-moz-column-count:{{{1}}}; column-count:{{{1}}};" }} }}>
{{#tag:references||group={{{group|}}}}}</div><noinclude>[[category:templates]]</noinclude>
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude>
{{template|Reflist}} creates a citation list using the <code><nowiki><references></nowiki></code> tag.
 
Also see [[Help:References]] and [[Bulbapedia:Manual of style/References]].
----
<templatedata>
{
"params": {
"refs": {
"label": "References",
"description": "Reference List. Can define \"<ref>\" tags here",
"type": "string",
"suggested": true
},
"group": {
"label": "Group",
"description": "Reference Group name",
"type": "line",
"suggestedvalues": [
"lower-alpha",
"note",
"footnote",
"fn"
],
"suggested": true
}
},
"description": "This templates creates a citation list using the <references/> tag.",
"paramOrder": [
"group",
"refs"
],
"format": "inline"
}
</templatedata>
[[category:templates]]
</noinclude>

Latest revision as of 01:07, 1 May 2024

{{Reflist}} creates a citation list using the <references> tag.

Also see Help:References and Bulbapedia:Manual of style/References.


This templates creates a citation list using the <references/> tag.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Groupgroup

Reference Group name

Suggested values
lower-alpha note footnote fn
Linesuggested
Referencesrefs

Reference List. Can define "<ref>" tags here

Stringsuggested