Difference between revisions of "CharacterGallery"
From Sonic Retro
m |
(Alright, this seems fine enough) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly><!--{{#css: |
− | {{#dpl: | + | ##VERSION2## |
− | | | + | .charGalleryText { |
− | |include={CharacterBob}:image1,{CharacterBob}:image1,{CharacterBob}:charname,{CharacterBob}:charname | + | background:#000; |
+ | filter: alpha(opacity=80); | ||
+ | opacity: 0.8; | ||
+ | left:0; | ||
+ | bottom:0; | ||
+ | right:0; | ||
+ | padding:5px; | ||
+ | text-align:left; | ||
+ | } | ||
+ | }}-->{{#dpl: | ||
+ | |categorymatch={{{1}}} | ||
+ | |include={CharacterBob}:image1,{CharacterBob}:image1,{CharacterBob}:charname,{CharacterBob}:charname,{CharacterBob}:debut | ||
|ordermethod=title | |ordermethod=title | ||
|order=ascending | |order=ascending | ||
|mode = userformat | |mode = userformat | ||
− | |secseparators = <div class="posrel shadow" style="float:left;margin:10px">²{#ifexist:File:,,¦²{Bobscreen¦,,¦height=144¦link=%PAGE%}²¦[[Image:Notavailable.svg{{!}}x144px{{!}}link=%PAGE%]]}²<br>< | + | |secseparators = <div class="posrel shadow" style="float:left;margin:10px">²{#ifexist:File:,,¦²{Bobscreen¦,,¦height=144¦link=%PAGE%}²¦[[Image:Notavailable.svg{{!}}x144px{{!}}link=%PAGE%]]}²<br><div class="posabs" style="background:#000;opacity:0.8;left:0;bottom:0;right:0;padding:5px;text-align:left;">²{#if:,,¦'''[[,,]]'''¦'''[[%PAGE%]]'''}² ²{#ifeq:{{{gameTitle}}}¦hide¦<span style="display:none">¦<br />}²''[[,]]''²{#ifeq:{{{gameTitle}}}¦hide¦</span>¦}²</div></div> \n |
− | }} | + | }}{{clear}}</includeonly><noinclude> |
− | </includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
Use with a category that includes character articles to create a gallery of those characters. In order for this to work properly, level articles need to be using [[:Template:CharacterBob]]. For example, this: | Use with a category that includes character articles to create a gallery of those characters. In order for this to work properly, level articles need to be using [[:Template:CharacterBob]]. For example, this: |
Latest revision as of 19:31, 26 June 2024
Usage
Use with a category that includes character articles to create a gallery of those characters. In order for this to work properly, level articles need to be using Template:CharacterBob. For example, this:
{{CharacterGallery|Sonic transformations}}
produces this:
Add gameTitle=hide to hide the game title:
{{CharacterGallery|Sonic transformations|gameTitle=hide}}