Templat:Portal Parent
This template is a navigation aid for the Portal: namespace. It creates stacked links to the appropriate portals, given reference letters. This navigation system uses an adapted version of the Library of Congress Classification system.
Placement
suntingPlace inside the parent field of {{Portal header}}.
Usage
sunting{{Portal Parent | class = | subclass1 = | subclass2 = | number = | midclass = }}
Parameters
sunting- {{{class}}}: The main subclass.
- {{{subclass1}}}: The main subclass.
- {{{subclass2}}}: The secondary subclass.
- {{{number}}}: This parameter is not implemented at this time. It exists as a provision for possible future use of the number segment of the Library of Congress Classification system.
- {{{midclass}}}: If yes or y, this display the link to the main subclass as well the class and secondary subclass.
If no parameters are passed to the template it creates a link to Portal:Index
If midclass is not set to Yes (or y) the template will just display the class and the subclass specified by subclass2. In this case, the template still needs to the subclass1 parameter to be defined, in order to select the correct subclass.
Examples
suntingExample 1
suntingTo label a portal as part of Subclass UEA - Armor:
{{Portal Parent | class = u | subclass1 = e | subclass2 = a | number = | midclass = }}
Class U - Military Science
Subclass EA - Cavalry
Example 2
suntingAlternatively, the midclass parameter can be used to display all three links:
{{Portal Parent | class = u | subclass1 = e | subclass2 = a | number = | midclass = y }}
Class U - Military Science
Subclass E - Cavalry
Subclass A - Cavalry
Example 3
suntingTo label a portal as part of Subclass UE - Cavalry:
{{Portal Parent | class = u | subclass1 = e | subclass2 = | number = | midclass = }}
Class U - Military Science
Subclass E - Cavalry
Note: In this case, the parameter midclass would have no effect as subclass2 is not being used.
Related templates
suntingSister template:
Child template:
Grandchild templates:
- Template:LCC Class A
- Template:LCC Class B
- Template:LCC Class C
- Template:LCC Class D
- Template:LCC Class G
- Template:LCC Class H
- Template:LCC Class J
- Template:LCC Class K
- Template:LCC Class L
- Template:LCC Class M
- Template:LCC Class N
- Template:LCC Class P
- Template:LCC Class Q
- Template:LCC Class R
- Template:LCC Class S
- Template:LCC Class T
- Template:LCC Class U
- Template:LCC Class V
- Template:LCC Class X
- Template:LCC Class Z
Dokumentasi di atas ditransklusikan dari Templat:Portal Parent/dok. (sunting | versi terdahulu) Penyunting dapat melakukan uji coba pada halaman bak pasir (buat | cermin) dan kasus uji (buat) templat ini. Kategori dan pranala antarbahasa harap ditambahkan pada subhalaman /dok. Subhalaman templat ini. |