Jump to content

Template:Alert list

From Meta, a Wikimedia project coordination wiki
Template documentation

Usage

[edit]
{{Alert list
| type1 = discuss
| msg1 = A new section has appeared on [[Talk:Michael Jackson]].
| action1 = '''[[#|Respond to talk page thread]]'''
| time1 = 20:12, 28 April 2023 (UTC)

| icon2 = Font Awesome 5 solid exclamation-circle.svg
| label2 = New Wikipedia article
| msg2 = [[Michael Jackson]] was added to Wikipedia.
| time2 = 19:53, 28 April 2023 (UTC)

| icon3 = Font Awesome 5 solid asterisk.svg
| label3 = Alerts are set up!
}}

Parameters

[edit]
  • typeN: (Optional) The type of the alert at index N. The module includes a predefined set of alert types with associated icons and labels. If you don't provide a custom icon or label, the module will use the icon and label associated with the specified type. If you don't provide a type, you are required to provide your own icon and label.
  • iconN: (Optional) The custom icon to use for the alert at index N. Should be the file name of an image hosted on the wiki. If not provided, the module will use the icon associated with the specified type.
  • labelN: (Optional) The custom label to use for the alert at index N. If not provided, the module will use the label associated with the specified type.
  • msgN: (Optional) The message to display for the alert at index N.
  • actionN: (Optional) The action to display for the alert at index N.
  • timeN: (Optional) The timestamp to display for the alert at index N.

N should be a positive integer, and you can create as many alerts as needed by incrementing the index.