User:Stevium/sandbox2: Difference between revisions

No edit summary
Bucket test
Line 1: Line 1:
<pre>
==All neighbors==
{{#DPL:
{{#invoke:Bucket|get|neighbors
|namespace = File
|select = page_name, realname, birthday, role, galaxy, loves, likes, dislikes
|uses    = Template:File/Video
|where = {{{where|}}}
|category = Files by Date
|filter = {{{filter|}}}
|include  = {File/Video}:ytlink
|order by = page_name
|listseparators = <div style="display:flex; gap:8px;">,<div>²{#ev:youtube¦,¦310}²</div>,</div>
 
|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>
}}
}}
</pre>
 
{{#DPL:
==Select neighbors==
|namespace = File
===By loves===
|uses    = Template:File/Video
{{#invoke:Bucket|get|neighbors
|category = Files by Date
|select = page_name, realname, birthday, role, galaxy, loves, likes, dislikes
|include  = {File/Video}:ytlink
|where = (loves="Caterpillar Fungus Herbal Remedy")
|listseparators = <div style="display:flex; gap:8px;">,<div>²{#ev:youtube¦,¦310}²</div>,</div>
|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>
}}
}}