Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:P2: Difference between revisions

Template page
m (changed to need the user to specify File: in file names)
m (removed "thumb" from images)
Line 1: Line 1:
<includeonly><div class="jcarousel-item">[[{{#explode:{{{1|}}}|;}}|thumb|center|{{#arraymap:{{#sub:{{{1|}}}|{{#pos:{{{1|}}}|;}}}}|;|x|{{!}}x|}}]]</div></includeonly><noinclude>
<includeonly><div class="jcarousel-item">[[{{#explode:{{{1|}}}|;}}|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=
File:BlazBlue Central Fiction Logo.png;150px;This is a caption
File:BlazBlue Central Fiction Logo.png;150px;thumb;This is a caption
File:BlazBlue Central Fiction Logo.png;This is a caption
File:BlazBlue Central Fiction Logo.png;thumb;This is a caption
}}
}}


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


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


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

Revision as of 19:02, 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;thumb;This is a caption
File:BlazBlue Central Fiction Logo.png;thumb;This is a caption
}}

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