Difference between revisions of "CharacterGallery"
From Sonic Retro
m |
(Alright, this seems fine enough) |
||
Line 18: | Line 18: | ||
|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><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 | |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> | + | }}{{clear}}</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: | ||
Line 31: | Line 31: | ||
[[Category:Navigational templates|{{PAGENAME}}]] | [[Category:Navigational templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||
− | |||
− |
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}}