Template:Item/doc: Difference between revisions

Added "invert" parameter that can apply an invert filter on the icon for either light or dark mode
No edit summary
 
Line 17: Line 17:
* {{F|no_text}} – Set to {{F|1}} to omit the complete text.
* {{F|no_text}} – Set to {{F|1}} to omit the complete text.
* {{F|invert}} – Set to apply a filter to the image for either day/light or night/dark mode. Available values:
* {{F|invert}} – Set to apply a filter to the image for either day/light or night/dark mode. Available values:
** Default – See: [[Module:Item/Invert]].
** {{F|Day}} – Invert the image in day/light mode. Will invert light-colored icons to gray in day/light mode.
** {{F|Day}} – Invert the image in day/light mode. Will invert light-colored icons to gray in day/light mode.
** {{F|Night}} – Invert the image in night/dark mode. Will invert dark-colored icons to white in night/dark mode.
** {{F|Night}} – Invert the image in night/dark mode. Will invert dark-colored icons to white in night/dark mode.
Line 32: Line 33:
{{Example|no_copy=1|<nowiki>{{Item|Kabuto Beetle|link=Insect|text=Custom text}}</nowiki>}}
{{Example|no_copy=1|<nowiki>{{Item|Kabuto Beetle|link=Insect|text=Custom text}}</nowiki>}}
{{Example|no_copy=1|<nowiki>{{Item|Dough|x=15|no_text=1}}</nowiki>}}
{{Example|no_copy=1|<nowiki>{{Item|Dough|x=15|no_text=1}}</nowiki>}}
{{Example|no_copy=1|<nowiki>{{Item|Hexia|invert=Day|note=Galaxy}}</nowiki>}}
{{Example|no_copy=1|<nowiki>{{Item|Hexia|note=Galaxy}}</nowiki>}}
{{Example|no_copy=1|<nowiki>{{Item|Elsasani|text="Sani"|dot=1}}</nowiki>}}
{{Example|no_copy=1|<nowiki>{{Item|Elsasani|text="Sani"|dot=1}}</nowiki>}}