Difference between revisions of "BulletPointGameList"

From Sega Retro

 
Line 1: Line 1:
{{#vardefine:columns|0}}{{#vardefine:i|0}}{{#vardefine:format|{{Code2Format|{{{1|}}}{{{format|}}}}}}}{{#vardefine:region|{{{region|}}}}}{{#vardefine:contents|{{#dpl:
+
{{#vardefine:columns|0}}{{#vardefine:i|0}}{{#vardefine:subpage|{{{subpage|}}}}}{{#vardefine:format|{{Code2Format|{{{1|}}}{{{format|}}}}}}}{{#vardefine:region|{{{region|}}}}}{{#vardefine:contents|{{#dpl:
 
|category={{#if:{{{category|}}}|{{{category|}}}|{{{region|}}} {{#var:format}} games}}
 
|category={{#if:{{{category|}}}|{{{category|}}}|{{{region|}}} {{#var:format}} games}}
 
|{{#if:{{{category2|}}}|category={{{category2|}}}|}}
 
|{{#if:{{{category2|}}}|category={{{category2|}}}|}}
Line 8: Line 8:
 
|include={Bob}:something
 
|include={Bob}:something
 
|mode=userformat
 
|mode=userformat
|secseparators=\n*²{ReleaseWithDate¦%PAGE%¦{{{1|}}}{{{format|}}}¦region=²{#var:region}²}²²{incvar¦i}²
+
|secseparators=\n*²{ReleaseWithDate¦%PAGE%¦{{{1|}}}{{{format|}}}¦region=²{#var:region}²}²²{#if:²{#var:subpage}²¦ ([[%PAGE%/²{#var:subpage}²¦²{#var:subpage}²]])¦}²²{incvar¦i}²
 
|noresultsheader= 
 
|noresultsheader= 
 
|nottitlematch=List of%
 
|nottitlematch=List of%
Line 17: Line 17:
 
{{#var:contents}}
 
{{#var:contents}}
 
|cols={{MulticolColumnCalc|{{#var:i}}}}
 
|cols={{MulticolColumnCalc|{{#var:i}}}}
}}{{clearvar|columns|i|contents|format}}<noinclude>
+
}}{{clearvar|columns|i|contents|format|subpage}}<noinclude>
  
 
Template for displaying lists of games as bullet points, in alphabetical order.
 
Template for displaying lists of games as bullet points, in alphabetical order.
Line 23: Line 23:
 
<pre>{{BulletPointGameList|32X}}</pre>
 
<pre>{{BulletPointGameList|32X}}</pre>
 
{{BulletPointGameList|32X}}
 
{{BulletPointGameList|32X}}
 +
 +
<pre>{{BulletPointGameList|32X|subpage=Hidden content}}</pre>
 +
{{BulletPointGameList|32X|subpage=Hidden content}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 15:02, 17 August 2024

Template for displaying lists of games as bullet points, in alphabetical order.

{{BulletPointGameList|32X}}
{{BulletPointGameList|32X|subpage=Hidden content}}