Template:Item/doc: Difference between revisions

Updated
Added "invert" parameter that can apply an invert filter on the icon for either light or dark mode
Line 16: Line 16:
* {{F|text}} – Display another text instead of the name of the item.
* {{F|text}} – Display another text instead of the name of the item.
* {{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|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|note}} – Append a note after the item text and count.
* {{F|note}} – Append a note after the item text and count.
* {{F|ref}} – Append a reference to the item text.
* {{F|ref}} – Append a reference to the item text.
Line 29: Line 32:
{{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|note=Galaxy}}</nowiki>}}
{{Example|no_copy=1|<nowiki>{{Item|Hexia|invert=Day|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>}}


Line 116: Line 119:
"example": "1",
"example": "1",
"type": "boolean"
"type": "boolean"
},
"invert": {
"label": "Invert",
"description": "Set to apply a filter to the image for either day/light or night/dark mode.",
"example": "Day, Night",
"type": "string"
}
}
},
},
Line 127: Line 136:
"link",
"link",
"no_text",
"no_text",
"invert",
"note",
"note",
"ref",
"ref",