Template:GameThumb: Difference between revisions
Jump to navigation
Jump to search
Using thumb instead of full image |
Using the sandbox approach |
||
Line 1: | Line 1: | ||
<includeonly><div class="game-thumb"> | <includeonly><div class="game-thumb">[[File:{{{2|}}}|frameless|230px|class=game-thumb-img|alt={{{1|}}}]]<span class="game-thumb-link">[[{{{1|}}}]]</span> | ||
</div></includeonly><noinclude>{{Documentation}}</noinclude> | </div></includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 03:22, 21 July 2024
A single element of the GameThumbContainer. Displays an image with a link.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page name | 1 | The page name to link to
| Page name | required |
Image | 2 | An image used as background which describes the linked game best.
| File | required |
Usage[edit]
See the template's testcases:
Call without parameter | |
---|---|
Wiki code | {{GameThumb}} |
Main version | [[File:|frameless|230px|class=game-thumb-img|alt=]][[]]
|
Sandbox version | [[File:|frameless|230px|class=game-thumb-img|alt=]][[]]
|
Call outside container | |
---|---|
Wiki code | {{GameThumb|Project Neural Cloud|PNC_Loading_Screen_17.png}} |
Main version | |
Sandbox version |
Proper call | |
---|---|
Wiki code | {{GameThumbContainer| {{GameThumb|Project Neural Cloud|PNC_Loading_Screen_17.png}} {{GameThumb/sandbox|Girls' Frontline 2: Exilium|GFL2_2023_Banner.jpg}} }} |
Main version | |
Sandbox version |
See also[edit]
The above documentation is transcluded from Template:GameThumb/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |