Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:FilterByGame: Difference between revisions

Template page
(working test)
 
m (format the dropdown inside a table)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable" width="100%;"
<includeonly><!--
-->
{| class="wikitable" width="100%;"
! {{{title|Title}}}
! {{{title|Title}}}
|-
|-
| id="selectRow" | <div id="gameSelectDiv" style="display: inline-block;padding:0 2px"></div>
| id="selectRow" | {{DropdownFilter
| dropdownWrapperID = gameSelectDiv
| dropdownName = gameSelect
| attributeName = data-game
| nameOfElementToFilter = filter-element
| options = {{DropdownFilter/Option|Game}},{{{options|}}}
}}
|-
|-
|<div style="text-align: center">{{{data|}}}</div>
|<div style="text-align: center">{{{data|}}}</div>
|}</includeonly><noinclude>
|}<!--
The example images from first to last have the following attributes: [CT], [CS], [CSEX], [CP], [CPEX], [CF], [TAG], [CS & CP]
--></includeonly><noinclude>
{{FilterByGame
::<i>See also [[Template:DropdownFilter]]</i>
| title = Title
| data =
  {{FilterByGame/1|games=BBCT |image=[[File:BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 01.png|300px]]}}
  {{FilterByGame/1|games=BBCS |image=[[File:BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 02.png|300px]]}}
  {{FilterByGame/1|games=BBCSEX |image=[[File:BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 03.png|300px]]}}
  {{FilterByGame/1|games=BBCP |image=[[File:BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 04.png|300px]]}}
  {{FilterByGame/1|games=BBCPEX |image=[[File:BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 05.png|300px]]}}
  {{FilterByGame/1|games=BBCF |image=[[File:BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 06.png|300px]]}}
  {{FilterByGame/1|games=BBTAG |image=[[File:BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 07.png|300px]]}}
  {{FilterByGame/1|games=BBCS BBCP |image=[[File:BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 08.png|300px]]}}
}}


==Usage==
==Usage==
Line 25: Line 22:
{{FilterByGame
{{FilterByGame
  | title = Title
  | title = Title
| options = {{DropdownFilter/Option|BBCT}},{{DropdownFilter/Option|BBCS}},{{DropdownFilter/Option|BBCSEX}},{{DropdownFilter/Option|BBCP}},{{DropdownFilter/Option|BBCPEX}},{{DropdownFilter/Option|BBCF}}
  | data =  
  | data =  
   {{FilterByGame/1|games=BBCT BBCF BBCP BBCPEX|image=[[File:X.png|300px]]}}
   {{FilterByGame/1|games=BBCT BBCF BBCP BBCPEX|image=[[File:X.png|300px]]|caption=caption here}}
}}
}}
</nowiki></pre>
</nowiki></pre>
==Example==
{{FilterByGame
| title = Sprites (Filter by Game from the Dropdown)
| options = {{DropdownFilter/Option|BBCT}},{{DropdownFilter/Option|BBCS}},{{DropdownFilter/Option|BBCSEX}},{{DropdownFilter/Option|BBCP}},{{DropdownFilter/Option|BBCPEX}},{{DropdownFilter/Option|BBCF}}
| data =
  {{FilterByGame/1|games=BBCT |image=[[File:BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 01.png|300px]]|caption=BBCT}}
  {{FilterByGame/1|games=BBCS |image=[[File:BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 02.png|300px]]|caption=BBCS}}
  {{FilterByGame/1|games=BBCSEX |image=[[File:BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 03.png|300px]]|caption=BBCSEX}}
  {{FilterByGame/1|games=BBCP |image=[[File:BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 04.png|300px]]|caption=BBCP}}
  {{FilterByGame/1|games=BBCPEX |image=[[File:BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 05.png|300px]]|caption=BBCPEX}}
  {{FilterByGame/1|games=BBCF |image=[[File:BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 06.png|300px]]|caption=BBCF}}
  {{FilterByGame/1|games=BBTAG |image=[[File:BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 07.png|300px]]|caption=BBTAG}}
  {{FilterByGame/1|games=BBCS BBCP |image=[[File:BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 08.png|300px]]|caption=BBCS BBCP}}
}}


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 23:55, 17 October 2018

See also Template:DropdownFilter

Usage

Use with Template:FilterByGame/1.

{{FilterByGame
 | title = Title
 | options = {{DropdownFilter/Option|BBCT}},{{DropdownFilter/Option|BBCS}},{{DropdownFilter/Option|BBCSEX}},{{DropdownFilter/Option|BBCP}},{{DropdownFilter/Option|BBCPEX}},{{DropdownFilter/Option|BBCF}}
 | data = 
  {{FilterByGame/1|games=BBCT BBCF BBCP BBCPEX|image=[[File:X.png|300px]]|caption=caption here}}
}}

Example

Sprites (Filter by Game from the Dropdown)
BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 01.png

BBCT
BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 02.png

BBCS
BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 03.png

BBCSEX
BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 04.png

BBCP
BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 05.png

BBCPEX
BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 06.png

BBCF
BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 07.png

BBTAG
BlazBlue Central Fiction Kagura Mutsuki Sprite Reference 08.png

BBCS BBCP