| Latest revision |
Your text |
| Line 1: |
Line 1: |
| {{Documentation/Header}} | | {{Documentation/Header}} |
| {{Lua|Infobox}}
| | ==Example== |
| {{CSS|Gadget-Infobox}}
| |
| Template that creates an infobox for [[:Category:Terminology|terminology]].
| |
| | |
| ==Syntax== | |
| <syntaxhighlight lang="wikitext" copy>
| |
| {{Terminology Infobox | | {{Terminology Infobox |
| |name = | | |title = Something |
| |image = | | |image = Petit Planet Icon.png |
| |type = | | |type = HoYoverse |
| |group =
| |
| |description =
| |
| }} | | }} |
| </syntaxhighlight> | | <pre> |
| * {{F|name}} – Name of the terminology.
| |
| * {{F|subtitle}} – Subtitle of the terminology.
| |
| * {{F|image}} – Image of the terminology {{Color|New|including}} the file extension.
| |
| * {{F|image_class}} – Add a class for {{F|image|v=1}}. Notable classes:
| |
| ** {{F|day-invert-image}} – Invert the image in day/light mode. Will invert light-colored icons to gray in day/light mode.
| |
| ** {{F|night-invert-image}} – Invert the image in night/dark mode. Will invert dark-colored icons to white in night/dark mode.
| |
| ** {{F|light-background}} – Add a light-colored background to the image.
| |
| ** {{F|dark-background}} – Add a dark-colored background to the image.
| |
| ** {{F|image-padding}} – Add a {{F|15px}} padding to the image.
| |
| * {{F|images}} – Multiple images, tabs, and classes for the terminology.
| |
| ** Format: {{F|Image 1.ext:Tab 1 name; Image 2.ext:Tab 2 name; ... ; Image N.ext:Tab N name}} or
| |
| <syntaxhighlight lang="wikitext" style="margin-left:25px;" copy>
| |
| Image 1.ext:Tab 1 name:image-1-class;
| |
| Image 2.ext:Tab 2 name:image-2-class;
| |
| ... ;
| |
| Image N.ext:Tab N name:image-N-class
| |
| </syntaxhighlight>
| |
| * {{F|type}} – Type(s) of terminology as a semicolon separated list.
| |
| * {{F|group}} – Group(s) for the terminology as a semicolon separated list.
| |
| * {{F|event}} – Event(s) the terminology is featured in as a semicolon separated list.
| |
| * {{F|description}} – Description of terminology.
| |
| | |
| ==Examples==
| |
| ===Single Image===
| |
| {{Example|<nowiki>
| |
| {{Terminology Infobox | | {{Terminology Infobox |
| |name = Example 1 | | |title = Something |
| |image = Petit Planet App Icon.png | | |image = Petit Planet Icon.png |
| |type = Type example 1a; Type example 1b; Type example 1c | | |type = HoYoverse |
| |group = Group example 1a; Group example 1b
| |
| |description = Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
| |
| }} | | }} |
| </nowiki>}} | | </pre> |
| {{Clr}}
| |
| {{Example|<nowiki>
| |
| {{Terminology Infobox
| |
| |name = Example 2
| |
| |image = Hexia Icon.png
| |
| |image_class = day-invert-image
| |
| |description = Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
| |
| }}
| |
| </nowiki>}}
| |
| {{Clr}}
| |
| ===Multiple Images===
| |
| {{Example|<nowiki>
| |
| {{Terminology Infobox
| |
| |name = Example 3
| |
| |subtitle = Subtitle example
| |
| |images =
| |
| Hexia Icon.png:Invert in light mode:day-invert-image;
| |
| CSS Logo.svg:Invert in dark mode:night-invert-image;
| |
| Petit Planet Wordmark.png:Light background and padding:light-background image-padding;
| |
| Petit Planet Wordmark (White).png:Dark background and padding:dark-background image-padding;
| |
| Petit Planet App Icon.png:No class
| |
| |type = Type example 3a
| |
| |group = Group example 3a; Group example 3b; Group example 3c
| |
| |description = Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
| |
| }}
| |
| </nowiki>}}
| |
| {{Clr}}
| |
| ==Template Data==
| |
| <templatedata> | | <templatedata> |
| { | | { |
| "params": { | | "params": { |
| "name": { | | "title": { |
| "label": "Name",
| |
| "description": "Name of the terminology.",
| |
| "type": "string",
| |
| "suggested": true | | "suggested": true |
| },
| |
| "subtitle": {
| |
| "label": "Subtitle",
| |
| "description": "Subtitle of the terminology.",
| |
| "type": "string"
| |
| }, | | }, |
| "image": { | | "image": { |
| "label": "Image",
| |
| "description": "Image of the terminology including the file extension.",
| |
| "example": "Image.ext",
| |
| "type": "wiki-file-name",
| |
| "suggested": true | | "suggested": true |
| }, | | }, |
| "image_class": { | | "caption": {}, |
| "label": "Image class",
| |
| "description": "Add a class for <image>.",
| |
| "example": "day-invert-image, night-invert-image, light-background, dark-background, image-padding",
| |
| "type": "content"
| |
| },
| |
| "images": {
| |
| "label": "Images",
| |
| "description": "Multiple images, tabs, and classes for the terminology.",
| |
| "example": "Image 1.ext:Tab 1 name:image-1-class; Image 2.ext:Tab 2 name:image-2-class",
| |
| "type": "content"
| |
| },
| |
| "type": { | | "type": { |
| "label": "Type", | | "suggested": true |
| "description": "Type(s) of terminology as a semicolon separated list.",
| |
| "type": "content"
| |
| },
| |
| "group": {
| |
| "label": "Group",
| |
| "description": "Group(s) for the terminology as a semicolon separated list.",
| |
| "type": "content"
| |
| },
| |
| "event": {
| |
| "label": "Event",
| |
| "description": "Event(s) the terminology is featured in as a semicolon separated list.",
| |
| "type": "content"
| |
| }, | | }, |
| "description": { | | "type2": {}, |
| "label": "Description",
| | "type3": {}, |
| "description": "Description of terminology.",
| | "type4": {}, |
| "type": "content"
| | "type5": {} |
| }
| |
| }, | | }, |
| "description": "Template that creates an infobox for terminology.", | | "sets": [], |
| "format": "block" | | "maps": {}, |
| | "description": "Infobox for Terminology.", |
| | "paramOrder": [ |
| | "title", |
| | "image", |
| | "caption", |
| | "type", |
| | "type2", |
| | "type3", |
| | "type4", |
| | "type5" |
| | ], |
| | "format": "{{_\n|____________ = _\n}}\n" |
| } | | } |
| </templatedata> | | </templatedata> |