Difference between revisions of "Template:Paragraph Sub Location"

From Nottinghack Wiki
Jump to navigation Jump to search
(give message if subpage category missing)
(actually pages can be in category that doesn't exist)
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
[[:Category:Sub-Location of {{PAGENAME}}|Sub-Locations of {{PAGENAME}}]]
 
[[:Category:Sub-Location of {{PAGENAME}}|Sub-Locations of {{PAGENAME}}]]
 
|
 
|
<span style="color:darkred">No pages in [[:Category:Sub-Location of {{PAGENAME}}]] and category doesn't exist; create category or remove [[Template:Paragraph Sub Location]].</span>
+
<span style="color:darkred">The category '[[:Category:Sub-Location of {{PAGENAME}}]]' does not exist; create category or remove [[Template:Paragraph Sub Location]].</span>
 
}}<!--  
 
}}<!--  
 
</includeonly> --><noinclude>
 
</includeonly> --><noinclude>
  
 
==Sub-location Block==
 
==Sub-location Block==
This template detects when an area has Sub-Locations associated with it & produces a section with a link to the locations.
+
This template detects when an location has pages in the particular category Sub-Location-<Area> and produces a section with a link to the locations, else display an error message.
  
 
==Usage==
 
==Usage==
Place the following text on the location page.  
+
Place the following text on the location page. Note the sub heading  ==Sub-Locations== is added as part of the template.
  
 
<pre>{{Paragraph Sub Location}}
 
<pre>{{Paragraph Sub Location}}

Latest revision as of 00:01, 14 December 2019

The category 'Category:Sub-Location of Paragraph Sub Location' does not exist; create category or remove Template:Paragraph Sub Location.

Sub-location Block

This template detects when an location has pages in the particular category Sub-Location-<Area> and produces a section with a link to the locations, else display an error message.

Usage

Place the following text on the location page. Note the sub heading ==Sub-Locations== is added as part of the template.

{{Paragraph Sub Location}}

See also