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.

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

{{Portal Parent
 | class     =
 | subclass1 = 
 | subclass2 = 
 | number    = 
 | midclass  =
}}
  • 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.

To label a portal as part of Subclass UEA - Armor:

{{Portal Parent
 | class     = u
 | subclass1 = e
 | subclass2 = a
 | number    = 
 | midclass  =
}}

Class U - [[Portal:साचा:Library of Congress Classification|साचा:Library of Congress Classification]]
Subclass EA - [[Portal:साचा:Library of Congress Classification|साचा:Library of Congress Classification]]

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 - [[Portal:साचा:Library of Congress Classification|साचा:Library of Congress Classification]]
Subclass E - [[Portal:साचा:Library of Congress Classification|साचा:Library of Congress Classification]]
Subclass A - [[Portal:साचा:Library of Congress Classification|साचा:Library of Congress Classification]]

To label a portal as part of Subclass UE - Cavalry:

{{Portal Parent
 | class     = u
 | subclass1 = e
 | subclass2 = 
 | number    = 
 | midclass  =
}}

Class U - [[Portal:साचा:Library of Congress Classification|साचा:Library of Congress Classification]]
Subclass E - [[Portal:साचा:Library of Congress Classification|साचा:Library of Congress Classification]]

Note: In this case, the parameter midclass would have no effect as subclass2 is not being used.

संपादन

Sister template:

Child template:

Grandchild templates: