Actions

Template

Difference between revisions of "LevelGallery"

From Sonic Retro

(Undo revision 160790 by PicklePower (talk))
(35 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;
 
}
 
}
</css>
+
}}-->{{#dpl:
{{#dpl:
+
|categorymatch={{{1}}}
|category={{{1}}}
+
|include={LevelBob}:levelscreen,{LevelBob}:levelscreen,{LevelBob}:name,{LevelBob}:name,{LevelBob}:game
|include={LevelBob}:levelscreen,{LevelBob}:levelscreen,{LevelBob}:name,{LevelBob}:name,{LevelBob}:name,{LevelBob}:game,{LevelBob}:game
 
 
|ordermethod=title
 
|ordermethod=title
 
|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:#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:Image upload.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 Levels}}</pre>
+
  <pre>{{LevelGallery|Sonic Heroes levels}}</pre>
 
produces this:
 
produces this:
{{LevelGallery|Sonic Heroes Levels}}
+
{{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 Levels|gameTitle=hide}}</pre>
+
<pre>{{LevelGallery|Sonic Chaos levels|gameTitle=hide}}</pre>
{{LevelGallery|Sonic Chaos Levels|gameTitle=hide}}
+
{{LevelGallery|Sonic Chaos levels|gameTitle=hide}}
  
[[Category:Navigational Templates|{{PAGENAME}}]]
+
[[Category:Navigational templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 13:00, 19 September 2019