Templat:Portal Class: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
-iNu- (bicara | kontrib)
Tidak ada ringkasan suntingan
-iNu- (bicara | kontrib)
Tidak ada ringkasan suntingan
Baris 2:
<div style="font-size: 0.9em;">{{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 "0t/a" -->
| none = 0t/a
| #default = [[Portal:{{Klasifikasi Desimal Dewey<!-- If a class if defined, find the right portal -->
| kelas = {{{kelas}}}
}}|{{{kelas|}}}]]
}}
| {{#switch: {{NAMESPACE}} | Portal = ? | #default = 0t/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 "0t/a" appearing.
 
-->
Baris 19:
| divisi = {{{divisi}}}
}}|{{{divisi|}}}]]
| {{#if: {{{kelas|}}} | 0 | }}
|0
}}{{#if: {{{seksi|}}}<!-- The third and final digit of the classification if provided -->
| [[Portal:{{Klasifikasi Desimal Dewey
Baris 26:
| seksi = {{{seksi}}}
}}|{{{seksi|}}}]]
| {{#if: {{{divisi|}}} | 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 -->