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 "t/a0" -->
| none = t/a0
| #default = [[Portal:{{Klasifikasi Desimal Dewey<!-- If a class if defined, find the right portal -->
| kelas = {{{kelas}}}
}}|{{{kelas|}}}]]
}}
| {{#switch: {{NAMESPACE}} | Portal = ? | #default = t/a0}}<!-- 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/a0" appearing.
 
-->