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 (Undo revision 66128 by Chao (talk))
Tag: Undo
m (don't show image name as caption if no caption is specified)
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|}}}|;}}|thumb|center||{{#arraymap:{{#if:{{#pos:{{{1|}}}|;}}|{{#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 10: Line 10:


{{p2|File:BlazBlue Central Fiction Logo.png;150px;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}}
{{p2|File:BlazBlue Central Fiction Logo.png}}
</nowiki></pre>
</nowiki></pre>


{{p2|File:BlazBlue Central Fiction Logo.png;150px;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}}
{{p2|File:BlazBlue Central Fiction Logo.png}}


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

Revision as of 19:16, 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
BlazBlue Central Fiction Logo.png