Jump to content

Template:Terminology Infobox/doc: Difference between revisions

From The Petit Planet Wiki
mNo edit summary
No edit summary
Line 17: Line 17:
* {{F|subtitle}} – Subtitle of the terminology.
* {{F|subtitle}} – Subtitle of the terminology.
* {{F|image}} – Image of the terminology.
* {{F|image}} – Image of the terminology.
* {{F|image_class}} – Add a class for the image. Notable classes:
* {{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|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|night-invert-image}} – Invert the image in night/dark mode. Will invert dark-colored icons to white in night/dark mode.
* {{F|images}} – Multiple images and tabs for the terminology.
* {{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
** 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>
<syntaxhighlight lang="wikitext" style="margin-left:25px;" copy>
Line 93: Line 93:
"image_class": {
"image_class": {
"label": "Image class",
"label": "Image class",
"description": "Add a class for the image.",
"description": "Add a class for <image>.",
"example": "day-invert-image, night-invert-image",
"example": "day-invert-image, night-invert-image",
"type": "content"
"type": "content"
Line 99: Line 99:
"images": {
"images": {
"label": "Images",
"label": "Images",
"description": "Multiple images and tabs for the terminology.",
"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",
"example": "Image 1.ext:Tab 1 name:image-1-class; Image 2.ext:Tab 2 name:image-2-class",
"type": "content"
"type": "content"

Revision as of 08:39, 6 May 2026

This is the documentation page for Terminology Infobox.
It contains usage information, categories, and other content not part of the original template page.
This template uses Module:Infobox, a script written in Lua.
This template uses CSS found at MediaWiki:Gadget-Infobox.css.

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.
  • 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.
  • 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.
}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

{{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.
}}
Example 2
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

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 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.
}}
Example 3
Subtitle example
Invert in light mode
Invert in dark mode
No class
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Template Data

Template that creates an infobox for terminology.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Name of the terminology.

Stringsuggested
Subtitlesubtitle

Subtitle of the terminology.

Stringoptional
Imageimage

Image of the terminology.

Example
Image.ext
Filesuggested
Image classimage_class

Add a class for <image>.

Example
day-invert-image, night-invert-image
Contentoptional
Imagesimages

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
Contentoptional
Typetype

Type(s) of terminology as a semicolon separated list.

Contentoptional
Groupgroup

Group(s) for the terminology as a semicolon separated list.

Contentoptional
Eventevent

Event(s) the terminology is featured in as a semicolon separated list.

Contentoptional
Descriptiondescription

Description of terminology.

Contentoptional