Templat:Header: Perbedaan revisi

7 bita ditambahkan ,  10 tahun yang lalu
←Membatalkan revisi 16402 oleh Meursault2004 (Bicara) hmm, jadi kacau ...
(uji coba)
(←Membatalkan revisi 16402 oleh Meursault2004 (Bicara) hmm, jadi kacau ...)
<!-- make sure no parameters are removed --><!-- <includeonly>{{#switch:undef!
<includeonly><!-- make sure no parameters are removed -->{{#ifexpr:(0{{#ifeq:{{{title|blank!}}}|blank!|1}}{{#ifeq:{{{author|blank!}}}|blank!|1}}{{#ifeq:{{{section|blank!}}}|blank!|1}}{{#ifeq:{{{previous|blank!}}}|blank!|1}}{{#ifeq:{{{next|blank!}}}|blank!|1}}{{#ifeq:{{{notes|blank!}}}|blank!|1}})>0|<div style="text-align:center; border:1px solid #CCC; font-size:0.9em;">'''template error: please do not remove empty parameters (see the [[WS:STYLE#Templates|style guide]] and [[template talk:header#documentation|template documentation]]).'''</div> [[Category:Headers missing parameters]]}}</includeonly>
|{{{title|undef!}}}
{| class="headertemplate" style="width:100%; margin-bottom:5px; border: 1px solid #006400; background:#DFD; text-align:center;"
|{{{author|undef!}}}
|{{{section|undef!}}}
|{{{previous|undef!}}}
|{{{next|undef!}}}
<includeonly><!-- make sure no parameters are removed -->{{#ifexpr:(0{{#ifeq:{{{title |blank!}}}|blank!|1}}{{#ifeq:{{{author|blank!}}}|blank!|1}}{{#ifeq:{{{section|blank!}}}|blank!|1}}{{#ifeq:{{{previous|blank!}}}|blank!|1}}{{#ifeq:{{{next|blank!}}}|blank!|1}}{{#ifeq:{{{notes|blankundef!}}}|blank!|1}})>0| = <div style="text-align:center; border:1px solid #CCC; font-size:0.9em;">'''template error: please do not remove empty parameters (see the [[WS:STYLE#Templates|style guide]] and [[template talk:header#documentation|template documentation]]).'''</div> [[Category:Headers missing parameters]]}}</includeonly> -->
{| class="headertemplate" style="width:100%; margin-bottom:5px; border: 1px solid #006400ADA; background:#DFDE4F2E4; text-align:center; font-size:0.9em;" id="headertemplate"
|-
|class="header_backlink" | {{#if:{{{previous|}}}{{{next|}}}|<span id="headerprevious" style="line-height:normal">{{#if:{{{previous|}}}|←{{{previous}}}}}</span>}}
|class="header_title" | '''{{{title|Tanpa JudulUntitled}}}''' {{#if:{{{override_author|}}}|<br /><i>{{{override_author}}}</i>|{{#if:{{{author}}}|{{#if:{{{section|}}}| |<br/>}}<i>oleh {{#ifeq:{{#expr:{{{author}}}}}|<strong class="error">Expression error: Unrecognised punctuation character "["</strong>|{{{author}}}</i>|[[PengarangAuthor:{{{author}}}|{{{author}}}]]}}</i>}}}}{{#if:{{{translator|}}}|{{#switch:{{lc:{{{translator|}}}}}
| ? =&nbsp;([[:Category:Deletion requests/Unknown translators|unknown translator]])
| wikisource =<i>, diterjemahkan oleh [[:en:Wikisource:Translations|Wikisource]]</i>{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|[[Category:Terjemahan Wikisource translations]]}}
|<i>, diterjemahkan oleh {{#ifeq:{{#expr:{{{translator}}}}}|<strong class="error">Expression error: Unrecognised punctuation character "["</strong>|{{{translator}}}</i>|[[Author:{{{translator}}}|{{{translator}}}]]</i>}}
}}}}{{#ifeq:{{{override_author|}}}|||[[Category:Pages with override author]]}}{{#if:{{{section|}}}|<br />{{{section|}}}}}
|class="header_forelink" | {{#if:{{{previous|}}}{{{next|}}}|<span id="headernext" style="line-height:normal">{{#if:{{{next|}}}|{{{next}}}→}}</span>}}
|}
{| class="header_notes"
|-
| {{{notes}}}
|}<includeonly><!--
|}<includeonly>{{#ifeq:{{#expr:{{{previous|}}}}}|<span class="error">Expression error: Unrecognised punctuation character "�"</span>|[[Category:Header2 pages with arrow in previous param]]}}{{#ifeq:{{{translator|}}}|?|
unknown translator -->{{#switch:{{{translator}}}
{{No translator info}}}}{{#if:{{{override_author|}}}|[[Category:Pathosbot]]}}{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}||{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}|[[Category:Subpages]]}}}}</includeonly><noinclude>
|?
{{documentation|Template:Header/doc}}
|unknown = {{No translator info}}
}}<!--
subpages -->{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}||{{#switch:1
|{{#ifexist:{{#rel2abs:../}}|1}}
|{{#ifexist:{{#rel2abs:../../}}|1}}
|{{#ifexist:{{#rel2abs:../../../}}|1}} = [[Category:Subhalaman]]
}}}}<!--
 
track pages using the author override-->{{#if:{{{override_author|}}}|[[Category:Pages with override author]]}}<!--
 
track pages using the dirty link-detection hacks -->{{#switch:<strong class="error">Expression error: Unrecognised punctuation character "["</strong>
|{{#expr:{{{author}}}}}
|{{#expr:{{{translator}}}}} = [[Category:pages using the author field hack]]
}}</includeonly><noinclude>
{{dokumentasi}}
</noinclude>