Templat:Portal Class: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
-iNu- (bicara | kontrib)
Tidak ada ringkasan suntingan
Mnam23 (bicara | kontrib)
Mencoba menyelesaikan masalah sendiri sekali lagi
Baris 1:
<div style="clear: right; border: solid #aaa 1px; margin: 0 1em 1em 1em; font-size: 0.9em; background: #f9f9f9; min-width: 50px; padding: 4px; text-align: center; float: left;">
<div style="font-size: 0.9em;">{{#if: {{{seksi|}}} | {{smallcaps|Seksi}} | {{#if: {{{divisi|}}} | {{smallcaps|Divisi}} | {{#if: {{{kelas|}}} | {{smallcaps|Kelas}} | {{smallcaps|Kelas}} }}}}}}</div><!-- Title text of the template -->
<div>'''{{x-larger|{{#if: {{{kelas|}}}
| {{#switch: {{{kelas}}}<!-- If defined as "none" (rather than left blank) it will display "t/a" -->
Baris 9:
}}
| {{#switch: {{NAMESPACE}} | Portal = ? | #default = t/a}}<!-- If no class is defined
In Portal: namespace this will result in a question mark and automatically categorise the portal as unclassified. Elsewhere, this will just result in the term "t/a" appearing.
 
In Portal: namespace this will result in a question mark and automatically categorise the portal as unclassified
Elsewhere, this will just result in the term "t/a" appearing.
 
-->
}}
}}{{#if: {{{divisi|}}}<!-- The second digit of the classification if provided -->
{{#if: {{{kelas|}}} | [[Portal:{{Klasifikasi Desimal Dewey
| kelas = {{{kelas}}}
}}]] | divisi = {{{divisi}}}
}}}}'''</div>
}}|{{{divisi|}}}]]
| {{#if: {{{kelas|}}} | [[Portal:{{Klasifikasi Desimal Dewey
| kelas = {{{kelas}}}
| divisi = 0
}}|0]] | }}
}}{{#if: {{{seksi|}}}<!-- The third and final digit of the classification if provided -->
| [[Portal:{{Klasifikasi Desimal Dewey
| kelas = {{{kelas}}}
| divisi = {{{divisi}}}
| seksi = {{{seksi}}}
}}|{{{seksi|}}}]]
| {{#if: {{{divisi|}}} | [[Portal:{{Klasifikasi Desimal Dewey
| kelas = {{{kelas}}}
| divisi = {{{divisi}}}
| seksi = 0
}}|0]] | }}
}}}}'''</div>
<div style="font-size: 0.9em;">[[Portal:Portal|Utama]]/[[Portal:Indeks|Indeks]]</div><!-- Base text to top and bottom portals of the entire Portal: namspace -->
<!--