Template:Refbegin

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Refbegin/doc.

No description yet available.

Usage

{{refbegin |colwidth= }}

I have suggested this template as an option for usage in the second and third of three options for citing notes on a wikipedia article. The original discussion can be found here. Below is a copy of the 3 suggested options...

Option 1 (only specific references) - see w:The Rule

== References ==

{{reflist}}

Option 2 (only general references) - see w:National Publications

== References ==

{{refbegin}}
* general reference 1
* general reference 2
{{refend}}

Option 3 (both specific and general references) - see w:Elephant

== References ==

{{reflist}}

{{refbegin}}
* general reference 1
* general reference 2
{{refend}}

Template parameters

<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

[Edit template data]

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
column count1

The number of columns the references appear in. This parameter is deprecated, as it doesn’t scale well on narrow screens; specify the column width instead.

Numberdeprecated
column widthcolwidth

The minimal width of the reference list columns. Specify the unit as well, e.g. “15em” or “400px”. Prefer the “em” unit, as that usually provides better layout when the reader alters the font size (e.g. increases because of eye problems).

Lineoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

See also

Localization

This template is not intended to be localized.
https://commons.wikimedia.org/wiki/Template:Refbegin
commons.wikimedia.org
CC-MAIN-2023-14
85475
application/http; msgtype=response
sha1:ABQLJMKUZCGO4C7OKCWPCH2HSGWSNUD2
<urn:uuid:a70093c1-68f3-404b-9f66-6bb92d53f45d>
2023-03-22T07:22:03Z
208.80.154.224
text/html
sha1:PWGUHD3MOVUINW7L7FRV5KTADJO3NOIC
<urn:uuid:5aaa67d2-c263-4a19-a873-4710b82ac50f>
https://commons.wikimedia.org/wiki/Template:Refbegin
response
<urn:uuid:26fb186e-b8e5-495c-9716-ea85ecad844e>
isPartOf: CC-MAIN-2023-14
publisher: Common Crawl
description: Wide crawl of the web for March/April 2023
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-202
software: Apache Nutch 1.19 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.4-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/