Lompat ke isi

Templat:Random portal component/doc: Perbedaan antara revisi

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Konten dihapus Konten ditambahkan
kTidak ada ringkasan suntingan
k Bot: Perubahan kosmetika
Baris 3: Baris 3:
This template generates a box for a portal home page. The content is drawn randomly from a pre-defined list. Using this template makes editing portal page easy!
This template generates a box for a portal home page. The content is drawn randomly from a pre-defined list. Using this template makes editing portal page easy!


==Contoh==
== Contoh ==
Untuk contoh langsung, lihat halaman yang memakai templat ini di [[Special:Whatlinkshere/Templat:{{BASEPAGENAME}}|what links here]].
Untuk contoh langsung, lihat halaman yang memakai templat ini di [[Istimewa:Whatlinkshere/Templat:{{BASEPAGENAME}}|what links here]].


Berikut adalah contoh sederhana output yang dihasilkan oleh templat ini.
Berikut adalah contoh sederhana output yang dihasilkan oleh templat ini.
Baris 13: Baris 13:
|titlebackground=#A9A9A9 <!-- This is the color of the Box Section Title Bar -->
|titlebackground=#A9A9A9 <!-- This is the color of the Box Section Title Bar -->
|background=#FFFFFF <!-- This is the color of the Box Section background -->
|background=#FFFFFF <!-- This is the color of the Box Section background -->
|foreground=black}} <!-- This is the color of the Box Section text -->
|foreground=black}} <!-- This is the color of the Box Section text -->
{{Lorem ipsum}}
{{Lorem ipsum}}
{{Templat:Portal-Box-footer | footer }}
{{Templat:Portal-Box-footer | footer }}


==Pemakaian==
== Pemakaian ==
'''<nowiki>{{Random portal component|max= |header= |footer= |subpage= }}</nowiki>'''
'''<nowiki>{{Random portal component|max= |header= |footer= |subpage= }}</nowiki>'''


==Prasyarat==
== Prasyarat ==
* Buat lah subhalaman dahulu. Bila portal anda adalah "Portal:Foo", maka subhalamannya misalnya "Portal:Foo/Gambar pilihan".
* Buat lah subhalaman dahulu. Bila portal anda adalah "Portal:Foo", maka subhalamannya misalnya "Portal:Foo/Gambar pilihan".
* Pada subhalaman tersebut, buatlah subhalaman lagi, yang harus diberi nama 1, 2, 3, ... tanpa 0. Dan '''tidak''' memakai awalan 0. Misalnya, "Portal:Foo/Gambar pilihan/1".
* Pada subhalaman tersebut, buatlah subhalaman lagi, yang harus diberi nama 1, 2, 3, ... tanpa 0. Dan '''tidak''' memakai awalan 0. Misalnya, "Portal:Foo/Gambar pilihan/1".


==Parameter==
== Parameter ==
Pemakaian templat ini sangat mudah:
Pemakaian templat ini sangat mudah:
* '''header''':(opsional) Judul kotak, bila tak ditulis, akan menampilkan judul subhalaman.
* '''header''':(opsional) Judul kotak, bila tak ditulis, akan menampilkan judul subhalaman.
Baris 37: Baris 37:
<!-- ADD INTERWIKIS BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[en:Template:Random portal component]]
[[en:Template:Random portal component]]
[[zh:Template:Random_portal_component]]
[[zh:Template:Random portal component]]
</includeonly>
</includeonly>

Revisi per 26 Desember 2019 06.45

This template generates a box for a portal home page. The content is drawn randomly from a pre-defined list. Using this template makes editing portal page easy!

Contoh

Untuk contoh langsung, lihat halaman yang memakai templat ini di what links here.

Berikut adalah contoh sederhana output yang dihasilkan oleh templat ini.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

footer

Pemakaian

{{Random portal component|max= |header= |footer= |subpage= }}

Prasyarat

  • Buat lah subhalaman dahulu. Bila portal anda adalah "Portal:Foo", maka subhalamannya misalnya "Portal:Foo/Gambar pilihan".
  • Pada subhalaman tersebut, buatlah subhalaman lagi, yang harus diberi nama 1, 2, 3, ... tanpa 0. Dan tidak memakai awalan 0. Misalnya, "Portal:Foo/Gambar pilihan/1".

Parameter

Pemakaian templat ini sangat mudah:

  • header:(opsional) Judul kotak, bila tak ditulis, akan menampilkan judul subhalaman.
  • footer: (optional) Text footer untuk kotak, misalnya "Gambar pilihan lainnya..."
  • subpage: Subhalaman yang dipakai, misalnya "Gambar pilihan"
  • max: Jumlah maksimum sub-subhalaman. Harus berupa integer positif.
  • seed: (opsional) Seed default adalah 17 dan bisa di-set ke nilai integer lainya (gunanya untuk menghasilkan nilai berbeda pada halaman yang sama). Bilangan prima, misalnya 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, and 113.