Difference between revisions of "LevelGallery"
From Sonic Retro
m (Text replace - "Category:Navigational Templates" to "Category:Navigational templates") |
Ccawley2011 (talk | contribs) m |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly><!--{{#css: |
− | <css | ||
.levelGalleryText { | .levelGalleryText { | ||
background:#000; | background:#000; | ||
Line 11: | Line 10: | ||
text-align:left; | text-align:left; | ||
} | } | ||
− | + | }}-->{{#dpl: | |
− | {{#dpl: | ||
|categorymatch={{{1}}} | |categorymatch={{{1}}} | ||
|include={LevelBob}:levelscreen,{LevelBob}:levelscreen,{LevelBob}:name,{LevelBob}:name,{LevelBob}:game | |include={LevelBob}:levelscreen,{LevelBob}:levelscreen,{LevelBob}:name,{LevelBob}:name,{LevelBob}:game | ||
Line 18: | Line 16: | ||
|order=ascending | |order=ascending | ||
|mode = userformat | |mode = userformat | ||
− | |secseparators = <div class="posrel shadow" style="float:left;margin:10px">²{#ifexist:File:,, | + | |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== |
Latest revision as of 11:20, 12 March 2021
Usage
Use with a category that includes level articles to create a gallery of those levels. In order for this to work properly, level articles need to be using Template:LevelBob. For example, this:
{{LevelGallery|Sonic Heroes levels}}
produces this:
Add gameTitle=hide to hide the game title:
{{LevelGallery|Sonic Chaos levels|gameTitle=hide}}