Actions

Template

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##
|category={{{1}}}
+
.charGalleryText {
|include={CharacterBob}:image1,{CharacterBob}:image1,{CharacterBob}:charname,{CharacterBob}:charname,{CharacterBob}:charname,{CharacterBob}:debut,{CharacterBob}:debut
+
  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><span class="posabs" style="background:#000;opacity: 0.8;left:0;bottom:0;right:0;padding:5px;text-align:left;">²{#if:,,¦<span style="font-size:110%">'''[[,,¦<span style="color:#fff;filter: alpha(opacity=100)">,,</span>]]'''</span>¦<span style="font-size:110%;">'''[[%PAGE%¦<span style="color:#fff;filter: alpha(opacity=100)">%PAGE%</span>]]'''</span>}² ²{#ifeq:{{{gameTitle}}}¦hide¦<span style="display:none">¦<br />}²''[[,,¦<span style="color:#fff;filter: alpha(opacity=100)">,</span>]]''²{#ifeq:{{{gameTitle}}}¦hide¦</span>¦}²</span></div>  \n  
+
|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>{{cleanup|Problems with the formatting, specially what happens to the text that appears after the template.}}
 
 
==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}}