Difference between revisions of "LevelGallery"
From Sonic Retro
PicklePower (talk | contribs) m (Reverted edits by PicklePower (talk) to last revision by Scarred Sun) |
PicklePower (talk | contribs) (Undo revision 160791 by PicklePower (talk)) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#dpl: | + | <includeonly> |
+ | <css> | ||
+ | .levelGalleryText { | ||
+ | background:#000; | ||
+ | filter: alpha(opacity=80); | ||
+ | opacity: 0.8; | ||
+ | left:0; | ||
+ | bottom:0; | ||
+ | right:0; | ||
+ | padding:5px; | ||
+ | text-align:left; | ||
+ | } | ||
+ | </css> | ||
+ | {{#dpl: | ||
|category={{{1}}} | |category={{{1}}} | ||
|include={LevelBob}:levelscreen,{LevelBob}:levelscreen,{LevelBob}:name,{LevelBob}:name,{LevelBob}:name,{LevelBob}:game,{LevelBob}:game | |include={LevelBob}:levelscreen,{LevelBob}:levelscreen,{LevelBob}:name,{LevelBob}:name,{LevelBob}:name,{LevelBob}:game,{LevelBob}:game | ||
Line 5: | Line 18: | ||
|order=ascending | |order=ascending | ||
|mode = userformat | |mode = userformat | ||
− | |secseparators = <div class="posrel shadow" style="float:left;margin:10px">²{#ifexist:File:,,¦[[Image:,,¦x144px¦link=%PAGE%]]¦[[Image:Image upload.svg{{!}}x144px{{!}}link=%PAGE%]]}²<br><span class="posabs" style="background:# | + | |secseparators = <div class="posrel shadow" style="float:left;margin:10px">²{#ifexist:File:,,¦[[Image:,,¦x144px¦link=%PAGE%]]¦[[Image:Image upload.svg{{!}}x144px{{!}}link=%PAGE%]]}²<br><span class="posabs" style=" background:#fff;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 |
}}{{clear}}</includeonly><noinclude> | }}{{clear}}</includeonly><noinclude> | ||
==Usage== | ==Usage== | ||
Line 12: | Line 25: | ||
produces this: | produces this: | ||
{{LevelGallery|Sonic Heroes Levels}} | {{LevelGallery|Sonic Heroes Levels}} | ||
+ | |||
+ | Add <tt>gameTitle=hide</tt> to hide the game title: | ||
+ | <pre>{{LevelGallery|Sonic Chaos Levels|gameTitle=hide}}</pre> | ||
+ | {{LevelGallery|Sonic Chaos Levels|gameTitle=hide}} | ||
+ | |||
[[Category:Navigational Templates|{{PAGENAME}}]] | [[Category:Navigational Templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 22:24, 4 October 2010
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:
Extension:DynamicPageList (DPL), version 3.3.3: Warning: No results.
Add gameTitle=hide to hide the game title:
{{LevelGallery|Sonic Chaos Levels|gameTitle=hide}}
Extension:DynamicPageList (DPL), version 3.3.3: Warning: No results.