Difference between revisions of "Template:Pagelist"

From EVE University Wiki
Jump to: navigation, search
(Categorized.)
m
 
(One intermediate revision by the same user not shown)
Line 20: Line 20:
 
-->{{#if:{{{20|}}}|<nowiki> </nowiki>and {{{delim|}}}{{#ifeq:{{{nspace|}}}|default|[[:{{FULLPAGENAME:{{{20}}}}}|{{{20}}}]]|[[:{{{nspace|{{NAMESPACE}}}}}:{{PAGENAME:{{{20}}}}}|{{{20}}}]]}}{{{edelim|{{{delim|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}<!--
 
-->{{#if:{{{20|}}}|<nowiki> </nowiki>and {{{delim|}}}{{#ifeq:{{{nspace|}}}|default|[[:{{FULLPAGENAME:{{{20}}}}}|{{{20}}}]]|[[:{{{nspace|{{NAMESPACE}}}}}:{{PAGENAME:{{{20}}}}}|{{{20}}}]]}}{{{edelim|{{{delim|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}<!--
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>
[[Category:Template]]
+
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 12:21, 18 March 2021

Template documentation (for the above template, sometimes hidden or invisible)
Description
This template creates a list of article/page links separated by "," or for the last 2 entries "and". A maximum of 20 articles/pages can be used.
Pagelist can be used with only one page but that is overkill.
Dependencies
Used by
{{Merge}}
Syntax
{{Pagelist|<nspace= namespace>|<page 1>|<page 2>|<...>|<page 19>|<page20>|<delim= delimiter>|<edelim= delimiter>}}
Parameters
nspace [Required]
Either default or the namespace of the pages. Recommendation: Just use default
page <x> [At least one]
The name of the articles/pages.
Warning: the following parameters are buggy. Using them can lead to unpredictable results. Thoroughly test before using.
delim
The delimiter in front of the article/page name. Defaults to nothing.
edelim
The delimiter after the article/page name. When omitted defaults to delim, when empty defaults to nothing.
Sample
{{Pagelist|nspace= default|Main Page}}
gives...
Main Page
{{Pagelist|nspace= default|Main Page|Template:Merge}}
gives...
Main Page and Template:Merge
{{Pagelist|nspace= default|Main PageVexor||Template:Merge}}
gives...
Main Page, Vexor and Template:Merge
Visit Template:Pagelist/doc to edit this text! (How does this work?) (Refresh this text - why?)