Template:Terminology Infobox: Difference between revisions
ReisuDesign (talk | contribs) Created page with "<includeonly><infobox> <title source="title"> <default>{{PAGENAME}}</default> </title> <image source="image"> <caption source="caption"/> </image> <data source="type"> <label>Type</label> <format>{{Link List|{{{type}}}}}</format> </data> <data source="group"> <label>Group</label> <format>{{Link List|{{{group}}}}}</format> </data> <data source="description"> <format>'''Description'''<br>{{{description}}}</format> </data> </infobox></includeonly>..." |
actually add categorization to this maybe. |
||
| Line 1: | Line 1: | ||
<includeonly><infobox> | <includeonly><infobox> | ||
<title source="name"> | |||
<default>{{PAGENAME}}</default> | <default>{{PAGENAME}}</default> | ||
<format>{{#if:{{{icon|}}}|{{Icon|{{{name|}}}}}|}} {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}</format> | |||
</title> | </title> | ||
<header name="secondary_title">{{{subtitle|}}}</header> | |||
<image source="image"> | <image source="image"> | ||
<caption source="caption"/> | <caption source="caption"/> | ||
| Line 8: | Line 10: | ||
<data source="type"> | <data source="type"> | ||
<label>Type</label> | <label>Type</label> | ||
<format>{{ | <format>[[{{{type}}}]]{{#if:{{{type2|}}}|<br />[[{{{type2}}}]]}}{{#if:{{{type3|}}}|<br />[[{{{type3}}}]]}}{{#if:{{{type4|}}}|<br />[[{{{type4}}}]]}}{{#if:{{{type5|}}}|<br />[[{{{type5}}}]]}}</format> | ||
</data> | </data> | ||
<data source="group"> | <data source="group"> | ||
<label>Group</label> | <label>Group</label> | ||
<format>{{ | <format>[[{{{group}}}]]{{#if:{{{group2|}}}|<br />[[{{{group2}}}]]}}{{#if:{{{group3|}}}|<br />[[{{{group3}}}]]}}{{#if:{{{group4|}}}|<br />[[{{{group4}}}]]}}{{#if:{{{group5|}}}|<br />[[{{{group5}}}]]}}</format> | ||
</data> | </data> | ||
<data source="description"> | <data source="description"> | ||
< | <label>Description</label> | ||
</data> | </data> | ||
</infobox></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | <data source="event"> | ||
<label>Event</label> | |||
<format>[[{{{event}}}]]{{#if:{{{event2|}}}|<br />[[{{{event2|}}}]]|}}{{#if:{{{event3|}}}|<br />[[{{{event3|}}}]]|}}{{#if:{{{event4|}}}|<br />[[{{{event4|}}}]]|}}{{#if:{{{event5|}}}|<br />[[{{{event5|}}}]]|}}{{#if:{{{event6|}}}|<br />[[{{{event6|}}}]]|}}{{#if:{{{event7|}}}|<br />[[{{{event7|}}}]]|}}{{#if:{{{event8|}}}|<br />[[{{{event8|}}}]]|}}{{#if:{{{event9|}}}|<br />[[{{{event9|}}}]]|}}</format> | |||
</data> | |||
</infobox>{{Namespace|main=[[Category:Terminology]]<!-- | |||
Set page display title if title is different from page name | |||
-->{{#ifeq:{{NAMESPACE}}||<!-- | |||
-->{{#if:{{{title|}}}{{{displaytitle|}}}|{{#ifeq:{{{PAGENAME}}}|{{{title}}}||{{#ifeq:{{lc:{{{displaytitle|}}}}}|no||{{DISPLAYTITLE:{{{displaytitle|{{{title}}}}}}|noreplace}}}}}}}}<!-- | |||
-->}}<!-- | |||
-->{{#if:{{{type|}}}|[[Category:{{{type|}}}]]}}<!-- | |||
-->{{#if:{{{type2|}}}|[[Category:{{{type2|}}}]]}}<!-- | |||
-->{{#if:{{{type3|}}}|[[Category:{{{type3|}}}]]}}<!-- | |||
-->{{#if:{{{type4|}}}|[[Category:{{{type4|}}}]]}}<!-- | |||
-->{{#if:{{{type5|}}}|[[Category:{{{type5|}}}]]}}<!-- | |||
-->{{#if:{{{group|}}}|[[Category:{{{group|}}}]]}}<!-- | |||
-->{{#if:{{{group2|}}}|[[Category:{{{group2|}}}]]}}<!-- | |||
-->{{#if:{{{group3|}}}|[[Category:{{{group3|}}}]]}}<!-- | |||
-->{{#if:{{{group4|}}}|[[Category:{{{group4|}}}]]}}<!-- | |||
-->{{#if:{{{group5|}}}|[[Category:{{{group5|}}}]]}}<!-- | |||
-->{{#if:{{{event|}}}|[[Category:{{{event}}} Terminology]][[Category:Event Terminology]]}}<!-- | |||
-->{{#if:{{{event2|}}}|[[Category:{{{event2}}} Terminology]]}}<!-- | |||
-->{{#if:{{{event3|}}}|[[Category:{{{event3}}} Terminology]]}}<!-- | |||
-->{{#if:{{{event4|}}}|[[Category:{{{event4}}} Terminology]]}}<!-- | |||
-->{{#if:{{{event5|}}}|[[Category:{{{event5}}} Terminology]]}}<!-- | |||
-->{{#if:{{{event6|}}}|[[Category:{{{event6}}} Terminology]]}}<!-- | |||
-->{{#if:{{{event7|}}}|[[Category:{{{event7}}} Terminology]]}}<!-- | |||
-->{{#if:{{{event8|}}}|[[Category:{{{event8}}} Terminology]]}}<!-- | |||
-->{{#if:{{{event9|}}}|[[Category:{{{event9}}} Terminology]]}}<!-- | |||
-->}}</includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | |||
Revision as of 11:41, 16 November 2025
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Template that creates an infobox for terminology.
Syntax
{{Terminology Infobox
|name =
|image =
|type =
|group =
|description =
}}
- name – Name of the terminology.
- subtitle – Subtitle of the terminology.
- image – Image of the terminology including the file extension.
- image_class – Add a class for image. Notable classes:
- day-invert-image – Invert the image in day/light mode. Will invert light-colored icons to gray in day/light mode.
- night-invert-image – Invert the image in night/dark mode. Will invert dark-colored icons to white in night/dark mode.
- light-background – Add a light-colored background to the image.
- dark-background – Add a dark-colored background to the image.
- image-padding – Add a 15px padding to the image.
- images – Multiple images, tabs, and classes for the terminology.
- Format: Image 1.ext:Tab 1 name; Image 2.ext:Tab 2 name; ... ; Image N.ext:Tab N name or
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
- type – Type(s) of terminology as a semicolon separated list.
- group – Group(s) for the terminology as a semicolon separated list.
- event – Event(s) the terminology is featured in as a semicolon separated list.
- description – Description of terminology.
Examples
Single Image
{{Terminology Infobox
|name = Example 1
|image = Petit Planet App Icon.png
|type = Type example 1a; Type example 1b; Type example 1c
|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.
}}
<infobox> <title source="name"> <default>Terminology Infobox</default> <format> Example 1</format> </title> <header name="secondary_title"></header> <image source="image">
</image> <label>Type</label> <format>Type example 1a; Type example 1b; Type example 1c</format> <label>Group</label> <format>Group example 1a; Group example 1b</format> <label>Description</label> <label>Event</label> <format>[[{{{event}}}]]</format> </infobox>
{{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.
}}
<infobox> <title source="name"> <default>Terminology Infobox</default> <format> Example 2</format> </title> <header name="secondary_title"></header> <image source="image">
</image> <label>Type</label> <format>[[{{{type}}}]]</format> <label>Group</label> <format>[[{{{group}}}]]</format> <label>Description</label> <label>Event</label> <format>[[{{{event}}}]]</format> </infobox>Multiple Images
{{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.
}}
<infobox> <title source="name"> <default>Terminology Infobox</default> <format> Example 3</format> </title> <header name="secondary_title">Subtitle example</header> <image source="image">
</image> <label>Type</label> <format>Type example 3a</format> <label>Group</label> <format>Group example 3a; Group example 3b; Group example 3c</format> <label>Description</label> <label>Event</label> <format>[[{{{event}}}]]</format> </infobox>Template Data
Template that creates an infobox for terminology.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Name of the terminology. | String | suggested |
| Subtitle | subtitle | Subtitle of the terminology. | String | optional |
| Image | image | Image of the terminology including the file extension.
| File | suggested |
| Image class | image_class | Add a class for <image>.
| Content | optional |
| Images | images | Multiple images, tabs, and classes for the terminology.
| Content | optional |
| Type | type | Type(s) of terminology as a semicolon separated list. | Content | optional |
| Group | group | Group(s) for the terminology as a semicolon separated list. | Content | optional |
| Event | event | Event(s) the terminology is featured in as a semicolon separated list. | Content | optional |
| Description | description | Description of terminology. | Content | optional |