Template:Fooers from Northern Ireland/doc

Displays standardized category navigation for people by occupations from Northern Ireland, required by Naming conventions (categories).

Usage
See Category:Writers from Northern Ireland
 * Example 1:

See Category:Novelists from Northern Ireland
 * Example 2:

See Category:DJs from Northern Ireland (The  is added because "DJs" needs to retain it capitalisation in all contexts)
 * Example 3:

In most cases, should not be substituted.

Parameters
By default, this template adds links to two portals: Portal:Northern Ireland and Portal:Biography.

More portal links may be added using any or all of these parameters: portal, portal2, and  portal3

e.g.

Technical details
This is a variant of the widely used Template:Fooian fooers. It is for use with the sub-categories of Category:People from Northern Ireland by occupation, which use the format "[Profession] from Northern Ireland", rather than the standard "[Nationality] [profession]".

Adds a pair of standard parent categories:
 * Northern Ireland
 * Northern Ireland

(This is because all sub-cats of Category:People from Northern Ireland are parented in the equivalent sub-categories Irish people and British. This reflects the commitment by the governments of the UK, Ireland and Northern Ireland in the Good Friday Agreement to the recognition of both national identities.)

If the "Supercategory" parameter is used, the following parent category will be generated added: Otherwise, this parent category will be generated:
 * Profession
 * Profession

In all cases. the template adds:
 * Nationality

Self-checking
The template tests for the existence of  Category:Profession by nationality  or  Category:Supercategory by nationality , and alters its output as follows:


 * 1) If the "Supercategory" parameter is supplied, but Category:Supercategory by nationality  does not exist, then  Category:Supercategory  will be used instead.
 * 2) When the "Supercategory" parameter is not supplied, the template tests for the existence of Category:Profession by nationality  . If that does not exist, then  Category:Profession  will be used instead.