Difference between revisions of "Template:PrintRelatedTopics"
Jump to navigation
Jump to search
m (HakobBarseghyan moved page Template:Related Topics to Template:RelatedTopics: remove the space in the name) |
|||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | This template is used to | + | This template is used to print an array of related topics. |
− | Parameters: | + | '''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page. |
+ | |||
+ | '''Parameters:''' | ||
* <code><nowiki>|topics=</nowiki></code> - a comma separated list of the topics. | * <code><nowiki>|topics=</nowiki></code> - a comma separated list of the topics. | ||
* <code><nowiki>|intro=</nowiki></code> - the text that should precede the list, e.g. "Here are the major topics tackled by this author:". | * <code><nowiki>|intro=</nowiki></code> - the text that should precede the list, e.g. "Here are the major topics tackled by this author:". | ||
− | </noinclude> | + | </noinclude><includeonly><!-- |
− | <includeonly>{{#if:{{{topics|}}} | {{{intro|}}} | + | -->{{#if:{{{topics|}}} |<!-- |
− | {{#arraydefine:topicsArray|{{{topics|}}} }} | + | --><!-- add intro |
− | {{# | + | -->{{{intro|}}}<!-- |
− | <nowiki/><br/> | + | --><!-- add topics |
− | + | -->{{#arraydefine:topicsArray|{{{topics|}}} }}<!-- | |
− | }} | + | -->{{#arrayunique:topicsArray}}<!-- |
− | }}</includeonly> | + | -->{{#arrayprint:topicsArray||@@@@|[[@@@@]] |
+ | <nowiki/><br/><!-- | ||
+ | -->}}<!-- | ||
+ | -->}}</includeonly> |
Revision as of 19:52, 13 August 2016
This template is used to print an array of related topics.
NOTE: As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page.
Parameters:
|topics=
- a comma separated list of the topics.|intro=
- the text that should precede the list, e.g. "Here are the major topics tackled by this author:".