ފަންވަތް:Reflist/doc: Difference between revisions

Content deleted Content added
m ރޮބޮޓ ފޮހެލުނ: hu:Reflist (missing)
m Bot: Replace deprecated <source> tag and "enclose" parameter; cosmetic changes
 
ފޮޅުވަތް 3:
<includeonly>{{high-risk| 1,000,000+ }}</includeonly>
 
This template encapsulates the {{tag|references |single}} tag to show the list of references defined by {{tag|ref}} tags, with some formatting. It reduces the font size and has options for columns and groups. References can be defined within the body of the article or within the reference list.
 
The {{tag|ref}} and {{tag|references |single}} tags are part of the [[mw:Extension:Cite/Cite.php|Cite.php]] MediaWiki extension.
ފޮޅުވަތް 62:
Columns are currently supported only by [[Mozilla Firefox]] and other [[Gecko (layout engine)|Gecko]]-based browsers. See [[#Browser support for columns]] for more information.
 
Using {{tlx|reflist|2}} will create a two-column reference list, and {{tlx|reflist|3}} will create a three-column list. Three-column lists are inaccessible to users with smaller/laptop monitors and should be avoided.
 
Using {{tlx|reflist|colwidth{{=}}30em}} will allow the browser to automatically choose the number of columns based on the width of the web browser. Choose a column width that is appropriate for the average width of the references on the page.
 
== Multiple uses ==
 
If {{tl|reflist}} is used multiple times without a parameter, each instance will include all of the previous define references. To force the parser to close previous references, each use of {{tl|reflist}} must be forced as a new instance by the use of any parameter. Even a undefined parameter such as {{tlx|reflist|close&#61;=1}} will force the references to close.
 
== Grouped references ==
As of June 2008, the footnotes system supports the separation of references into groups. This allows groups for explanatory notes, table references and the like. See [[Wikipediaވިކިޕީޑިއާ:Footnotes#Separating reference lists and explanatory notes]].
 
The general format for the reference tag would be:
 
:{{tag|ref group&#61;=''"groupname"''|open}}
 
And for the reflist:
:{{tlx|reflist|group&#61;=''"groupname"''}}
 
:Where ''groupname'' would be a group identifier such as "note", "nb" or "label".
ފޮޅުވަތް 95:
 
== List-defined references ==
As of September 2009, references may be defined within {{tl|reflist}} using {{para|refs}} and invoked within the content. There are new error messages associated with this update, documented at [[Helpއެހީ:Cite errors]].
 
For example:
ފޮޅުވަތް 130:
**may mangle long URLs in the printable version; see [[:Image:Wikipediareflistoverlap.gif]] for an example
* [[Internet Explorer]] through version 8 does not support the column property<ref name=msdn />
* [[Safari (web browser)|Safari]] through 4.03, [[Google Chrome]] and probably other [[WebKit]] based browsers have a bug that breaks links in multiple columns; the column feature has been removed for these browsers until the bug is resolved; see [[Templateފަންވަތް:reflist/Safari testcase]] for details.
* [[Opera (web browser)|Opera]] does not support multiple columns.
 
=== Supporting CSS ===
{{tl|Reflist}} uses a CSS rule in [[MediaWikiމީޑިއާވިކީ:Common.css]] to set the font size:
 
* <code>.references-small { font-size: 90%;}</code>
ފޮޅުވަތް 153:
 
=== Customizing the view ===
By editing your CSS, the personal appearance of the reference list can be customized. From [[Specialޚާއްސަ:Preferences|Preferences]], select the Appearance tab, then on the selected skin select Custom CSS. After editing and saving, follow the instructions at the top of the page to purge. See [[Wikipediaވިކިޕީޑިއާ:Skin#Customisation (advanced users)]] for more help.
 
;Font size
The font size defaults to 90% of the standard size. To change it, add:
 
<sourcesyntaxhighlight lang="css">.references-small { font-size: 90%;}</sourcesyntaxhighlight>
 
Change 90% to the desired size.
ފޮޅުވަތް 165:
To disable columns, add:
 
<sourcesyntaxhighlight lang="css">
.references-column-count, .references-column-width {
column-count:1 !important;
ފޮޅުވަތް 174:
-webkit-column-width:auto !important;
}
</syntaxhighlight>
</source>
 
Similarly, to force all reference lists to a number of columns, change the number.
 
=== Collapsing and scrolling ===
There have been a number of requests to add functionality for a collapsible or scrolling reference list. These requests have not been fulfilled to due to issues with readability, accessibility, and printing. The applicable guidelines are at [[Wikipediaވިކިޕީޑިއާ:Manual of Style#Scrolling lists]] and [[Wikipediaވިކިޕީޑިއާ:Accessibility#Scrolling and collapsible sections]].
 
The links between the inline cite and the reference list do not work when the reference list is enclosed in a collapsed box.
 
== See also ==
* [[Wikipediaވިކިޕީޑިއާ:Citing sources]]— style guide for the citation of sources
* [[Wikipediaވިކިޕީޑިއާ:Footnotes]]— style guide for footnotes and inline citations
* [[Wikipediaވިކިޕީޑިއާ:Citation templates]]— templates for use with references
* {{tl|Template reference list}}— version of reflist for use in templates
* {{tl|refbegin}} and {{tl|refend}}— format reference lists
ފޮޅުވަތް 194:
{{reflist|refs=
 
<ref name=fontsize>See [[Userމެމްބަރު:Edokter/fonttest]] for a comparison of font sizes for various browsers.</ref>
 
<ref name=stuffandnonsense>{{cite web |accessdate=November 24, 2006 |date=December 30, 2005 |title=CSS3 Multi-Column Thriller |url=http://www.stuffandnonsense.co.uk/archives/css3_multi-column_thriller.html}}</ref>
ފޮޅުވަތް 206:
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Categoryޤިސްމު:Citation templates|{{PAGENAME}}]]
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[ar:قالب:ثبت المراجع]]
[[be-x-old:Шаблён:Зноскі]]
[[ca:Plantilla:Referències]]
[[eo:Ŝablono:Referencoj]]
[[es:Plantilla:Listaref]]
[[fr:Modèle:Références]]
[[hi:Template:टिप्पणीसूची]]
[[hr:Predložak:Izvori]]
[[hsb:Předłoha:Referency]]
[[ia:Patrono:Reflist]]
[[it:Template:References]]
[[ja:Template:Reflist]]
[[ka:თარგი:სქოლიოს სია]]
[[ko:틀:주석]]
[[lv:Veidne:Reflist]]
[[ml:ഫലകം:Reflist]]
[[ms:Templat:Reflist]]
[[no:Mal:Reflist]]
[[pl:Szablon:Przypisy]]
[[pt:Predefinição:Reflist]]
[[ro:Format:Listănote]]
[[ru:Шаблон:Примечания]]
[[sr:Шаблон:Напомене]]
[[fi:Malline:Viitteet]]
[[th:แม่แบบ:รายการอ้างอิง]]
[[uk:Шаблон:Reflist]]
[[vi:Bản mẫu:Tham khảo]]
[[zh:Template:Reflist]]
</includeonly>