Bantuan:Pedoman pemula tentang transklusi: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Bozky (bicara | kontrib)
kTidak ada ringkasan suntingan
Tidak ada ringkasan suntingan
Baris 7:
}}
{{terjemah}}
<!-- BAGIAN DI BAWAH INI SEDANG DALAM PROSES DITERJEMAHKAN
 
==WhatApa isitu transclusiontransklusi?==
 
"Transklusi" adalah cara kita mendapatkan teks dari [[Bantuan:Ruang nama|ruang nama]] Halaman ke ruang nama utama. Ruang nama Halaman adalah tempat teks hendak diuji-baca. Ruang nama utama adalah tempat teks akan dibaca.
"Transclusion" is the way we get text from the Page [[Help:Namespace|namespace]] to the main namespace. The Page namespace is where text is meant to be proofread. The main namespace is where text is meant to be read.
 
TransclusionTransklusi mengkopi bagian teks clusion copies the text across whenever anyone wants to read the page in the main namespace. It is still linked to the Page namespace. So any changes made to the text in the Page namespace will be seen in main namespace as well.
 
==Kapan mentransklusikan==
==When to transclude==
 
Waktu yang tepat untuk mentransklusi teks ke ruang nama utama adalah ketika seluruh halaman telah divalidasi ([[Bantuan:Status halaman|status halaman]] hijau) dan semua halaman telah diuji-baca.
The preferred time to transclude text to the main namespace is after all of the pages have been validated (green [[Help:Page status|page status]]) and the proofreading is all done.
 
Sometimes it can help with the proofreading if you can see what the final version will look like in the main namespace. If so, you can transclude pages to the main namespace before the proofreading is all done. As the main namespace is the one we want people to read, we would like it to look as neat and tidy as possible. So please try to only transclude text that is in as good a condition as possible.
 
==Transklusi sederhana==
==Simple transclusion==
 
Untuk memulai transklusi:
To start translusion:
# Mulailah sebuah halaman baru tempat Anda ingin melihat versi akhir dari teks untuk dimunculkan.
# Start a new page at which you want the final version of the text to appear.
# EditSunting thishalaman pageini.
# Tambahkan kode transklusi (ditunjukkan di bawah ini).
# Add just the transclusion code (as shown below).
# SaveSimpan the pagehalaman.
 
Kode yang digunakan tergantung dari berapa jumlah halaman yang mau Anda transklusikan ke satu halaman.
The code you need to use depends on how many pages you want to transclude to one page.
 
{| class="wikitable" {{table style|mc}}
|+ Kode transklusi
|+ Transclusion code
! NumberJumlah of pageshalaman || CodeKode toyang usedigunakan
|-
| OneSatu || <nowiki><pages</nowiki> index="{{red|filename}}" include={{red|X}} header=1 <nowiki>/></nowiki>
|-
| TwoDua oratau morelebih || <nowiki><pages</nowiki> index="{{red|filename}}" from={{red|X}} to={{red|X}} header=1 <nowiki>/></nowiki>
|}
 
<!-- BAGIAN DI BAWAH INI SEDANG DALAM PROSES DITERJEMAHKAN
The red text needs to be changed to the details for your work and the pages you want to transclude:
* The filename is the name used for the Index page and the page scan file.
Baris 47:
: <code><nowiki><pages</nowiki> index="My example book.djvu" from=20 to=35 header=1 <nowiki>/></nowiki></code>.
 
==Header manual==
 
==Manual header==
 
The simple transclusion uses a "magic header" that takes information from the Index page to create the header seen at the top of the page. If there is a problem with this header or you want more control, you may need to add a manual header instead.
Baris 54 ⟶ 53:
The add a manual header:
# Start a new page at which you want the final version of the text to appear.
# EditSunting thishalaman pageini.
# AddTambahkan thekode header code (asditunjukkan di shownbawah belowini).
# Isilah bagian-bagian header tersebut.
# Fill in any parts of the header that you want filled in.
# Tambahkan kode transklusi (ditunjukkan di bawah ini).
# Add the transclusion code (as shown below).
# SaveSimpan.
 
The manual header code that needs to be added above the transclusion code is:
Baris 72 ⟶ 71:
| notes =
}}</pre>
TheJudul titledan andpengarang authorharusnya parts need to be filled indiisi. SeeLihat {{tl|header}} foruntuk informasi morelebih informationlanjut.
 
The transclusion code is just the same as with the simple transclusion except the "<code>header=1</code>" part is removed. (This is the part of the code that creates the "magic header".) To make this easy, these codes are shown in this table:
-->
 
{| class="wikitable" {{table style|mc}}
|+ TransclusionKode codetransklusi (with notanpa header)
! NumberJumlah of pageshalaman || CodeKode toyang usedigunakan
|-
| OneSatu || <nowiki><pages</nowiki> index="{{red|filename}}" include={{red|X}} <nowiki>/></nowiki>
|-
| TwoDua oratau morelebih || <nowiki><pages</nowiki> index="{{red|filename}}" from={{red|X}} to={{red|X}} <nowiki>/></nowiki>
|}
 
==AdvancedFitur featureslanjutan==
Masih banyak hal lain yang dapat dilakukan dengan transklusi. Anda dapat mengecualikan atau melewati halaman. Anda juga dapat saja mentransklusi sebagian teks. Untuk lebih lanjutnya mengenai hal ini, lihat [[Bantuan:Transklusi]].
There are more things that can be done with transclusion. You can exclude or skip pages. You can also just transclude part of a page instead of the whole thing. For information on this and more, see [[Help:Transclusion]].
 
-->
 
[[en:Help:Beginner's guide to transclusion]]