User:Stevium/sandbox2: Difference between revisions
No edit summary |
Bucket test |
||
| Line 1: | Line 1: | ||
==All neighbors== | |||
{{# | {{#invoke:Bucket|get|neighbors | ||
| | |select = page_name, realname, birthday, role, galaxy, loves, likes, dislikes | ||
| | |where = {{{where|}}} | ||
| | |filter = {{{filter|}}} | ||
| | |order by = page_name | ||
| | |||
|format = userformat | |||
|resultsHeader = '''%TOTALRESULTS%''' [[neighbor]]%S%: | |||
|header = <!-- | |||
--><table id="{{{id|}}}" class="wikitable sortable"><!-- | |||
--><tr><!-- | |||
--><th class="unsortable">Icon</th><!-- | |||
--><th>Name</th><!-- | |||
--><th>Real Name</th><!-- | |||
--><th>Birthday</th><!-- | |||
--><th>Role</th><!-- | |||
--><th>Galaxy</th><!-- | |||
--><th>Loves</th><!-- | |||
--><th>Likes</th><!-- | |||
--><th>Dislikes</th><!-- | |||
--></tr> | |||
|userformat = <!-- | |||
--><tr><!-- | |||
--><td>{{Item|size=50|%page_name%|notext=1}}</td><!-- | |||
--><td>[[%page_name%]]</td><!-- | |||
--><td>%realname%</td><!-- | |||
--><td>%birthday%</td><!-- | |||
--><td>%role%</td><!-- | |||
--><td><nowiki>{{#if:%galaxy%|{{Item|%galaxy%}}}}</nowiki></td><!-- | |||
--><td><nowiki>{{Item List|%loves%}}</nowiki></td><!-- | |||
--><td><nowiki>{{List|%likes%}}</nowiki></td><!-- | |||
--><td><nowiki>{{List|%dislikes%}}</nowiki></td><!-- | |||
--></tr> | |||
|footer = </table> | |||
}} | }} | ||
{{# | ==Select neighbors== | ||
| | ===By loves=== | ||
| | {{#invoke:Bucket|get|neighbors | ||
| | |select = page_name, realname, birthday, role, galaxy, loves, likes, dislikes | ||
| | |where = (loves="Caterpillar Fungus Herbal Remedy") | ||
| | |order by = page_name | ||
|format = userformat | |||
|resultsHeader = '''%TOTALRESULTS%''' [[neighbor]]%S% loves {{Item|Caterpillar Fungus Herbal Remedy}}: | |||
|header = <!-- | |||
--><table id="{{{id|}}}" class="wikitable sortable"><!-- | |||
--><tr><!-- | |||
--><th class="unsortable">Icon</th><!-- | |||
--><th>Name</th><!-- | |||
--><th>Real Name</th><!-- | |||
--><th>Birthday</th><!-- | |||
--><th>Role</th><!-- | |||
--><th>Galaxy</th><!-- | |||
--><th>Loves</th><!-- | |||
--><th>Likes</th><!-- | |||
--><th>Dislikes</th><!-- | |||
--></tr> | |||
|userformat = <!-- | |||
--><tr><!-- | |||
--><td>{{Item|size=50|%page_name%|notext=1}}</td><!-- | |||
--><td>[[%page_name%]]</td><!-- | |||
--><td>%realname%</td><!-- | |||
--><td>%birthday%</td><!-- | |||
--><td>%role%</td><!-- | |||
--><td><nowiki>{{#if:%galaxy%|{{Item|%galaxy%}}}}</nowiki></td><!-- | |||
--><td><nowiki>{{Item List|%loves%}}</nowiki></td><!-- | |||
--><td><nowiki>{{List|%likes%}}</nowiki></td><!-- | |||
--><td><nowiki>{{List|%dislikes%}}</nowiki></td><!-- | |||
--></tr> | |||
|footer = </table> | |||
}} | |||
===By birthday=== | |||
{{#invoke:Bucket|get|neighbors | |||
|select = page_name, realname, birthday, role, galaxy, loves, likes, dislikes | |||
|filter = (birthday CONTAINS "July") | |||
|order by = page_name | |||
|format = userformat | |||
|resultsHeader = '''%TOTALRESULTS%''' [[neighbor]]%S% celebrate their birthday in July: | |||
|header = <!-- | |||
--><table id="{{{id|}}}" class="wikitable sortable"><!-- | |||
--><tr><!-- | |||
--><th class="unsortable">Icon</th><!-- | |||
--><th>Name</th><!-- | |||
--><th>Real Name</th><!-- | |||
--><th>Birthday</th><!-- | |||
--><th>Role</th><!-- | |||
--><th>Galaxy</th><!-- | |||
--><th>Loves</th><!-- | |||
--><th>Likes</th><!-- | |||
--><th>Dislikes</th><!-- | |||
--></tr> | |||
|userformat = <!-- | |||
--><tr><!-- | |||
--><td>{{Item|size=50|%page_name%|notext=1}}</td><!-- | |||
--><td>[[%page_name%]]</td><!-- | |||
--><td>%realname%</td><!-- | |||
--><td>%birthday%</td><!-- | |||
--><td>%role%</td><!-- | |||
--><td><nowiki>{{#if:%galaxy%|{{Item|%galaxy%}}}}</nowiki></td><!-- | |||
--><td><nowiki>{{Item List|%loves%}}</nowiki></td><!-- | |||
--><td><nowiki>{{List|%likes%}}</nowiki></td><!-- | |||
--><td><nowiki>{{List|%dislikes%}}</nowiki></td><!-- | |||
--></tr> | |||
|footer = </table> | |||
}} | }} | ||