A Wiki in the Desert
Log in

Difference between revisions of "Template:RequiredBy"

From A Wiki in the Desert
(add optional parameter to override PAGENAME in transclusion)
 
Line 1: Line 1:
 
<includeonly>== Required By ==
 
<includeonly>== Required By ==
{{#ask: [[requires::{{PAGENAME}}]] [[:+]]}}</includeonly><noinclude>
+
{{#ask: [[requires::{{{1|{{PAGENAME}}}}}]] [[:+]]}}</includeonly><noinclude>
 
== Usage ==
 
== Usage ==
 
Adds an automatically generated 'Required By' section to a resource/skill/technology page.
 
Adds an automatically generated 'Required By' section to a resource/skill/technology page.
Line 8: Line 8:
 
<code>
 
<code>
 
<nowiki>{{RequiredBy}}</nowiki>
 
<nowiki>{{RequiredBy}}</nowiki>
 +
 +
<nowiki>{{RequiredBy|Page Name}}</nowiki>
 
</code>
 
</code>
 
[[Category: Template]]  {{DEFAULTSORT:{{SUBPAGENAME}}}}
 
[[Category: Template]]  {{DEFAULTSORT:{{SUBPAGENAME}}}}
 
</noinclude>
 
</noinclude>

Latest revision as of 16:56, 23 September 2019

Usage

Adds an automatically generated 'Required By' section to a resource/skill/technology page.

Usage:

{{RequiredBy}}

{{RequiredBy|Page Name}}