More actions
m (update usage) |
m (format the dropdown inside a table) |
||
(2 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" | | | 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> | |}<!-- | ||
--></includeonly><noinclude> | |||
::<i>See also [[Template:DropdownFilter]]</i> | |||
==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]]|caption=caption here}} | {{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) |
---|