Template:Portal Parent/doc

From Wikisource
Jump to navigation Jump to search

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

[edit]

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

Usage

[edit]
{{Portal Parent
 | class     =
 | subclass1 = 
 | subclass2 = 
 | number    = 
 | midclass  =
}}

Parameters

[edit]
  • 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

[edit]

Example 1

[edit]

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

[edit]

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

[edit]

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.

[edit]

Sister template:

Child template: