Templat:Header: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
Chipmunkes (bicara | kontrib) Tidak ada ringkasan suntingan |
perbarui |
||
Baris 1:
<includeonly><!--
Pastikan tidak ada parameter yang dihapus-->{{#switch:undef!
|{{{title|undef!}}}
|{{{author|undef!}}}
Baris 5 ⟶ 7:
|{{{previous|undef!}}}
|{{{next|undef!}}}
|{{{notes|undef!}}} = <div style="text-align:center; border:1px solid #CCC; font-size:0.9em;">'''Kesalahan templat: Jangan menghapus parameter yang kosong (lihat [[WS:STYLE#Templat|pedoman gaya]] dan [[Templat:Header#dokumentasi|dokumentasi templat]]).'''</div> [[Kategori:Header dengan parameter yang hilang]]}}</includeonly><!--
Mulai kop disini --><div id="headertemplate">
{| class="headertemplate"
|-<!--
Pranala halaman sebelumnya-->
|class="gen_header_backlink" | {{#if:{{{previous|}}}|<span id="headerprevious">←{{{previous}}}</span>}}<!--
Judul-->
|class="gen_header_title" | '''<span id="header_title_text">{{{title|Untitled}}}</span>''' {{#if:{{{year|}}}| ({{{year}}}) }}<!--
Kolom pengarang
-->{{#if:{{{override_author|}}}|<!--
Override author
--><br /><i><span id="header_author_text">{{{override_author}}}</span></i>|<!--
Normal author
-->{{#if:{{{author}}}|<!--
Tambahkan sebuah line break apabila halaman *bukan* merupakan halaman bagian
-->{{#if:{{{section|}}}| |<br/>}}<!--
--><i>oleh <!--
Catch dirty links
-->{{#ifeq:{{#expr:{{{author}}}}}|<strong class="error">Expression error: Unrecognised punctuation character "["</strong>|<!--
Dirty link
-->{{{author}}}</i>|<!--
Catch unknown authors
-->{{#ifeq:{{lc:{{{override_author|{{{author|}}}}}}}}|unknown|<span id="header_author_text">Unknown</span>|<!--
Link clean and known authors to the author namespace
-->[[Pengarang:{{{author}}}|<span id="header_author_text">{{{author}}}</span>]]}}}}</i>}}}}<!--
Translator field - only if needed
-->{{#if:{{{override_translator|{{{translator|}}}}}}|<!--
Catch special cases for translators
-->{{#switch:{{lc:{{{override_translator|{{{translator|}}}}}}}}<!--
-->| ? = ([[:Kategori:Usulan penghapusan/Penerjemah tidak diketahui|penerjemah tidak diketahui]])<!--
-->| unknown =, ''penerjemah tidak diketahui''<!--
-->| not mentioned =, ''penerjemah tidak disebutkan''<!--
-->| wikisource =<i>, diterjemahkan oleh [[Wikisource:Terjemahan|<span id="header_translator_text">Wikisource</span>]]</i><!--
If it is the base page, add to the "Wikisource translation" category
-->{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|[[Kategori:Terjemahan Wikisource]]}}<!--
Switch default - the given translator
-->|<i>, diterjemahkan oleh <!--
Catch dirty links
-->{{{override_translator|<!--
-->{{#ifeq:{{#expr:{{{translator}}}}}|<!--
--><strong class="error">Expression error: Unrecognised punctuation character "["</strong>|{{{translator}}}</i>|<!--
Dirty link
-->[[Pengarang:{{{translator}}}|<!--
Clean link
--><span id="header_translator_text">{{{translator}}}</span>]]</i>}}}}}
}}}}<!--
Section field
-->{{#if:{{{section|}}}|<br /><span id="header_section_text">{{{section|}}}</span>}}<!--
Forelink -->
|class="gen_header_forelink" | {{#if:{{{next|}}}|<span id="headernext">{{{next}}}→</span>}}
|}<!--
Notes section-->
{| class="header_notes"
|-
|<!--
Sister project links (only if we need them)
-->{{#if:{{{wikipedia|}}}{{{commons|}}}{{{commonscat|}}}{{{wikiquote|}}}{{{wikinews|}}}{{{wiktionary|}}}{{{wikibooks|}}}{{{wikiversity|}}}{{{wikispecies|}}}{{{meta|}}}{{{portal|}}}{{{related_author|}}}{{{disambiguation|}}}|<!--
-->{{Plain sister
| wikipedia = {{{wikipedia|}}}
| commons = {{{commons|}}}
| commonscat = {{{commonscat|}}}
| wikiquote = {{{wikiquote|}}}
| wikinews = {{{wikinews|}}}
| wiktionary = {{{wiktionary|}}}
| wikibooks = {{{wikibooks|}}}
| wikiversity = {{{wikiversity|}}}
| wikispecies = {{{wikispecies|}}}
| meta = {{{meta|}}}
| portal = {{{portal|}}}
| related_author = {{{related_author|}}}
| disambiguation = {{{disambiguation|}}}
}}<!--
endif we need plain sister
-->}}<!--
Shortcut link
-->{{#if:{{{shortcut|}}}|{{shortcut|{{{shortcut}}}}}}}<!--
Notes from parameter
-->{{{notes}}}
|}<includeonly><!--
Unknown translator
-->{{#switch:{{{translator}}}
|?
|unknown = {{No translator info}}
}}<!--
Subpages -->{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}||{{#switch:1
|{{#ifexist:{{#rel2abs:../}}|1}}
|{{#ifexist:{{#rel2abs:../../}}|1}}
Baris 32 ⟶ 127:
}}}}<!--
-->{{#switch:<strong class="error">Expression error: Unrecognised punctuation character "["</strong> |{{#expr:{{{author}}}}}
|{{#expr:{{{translator}}}}} = [[Category:pages using the author field hack]]
}}<!--
Track pages with no author given
-->{{#ifeq:{{lc:{{{override_author|{{{author|}}}}}}}}|unknown|[[Kategori:Naskah anonim]]}}<!--
Track pages using shortcuts
-->{{#if:{{{shortcut|}}}|[[Category:Mainspace pages with shortcuts]]}}<!--
Track pages with no year (only if not a subpage or disambiguation page)
-->{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|{{#ifeq:{{{disambiguation|}}}|yes||{{#if:{{{year|}}}||[[Category:Undated works]]}}}}}}<!--
Categorise page by year
-->{{#if:{{{year|}}}|[[Kategori:Karya {{{year}}}]]}}<!--
END OF TEMPLATE
--></includeonly><noinclude>
{{dokumentasi}}
[[Kategori:Tidak layak cetak]]
</noinclude>
|