Templat:Random portal component/doc: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
kTidak ada ringkasan suntingan
kTidak ada ringkasan suntingan
 
(5 revisi perantara oleh 4 pengguna tidak ditampilkan)
Baris 1:
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
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!
 
<includeonly>{{template doc page transcluded}}{{lua|Module:Random portal component}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
==Contoh==
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
Untuk contoh langsung, lihat halaman yang memakai templat ini di [[Special:Whatlinkshere/Templat:{{BASEPAGENAME}}|what links here]].
== Contoh ==
Untuk contoh langsung, lihat halaman yang memakai templat ini di [[SpecialIstimewa:Whatlinkshere/Templat:{{BASEPAGENAME}}|what links here]].
 
Berikut adalah contoh sederhana output yang dihasilkan oleh templat ini.
Baris 13 ⟶ 12:
|titlebackground=#A9A9A9 <!-- This is the color of the Box Section Title Bar -->
|background=#FFFFFF <!-- This is the color of the Box Section background -->
|foreground=black}} <!-- This is the color of the Box Section text -->
{{Lorem ipsum}}
{{Templat:Portal-Box-footer | footer }}
 
== Pemakaian ==
'''<nowiki>{{Random portal component|max= |header= |footer= |subpage= }}</nowiki>'''
 
== 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.
Baris 32 ⟶ 31:
* '''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.
 
{{Navbox templat portal}}
<includeonly>
[[Kategori:Templat ProyekWikiPortal|{{PAGENAME}}]]
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[ar:قالب:مكون بوابة عشوائي]]
[[en:Template:Random portal component]]
[[zh:Template:Random_portal_component]]
</includeonly>