Templat:Reflist: Perbedaan antara revisi

Dari Wiki Javasatu
Loncat ke navigasi Loncat ke pencarian
(←Membuat halaman berisi '<templatestyles src="Reflist/styles.css" /><div class="reflist <!-- -->{{#if:{{{1|}}}{{{colwidth|}}}|reflist-columns references-column-width}} <!-- -->{{#switch:{{{group|}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=reflist-{{{group}}}}} <!-- -->{{#if:{{{1|}}}|{{#iferror:{{#ifexpr: {{{1|1}}} > 1 }}||{{#switch:{{{1|}}}|1=|2=reflist-columns-2|#default=reflist-columns-3}} }}}}" <!-- end class -->{{#if:{{{1|}}}{{{colwidth|}}}{{{liststyle|}}}|<!-- st...')
Tidak ada ringkasan suntingan
Baris 1: Baris 1:
<templatestyles src="Reflist/styles.css" /><div class="reflist <!--
<div class="reflist <!--
-->{{#if:{{{1|}}}{{{colwidth|}}}|reflist-columns references-column-width}} <!--
-->{{#if: {{{1|}}}
-->{{#switch:{{{group|}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=reflist-{{{group}}}}} <!--
    | columns {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
-->{{#if:{{{1|}}}|{{#iferror:{{#ifexpr: {{{1|1}}} > 1 }}||{{#switch:{{{1|}}}|1=|2=reflist-columns-2|#default=reflist-columns-3}} }}}}" <!-- end class
      | references-column-width
-->{{#if:{{{1|}}}{{{colwidth|}}}{{{liststyle|}}}|<!-- start style
      | references-column-count references-column-count-{{#if:1|{{{1}}}}} }}
-->style="{{#if: {{{1|}}}
    | {{#if: {{{colwidth|}}}
     | {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }} |column-width: {{{1}}};}}
      | references-column-width }} }}" style="<!--
     | {{#if: {{{colwidth|}}}|column-width: {{{colwidth}}};}}
-->{{#if: {{{1|}}}
    }} <!--
     | {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
-->{{#if:{{{group|}}}||{{#if:{{{liststyle|}}}|list-style-type: {{{liststyle}}};}}}}"<!--
      | column-width: {{{1|30em}}};
-->}}>
      | column-count: {{{1|2}}}; }}
{{#tag:references|{{{refs|}}}|group={{{group|}}}|responsive={{#if:{{{1|}}}{{{colwidth|}}}|0|1}}}}</div>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using reflist with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Reflist]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | colwidth | group | liststyle | refs }}<noinclude>
     | {{#if: {{{colwidth|}}}
      | column-width: {{{colwidth|30em}}}; }} }} list-style-type: <!--
-->{{{liststyle|{{#switch: {{{group|}}}
    | upper-alpha
    | upper-roman
    | lower-alpha
    | lower-greek
    | lower-roman = {{{group}}}
    | #default = decimal}}}}};">
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revisi per 22 September 2023 13.50

[lihat] [sunting] [riwayat] [hapus singgahan] Ikon dokumentasi Dokumentasi templat

This citation template provides formatting and organizational features for footnotes. It encapsulates the <references /> tag used by the cite.php MediaWiki extension to show the list of references as defined by <ref> tags. It adds support for a reduced font size, columns, groups.

If you don't use any of the additional features, then it produces the same output as the simpler and slightly faster <references /> tag.

Parameters

  • First unnamed parameter:
    • column-count: a natural number specifying fixed columns into which the reference list is to be rendered. Example: |2|.
    • column-width: a typographic unit of measurement such as em, specifying the width for the reference list columns. Example: |30em|.
  • refs: used with named references (e.g., <ref name=name />); it specifies a list of some or all named references used in the article.
  • group: identifies by name the subset of references to be rendered; the value should correspond to that used inline, e.g., {{Reflist|group=groupname}} renders all references with groupname as the group name (<ref group=groupname>).
  • liststyle: specifies the style used when the reference list is enumerated; if none is specified, the default is to render a numbered list.

Example

Lorem.<ref>ipsum</ref><ref>dolor</ref><ref>sit</ref><ref>amet</ref>
Consectetur.<ref>adipisicing</ref><ref>elit, sed</ref><ref>do</ref>

{{Reflist|3}}

gives:

Lorem.[1][2][3][4] Consectetur.[5][6][7]

  1. ipsum
  2. dolor
  3. sit
  4. amet
  5. adipisicing
  6. elit, sed
  7. do

TemplateData

Ini dokumennya TemplateData untuk template ini digunakan oleh VisualEditor dan alat lainnya; lihat laporan penggunaan parameter bulanan untuk templat ini.

TemplateData untuk Reflist

A reference list, with options for setting columns, groups, extra references etc.

[Kelola data templat]

Parameter templat

ParameterKeteranganJenisStatus
Column Count1

A natural number specifying fixed columns into which the reference list is to be rendered.

Baku
1
Contoh
|2|
Angkaopsional
Column Widthcolwidth

A typographic unit of measurement such as “em”, specifying the width for the reference list columns.

Contoh
|colwidth=30em|
Kataopsional
List Styleliststyle

Specifies the style used when the reference list is enumerated; accepts any valid CSS value defined for “list-style-type”.

Nilai yang disarankan
decimal lower-alpha lower-greek lower-roman upper-alpha upper-roman
Baku
decimal
Kataopsional
Group namegroup

The name of the references group. Identifies by name the subset of references to be rendered; the value should correspond to that used inline.

Contoh
{{reflist|group=groupname}} renders all references with “groupname” as the group name (<ref group=“groupname”>)
Kataopsional
List of referencesrefs

Provides a space to define named references for use in the article. Used with named references (e.g., ‎<ref name=“name” />); it specifies a list of some or all named references used in the article.

Isidisarankan