Template:Paragraph Sub Location: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
Created page with "<includeonly> {{#ifexist:Category:Sub-Location of {{PAGENAME}} | ==Sub-Locations== Contained within this area are sub locations. A full list of these can be found here: :Cat..."
 
actually pages can be in category that doesn't exist
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<!-- <includeonly> -->
{{#ifexist:Category:Sub-Location of {{PAGENAME}}
{{#ifexist:Category:Sub-Location of {{PAGENAME}}
| ==Sub-Locations==
| ==Sub-Locations==
Contained within this area are sub locations. A full list of these can be found here:
Contained within this area are sub locations. A full list of these can be found here:
[[:Category:Sub-Location of {{PAGENAME}}|Sub-Locations of {{PAGENAME}}]]
[[:Category:Sub-Location of {{PAGENAME}}|Sub-Locations of {{PAGENAME}}]]
| }}
|
</includeonly>
<span style="color:darkred">The category '[[:Category:Sub-Location of {{PAGENAME}}]]' does not exist; create category or remove [[Template:Paragraph Sub Location]].</span>
<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}}
</pre>
</pre>


{{also|Nottinghack Wiki:Boilerplate for locations}}
==See also==
* [[Nottinghack Wiki:Boilerplate for locations]]
* [[:Category:Sub-Location]]
 
[[Category:Templates auto paragraph]]
</noinclude>
</noinclude>

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