Templat:Refn/doc

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas

Tujuan[sunting sumber]

Templat ini digunakan untuk membuat catatan kaki di Wikipedia, sebagai alternatif dan pelengkap <ref>. Karena keterbatasan teknis, beberapa elemen markup Wikipedia standar yang sering digunakan dalam prosa artikel tidak berfungsi dalam satu set <ref>...</ref> tag, termasuk namun tidak terbatas pada trik pipa, substitusi template dan kumpulan "bersarang" <ref>...</ref> tag. Misalnya, berikut ini tidak berfungsi seperti yang diharapkan:

  1. <ref>[[Bantuan:Catatan kaki|]]</ref> (Menghasilkan: [[Bantuan:Catatan kaki|]] alih wikilink)
  2. <ref>{{SUBST:TODAY}}</ref> (Menghasilkan: {{SUBST:TODAY}} alih tanggal pengeditan dilakukan)
  3. <ref>Catatan kaki penjelasan<ref>Kutipan</ref></ref> (Menghasilkan: Cite error: A <ref> tag is missing the closing </ref> (see the help page). </ref>)

Mengganti paling luar <ref>...</ref> diatur dengan {{Refn|{{{2}}}}} memungkinkan penggunaan elemen markup yang tercantum di atas.

Penggunaan[sunting sumber]

{{refn|group=groupname|name=name|Contents of the footnote}}

  • nama grup: Nama grup per WP:REFGROUP; jika tidak ditentukan, referensi utama dan bertingkat akan dirender ke dalam daftar referensi yang sama
  • name: Nama referensi per WP:REFNAME

Templat:Refname rules

Contoh[sunting sumber]

Catatan kaki dengan kutipan[sunting sumber]

Markah Hasil akhir
An example.{{refn|group=note|name=first|A note.<ref>An included reference.</ref>}}
Another example.{{refn|group=note|Another note.<ref>Another included reference.</ref>}}
A third example.{{refn|group=note|The third note.<ref>The reference in the third note.</ref>}}
Repeating the first example.{{refn|group=note|name=first}}

== Catatan ==
{{reflist|group=note}}

== Referensi ==
{{reflist}}

An example.[note 1] Another example.[note 2] A third example.[note 3] Repeating the first example.[note 1]

Notes
  1. ^ a b A note.[1]
  2. ^ Another note.[2]
  3. ^ The third note.[3]
References
  1. ^ An included reference.
  2. ^ Another included reference.
  3. ^ The reference in the third note.

Pergantian[sunting sumber]

Contoh pertama menunjukkan bahwa substitusi tidak bekerja di <regulersyntaxhighlight lang="HTML" inline>[1]</syntaxhighlight> tag (|access-date= tidak muncul dengan benar). Contoh kedua menunjukkan bahwa |access-date= diganti dengan benar dalam {{ refn}}.

Markah Hasil akhir
<ref>{{cite web |access-date={{Subst:TODAY}} |title=Languages |work=Apache HTTP Server |agency=Ohloh |publisher= Black Duck Software |url=https://www.ohloh.net/p/apache/analyses/latest/languages_summary}}</ref>
{{reflist}}

[2]

  1. ^ ...
  2. ^ "Languages". Apache HTTP Server. Black Duck Software. Ohloh. Diakses tanggal {{Subst:TODAY}}. 
{{refn|{{cite web |access-date={{Subst:TODAY}} |title=Languages |work=Apache HTTP Server |agency=Ohloh |publisher= Black Duck Software |url=https://www.ohloh.net/p/apache/analyses/latest/languages_summary}}}}
{{reflist}}

[1]

  1. ^ "Languages". Apache HTTP Server. Black Duck Software. Ohloh. Diakses tanggal 4 April 2014.