Ini adalah subhalaman dokumentasi untuk Templat:Portal Parent.
Halaman ini mengandung informasi penggunaan, kategori, pranala antarbahasa, dan lain-lain yang bukan merupakan bagian dari halaman templat asli.

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

sunting

Place inside the parent field of {{Portal header}}.

{{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

sunting

Example 1

sunting

To 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

sunting

Alternatively, 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

sunting

To 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.

sunting

Sister template:

Child template:

Grandchild templates: