Actions

Template

Difference between revisions of "HackGallery"

From Sonic Retro

m
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>{{#dpl:
 
<includeonly>{{#dpl:
 
|category={{{1}}}
 
|category={{{1}}}
|include={Hack}:screen,{Hack}:screen,{LevelBob}:name,{Hack}:originalgame,{Hack}:originalgame
+
|include={Hack}:screen,{Hack}:screen,{Hack}:originalgame,{Hack}:originalgame
 
|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;filter: alpha(opacity=80);opacity: 0.8;left:0;bottom:0;right:0;padding:5px;text-align:left;"><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></span></div>  \n  
+
|secseparators = <div class="posrel shadow" style="float:left;margin:10px">²{#ifexist:File:,,¦[[Image:,,¦x144px¦link=%PAGE%]]¦[[Image:Notavailable.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;"><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 17: Line 17:
 
{{HackGallery|Sonic the Hedgehog 2 (16-bit) Hacks|gameTitle=hide}}
 
{{HackGallery|Sonic the Hedgehog 2 (16-bit) Hacks|gameTitle=hide}}
  
[[Category:Navigational Templates|{{PAGENAME}}]]
+
[[Category:Navigational templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 11:20, 12 March 2021

Usage

Use with a category that includes hacks to create a gallery of those hacks. In order for this to work properly, hack articles need to be using Template:Hack. For example, this:

{{HackGallery|Hacks with visual modifications}}

produces this:

Add gameTitle=hide to hide the game title:

{{HackGallery|Sonic the Hedgehog 2 (16-bit) Hacks|gameTitle=hide}}

Extension:DynamicPageList (DPL), version 3.3.3: Warning: No results.