PC Gaming Shelter
An archive dedicated to preserving PC Gaming history and more

Template:Thumbwall/doc: Difference between revisions

From PC Gaming Shelter
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatedata>
The template creates a navigational element - wall of thumbs linked to wiki pages.
{
 
"params": {},
"description": "Creates a navigational element - wall of thumbs linked to wiki pages."
}
</templatedata>
The first unnamed parameter sets the heading for the block. The rest of parameters are numbered series of:
The first unnamed parameter sets the heading for the block. The rest of parameters are numbered series of:
* <code>label</code> &mdash; sets thumb label and links to a page with the same name, if not overridden by the ''target'' parameter
* <code>label</code> &mdash; sets thumb label and links to a page with the same name, if not overridden by the ''target'' parameter
* <code>image</code> &mdash; The name of the image to display. Images with transparent backgrounds work best.
* <code>image</code> &mdash; The name of the image to display. Images with transparent backgrounds work best.
* <code>target</code> &mdash; (optional) sets the link target page if differs from the label.
* <code>target</code> &mdash; (optional) sets the link target page if differs from the label.
* <code>show thumbs</code> &mdash; (optional, default <code>1</code>) switches thumbs on/off.
== Example ==
== Example ==
<pre>
<pre>
Line 20: Line 18:
|image3=Icon-Mods.png
|image3=Icon-Mods.png
|target3=Form:Mod
|target3=Form:Mod
|show thumbs=1
}}
}}
</pre>
</pre>
Line 32: Line 31:
|image3=Icon-Mods.png
|image3=Icon-Mods.png
|target3=Form:Mod
|target3=Form:Mod
|show thumbs=1
}}
}}


You can have virtually any number of series.
You can have virtually any number of series.
If thumbs a not needed, for compact view, set <code>show thumbs</code> to <code>0</code>:
<pre>
{{Thumbwall
|Game Genres
|label1=Action
|image1=Icon-Action.png
|label2=Adventure
|image2=Icon-Adventure.png
|label3=Mods
|image3=Icon-Mods.png
|target3=Form:Mod
|show thumbs=0
}}
</pre>
;Result
{{Thumbwall
|Game Genres
|label1=Action
|image1=Icon-Action.png
|label2=Adventure
|image2=Icon-Adventure.png
|label3=Mods
|image3=Icon-Mods.png
|target3=Form:Mod
|show thumbs=0
}}

Latest revision as of 12:07, 6 June 2026

The template creates a navigational element - wall of thumbs linked to wiki pages.

The first unnamed parameter sets the heading for the block. The rest of parameters are numbered series of:

  • label — sets thumb label and links to a page with the same name, if not overridden by the target parameter
  • image — The name of the image to display. Images with transparent backgrounds work best.
  • target — (optional) sets the link target page if differs from the label.
  • show thumbs — (optional, default 1) switches thumbs on/off.

Example

{{Thumbwall
|Game Genres
|label1=Action
|image1=Icon-Action.png
|label2=Adventure
|image2=Icon-Adventure.png
|label3=Mods
|image3=Icon-Mods.png
|target3=Form:Mod
|show thumbs=1
}}
Result

You can have virtually any number of series.

If thumbs a not needed, for compact view, set show thumbs to 0:

{{Thumbwall
|Game Genres
|label1=Action
|image1=Icon-Action.png
|label2=Adventure
|image2=Icon-Adventure.png
|label3=Mods
|image3=Icon-Mods.png
|target3=Form:Mod
|show thumbs=0
}}
Result