Templat:Portal Class: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan |
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 "
| none =
| #default = [[Portal:{{Klasifikasi Desimal Dewey<!-- If a class if defined, find the right portal -->
| kelas = {{{kelas}}}
}}|{{{kelas|}}}]]
}}
| {{#switch: {{NAMESPACE}} | Portal = ? | #default =
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 "
-->
Baris 19:
| divisi = {{{divisi}}}
}}|{{{divisi|}}}]]
| {{#if: {{{kelas|}}} | 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 | }}
}}}}'''</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 -->
|