Template:P2: Difference between revisions

Template page
(subtemplate for Template:Carousel)
 
m (changed to need the user to specify File: in file names)
Line 1: Line 1:
<includeonly><div class="jcarousel-item">[[File:{{#explode:{{{1|}}}|;}}|thumb|center|{{#arraymap:{{#sub:{{{1|}}}|{{#pos:{{{1|}}}|;}}}}|;|x|{{!}}x|}}]]</div></includeonly><noinclude>
<includeonly><div class="jcarousel-item">[[{{#explode:{{{1|}}}|;}}|thumb|center|{{#arraymap:{{#sub:{{{1|}}}|{{#pos:{{{1|}}}|;}}}}|;|x|{{!}}x|}}]]</div></includeonly><noinclude>
Template for [[Template:Carousel]] to allow captions when using the shorthand <code>images</code> parameter.
Template for [[Template:Carousel]] to allow captions when using the shorthand <code>images</code> parameter.


Line 5: Line 5:
<pre><nowiki>
<pre><nowiki>
{{Carousel|width=300|images=
{{Carousel|width=300|images=
BlazBlue Central Fiction Logo.png;150px;This is a caption
File:BlazBlue Central Fiction Logo.png;150px;This is a caption
BlazBlue Central Fiction Logo.png;This is a caption
File:BlazBlue Central Fiction Logo.png;This is a caption
}}
}}


{{p2|BlazBlue Central Fiction Logo.png;150px;This is a caption}}
{{p2|File:BlazBlue Central Fiction Logo.png;150px;This is a caption}}
{{p2|BlazBlue Central Fiction Logo.png;This is a caption}}
{{p2|File:BlazBlue Central Fiction Logo.png;This is a caption}}
</nowiki></pre>
</nowiki></pre>


{{p2|BlazBlue Central Fiction Logo.png;150px;This is a caption}}
{{p2|File:BlazBlue Central Fiction Logo.png;150px;This is a caption}}
{{p2|BlazBlue Central Fiction Logo.png;This is a caption}}
{{p2|File:BlazBlue Central Fiction Logo.png;This is a caption}}


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 18:27, 8 October 2021

Template for Template:Carousel to allow captions when using the shorthand images parameter.

Usage:

{{Carousel|width=300|images=
File:BlazBlue Central Fiction Logo.png;150px;This is a caption
File:BlazBlue Central Fiction Logo.png;This is a caption
}}

{{p2|File:BlazBlue Central Fiction Logo.png;150px;This is a caption}}
{{p2|File:BlazBlue Central Fiction Logo.png;This is a caption}}
This is a caption
This is a caption