Template:Related/doc View history

(Created page with "{{doc subpage}} <!-- ADD DOCUMENTATION BELOW THIS LINE --> This template banner should be added to all pages of nuggets with multiple versions. For example if there are summar...")
 
m (remove draftlink)
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
This template banner should be added to all pages of nuggets with multiple versions. For example if there are summary, simple, and detailed versions of the same nugget.
This template banner should be added to all pages of nuggets with multiple versions. For example if there are summary, simple, and detailed versions of the same nugget.


Use the syntax {{tl|{{DraftLink|transclude=no|Related}}}}
Make sure you place the banner inside '''{{tag|noinclude}}''' tags on the nugget subpages, so it is not displayed on the main parent page where the nuggets are aggregated.
 
Use the syntax {{tag|noinclude|content={{tl|Related}}}}


This will produce the banner including a list off subpages of the current page.
This will produce the banner including a list off subpages of the current page.
{{ {{DraftLink|transclude=no|Related}}}}
{{Related}}


=== Parameters ===
=== Parameters ===


{{para|BasePage}} You can specify the page from which all subpages should be listed. For example we can use <code><nowiki>{{</nowiki>[[{{DraftLink|transclude=no|Related}}]]|BasePage=Navigation instructions for unnamed segments<nowiki>}}</nowiki></code> ''This will not work if you use the {{para|LINK 1}} method below.''
{{para|BasePage}} You can specify the page from which all subpages should be listed. For example we can use {{tlx|Related|BasePage{{=}}Navigation instructions for unnamed segments}} <br />
''This will not work if you use the {{para||LINK 1}} method below.''
The above syntax will produce:
The above syntax will produce:
{{{{DraftLink|transclude=no|Related}}|BasePage=Navigation instructions for unnamed segments}}
{{Related|BasePage=Navigation instructions for unnamed segments}}




{{Para|LINK 1...10}} The other option for using this banner is to specify the direct links to any related versions of the nugget. You can add up to 10 links this way as unnamed parameters.
{{Para||LINK 1...10}} The other option for using this banner is to specify the direct links to any related versions of the nugget. You can add up to 10 links this way as unnamed parameters.
Example syntax:
Example syntax:


<code><nowiki>{{</nowiki>[[{{DraftLink|transclude=no|Related}}]]|Places#Area Place size|Places/Gas Station|OTHER RELATED PAGE<nowiki>}}</nowiki></code>
{{Tlx|Related|Places#Area Place size|Places/Gas Station|OTHER RELATED PAGE}}


The above will produce:
The above will produce:
{{{{DraftLink|transclude=no|Related}}|Places#Area Place size|Places/Gas Station|OTHER RELATED PAGE}}
{{Related|Places#Area Place size|Places/Gas Station|OTHER RELATED PAGE}}
<includeonly>
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->

Latest revision as of 19:12, 24 September 2015

This is a documentation subpage for Template:Related.
It contains usage information, categories and other content that is not part of the original template page.

This template banner should be added to all pages of nuggets with multiple versions. For example if there are summary, simple, and detailed versions of the same nugget.

Make sure you place the banner inside <noinclude>...</noinclude> tags on the nugget subpages, so it is not displayed on the main parent page where the nuggets are aggregated.

Use the syntax <noinclude>{{Related}}</noinclude>

This will produce the banner including a list off subpages of the current page.

This nugget is one of several versions on this topic. Each version presents the same content with a different level of detail. If you are editing the content of this nugget, please also check if the related versions require the same edit.

Parameters

|BasePage= You can specify the page from which all subpages should be listed. For example we can use {{Related|BasePage=Navigation instructions for unnamed segments}}
This will not work if you use the |LINK 1 method below. The above syntax will produce:

This nugget is one of several versions on this topic. Each version presents the same content with a different level of detail. If you are editing the content of this nugget, please also check if the related versions require the same edit.


|LINK 1...10 The other option for using this banner is to specify the direct links to any related versions of the nugget. You can add up to 10 links this way as unnamed parameters. Example syntax:

{{Related|Places#Area Place size|Places/Gas Station|OTHER RELATED PAGE}}

The above will produce:

This nugget is one of several versions on this topic. Each version presents the same content with a different level of detail. If you are editing the content of this nugget, please also check if the related versions require the same edit.