Difference between revisions of "Template:Filters"
(symbols for which filters an item goes through) |
|||
Line 6: | Line 6: | ||
|{{#ifeq: {{#sub:{{{1}}}|3|1}} | o | | style="opacity: 0.5; background-color: #aaa"}} |[[File:Grid Grate.png|20px|link=]] | |{{#ifeq: {{#sub:{{{1}}}|3|1}} | o | | style="opacity: 0.5; background-color: #aaa"}} |[[File:Grid Grate.png|20px|link=]] | ||
|{{#ifeq: {{#sub:{{{1}}}|4|1}} | o | | style="opacity: 0.5; background-color: #aaa"}} |[[File:Grid Slats.png|20px|link=]] | |{{#ifeq: {{#sub:{{{1}}}|4|1}} | o | | style="opacity: 0.5; background-color: #aaa"}} |[[File:Grid Slats.png|20px|link=]] | ||
− | |{{#ifeq: {{#sub:{{{1}}}|5|1}} | o | | style="opacity: 0.5; background-color: #aaa"}} |[[File:Grid Wicker.png|20px|link=]] | + | |{{#ifeq: {{#sub:{{{1}}}|5|1}} | o | | style="opacity: 0.5; background-color: #aaa"}} |[[File:Grid Wicker Pane.png|20px|link=]] |
|} | |} | ||
</includeonly> | </includeonly> |
Latest revision as of 19:48, 27 December 2018
This template creates a row of icons for the six hopper filters with some of them grayed out, intended for use to show which filters an item can pass through:
Code | Result | ||||||
---|---|---|---|---|---|---|---|
{{Filters|xxxxxx}} |
| ||||||
{{Filters|oooooo}} |
| ||||||
{{Filters|ooooxx}} |
| ||||||
{{Filters|oxxoxo}} |
|
Takes a single argument where each character indicates whether the corresponding icon is grayed out or not in left-to-right order; o
means that it will not be grayed out while any other character means that it will.