Difference between revisions of "Template:Pagelist"

From EVE University Wiki
Jump to: navigation, search
(Created page with "<includeonly>{{{delim|}}}{{#ifeq:{{{nspace|}}}|default|[[:{{FULLPAGENAME:{{{1}}}}}|{{{1}}}]]|[[:{{{nspace|{{NAMESPACE}}}}}:{{PAGENAME:{{{1}}}}}|{{{1}}}]]}}{{{edelim|{{{delim|}...")
 
m
 
(2 intermediate revisions by 2 users not shown)
Line 19: Line 19:
 
-->{{#if:{{{19|}}}|{{#if:{{{20|}}}|,|<nowiki> </nowiki>and}} {{{delim|}}}{{#ifeq:{{{nspace|}}}|default|[[:{{FULLPAGENAME:{{{19}}}}}|{{{19}}}]]|[[:{{{nspace|{{NAMESPACE}}}}}:{{PAGENAME:{{{19}}}}}|{{{19}}}]]}}{{{edelim|{{{delim|}}}}}}<!--
 
-->{{#if:{{{19|}}}|{{#if:{{{20|}}}|,|<nowiki> </nowiki>and}} {{{delim|}}}{{#ifeq:{{{nspace|}}}|default|[[:{{FULLPAGENAME:{{{19}}}}}|{{{19}}}]]|[[:{{{nspace|{{NAMESPACE}}}}}:{{PAGENAME:{{{19}}}}}|{{{19}}}]]}}{{{edelim|{{{delim|}}}}}}<!--
 
-->{{#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>
+
--></includeonly><noinclude>
 +
{{documentation}}
 +
</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?)