Difference between revisions of "LevelGallery"
From Sonic Retro
Scarred Sun (talk | contribs) |
Ccawley2011 (talk | contribs) m |
||
(20 intermediate revisions by 5 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}}} |
− | | | + | |include={LevelBob}:levelscreen,{LevelBob}:levelscreen,{LevelBob}:name,{LevelBob}:name,{LevelBob}:game |
− | |include={LevelBob}:levelscreen,{LevelBob}:levelscreen,{LevelBob}:name,{LevelBob}:name | ||
|ordermethod=title | |ordermethod=title | ||
|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== | ||
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: | 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: | ||
− | <pre>{{LevelGallery|Sonic Heroes | + | <pre>{{LevelGallery|Sonic Heroes levels}}</pre> |
produces this: | produces this: | ||
− | {{LevelGallery|Sonic Heroes | + | {{LevelGallery|Sonic Heroes levels}} |
Add <tt>gameTitle=hide</tt> to hide the game title: | Add <tt>gameTitle=hide</tt> to hide the game title: | ||
− | <pre>{{LevelGallery|Sonic Chaos | + | <pre>{{LevelGallery|Sonic Chaos levels|gameTitle=hide}}</pre> |
− | {{LevelGallery|Sonic Chaos | + | {{LevelGallery|Sonic Chaos levels|gameTitle=hide}} |
− | [[Category:Navigational | + | [[Category:Navigational templates|{{PAGENAME}}]] |
</noinclude> | </noinclude> |
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}}