Template:Source Array: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#arraymap: {{{1|}}}|,|xSource|{{pub|xSource}}|, }} </includeonly><noinclude>{{tocright}} ==Use== Inputs list of sources and puts each in a <nowiki>{{pub|}}</nowiki> template. ==Syntax== <pre>{{Source Array|source1, source2, etc.}}</pre> ==Example== <pre>{{Source Array|SRD-OGL v5.1, Player's Handbook (5e), Foo's Guide to Nothing}}</pre> ===Produces=== {{Source Array|SRD-OGL v5.1, Player's Handbook (5e), Foo's Guide to Nothing}} Category:Templates...") |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#arraymap: {{{1|}}}|,|xSource|{{pub|xSource}}|, }} | <includeonly>{{#arraymap: {{{1|}}}|,|xSource|{{#ifexist: xSource<!--user-->|[[xSource]]|{{pub|xSource}}|}}|, }} | ||
</includeonly><noinclude>{{tocright}} | </includeonly><noinclude>{{tocright}} | ||
==Use== | ==Use== | ||
Line 8: | Line 8: | ||
==Example== | ==Example== | ||
<pre>{{Source Array|SRD-OGL v5.1, Player's Handbook (5e), Foo's Guide to Nothing}}</pre> | <pre>{{Source Array|SRD-OGL v5.1, Player's Handbook (5e), Foo's Guide to Nothing, user:Rlyehable}}</pre> | ||
===Produces=== | ===Produces=== | ||
{{Source Array|SRD-OGL v5.1, Player's Handbook (5e), Foo's Guide to Nothing}} | {{Source Array|SRD-OGL v5.1, Player's Handbook (5e), Foo's Guide to Nothing, user:Rlyehable}} | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 13:25, 15 June 2023
Use
Inputs list of sources and puts each in a {{pub|}} template.
Syntax
{{Source Array|source1, source2, etc.}}
Example
{{Source Array|SRD-OGL v5.1, Player's Handbook (5e), Foo's Guide to Nothing, user:Rlyehable}}
Produces
SRD-OGL v5.1, Player's Handbook (5e), Foo's Guide to Nothing, user:Rlyehable