Actions

Template

Difference between revisions of "GameGallery"

From Sonic Retro

(Created page with "<includeonly>{{#dpl: |category={{{1}}} |include={Bob}:bobscreen,{Bob}:bobscreen,{Bob}:system,{Hack}:system |ordermethod=title |order=ascending |mode = userformat |secseparators =...")
 
Line 1: Line 1:
 
<includeonly>{{#dpl:
 
<includeonly>{{#dpl:
 
|category={{{1}}}
 
|category={{{1}}}
|include={Bob}:bobscreen,{Bob}:bobscreen,{Bob}:system,{Hack}:system
+
|include={Bob}:bobscreen,{Bob}:bobscreen,{Bob}:system
 
|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;"><span style="font-size:110%;">'''[[%PAGE%¦<span style="color:#fff;">%PAGE%</span>]]'''</span> ²{#ifeq:{{{gameSystem}}}¦hide¦<span style="display:none">¦<br />}²''[[,,¦<span style="color:#fff;">,</span>]]''²{#ifeq:{{{gameSystem}}}¦hide¦</span>¦}²</span></div>  \n  
+
|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;"><span style="font-size:110%;">'''[[%PAGE%¦<span style="color:#fff;">%PAGE%</span>]]'''</span> ²{#ifeq:{{{gameSystem}}}¦hide¦<span style="display:none">¦<br />}²''<span style="color:#fff;">,,</span>]]''²{#ifeq:{{{gameSystem}}}¦hide¦</span>¦}²</span></div>  \n  
 
}}{{clear}}</includeonly><noinclude>
 
}}{{clear}}</includeonly><noinclude>
 
==Usage==
 
==Usage==

Revision as of 20:49, 23 October 2010

Usage

Use with a category that includes games to create a gallery of those games. In order for this to work properly, games articles need to be using Template:Bob to display game information at the top of the article. For example, this:

{{GameGallery|Mega Drive Games}}

produces this:

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

Add gameSystem=hide to hide the system the game appeared on:

{{GameGallery|Mega Drive Games|gameSystem=hide}}

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