Template:Alert: Difference between revisions

From Step Mods | Change The Game
mNo edit summary
m (Undo revision 166915 by Z929669 (talk))
Tag: Undo
Line 5: Line 5:
|loot=myellow
|loot=myellow
|mcm=msalmon
|mcm=msalmon
|mo2
|mo=mpurple
|mo=mpurple
|note
|note
Line 16: Line 17:
|loot=loot.png
|loot=loot.png
|mcm=Mcmicon1.png
|mcm=Mcmicon1.png
|mo2
|mo=Moicon.png
|mo=Moicon.png
|note
|note
Line 27: Line 29:
|loot=LOOT
|loot=LOOT
|mcm=MCM
|mcm=MCM
|mo2
|mo=MO2
|mo=MO2
|note
|note
Line 46: Line 49:
:* loot - LOOT specific
:* loot - LOOT specific
:* mcm - Mod Confuguration Manager specific
:* mcm - Mod Confuguration Manager specific
:* mo - Mod Organizer 2 specific
:* mo - Mod Organizer specific
:* ''note'' or ''notice''
:* ''note'' or ''notice''
:* warn or warning
:* warn or warning
Line 98: Line 101:
:: {{Alert|type=loot|text=Loot-specific message}}
:: {{Alert|type=loot|text=Loot-specific message}}
:: {{Alert|type=mcm|text=MCM-specific message}}
:: {{Alert|type=mcm|text=MCM-specific message}}
:: {{Alert|type=mo|text=MO2-specific message}}
:: {{Alert|type=mo|text=MO-specific message}}
:: {{Alert|type=warn|text=Warning message}}
:: {{Alert|type=warn|text=Warning message}}



Revision as of 17:00, October 14, 2021

Forum Topic

Purpose & Usage[edit source]

This template displays a standard and prominent alert message. This alert should be used sparingly and is NOT intended for use within lists. For brief and prominent alerts suitable for use within lists, use Template:AlertSmall instead.

Required Parameters[edit source]

type - Sets the type of alert, which dictates icon and color

Values
Default: type=notice
  • bug
  • wip or construction - work in progress
  • loot - LOOT specific
  • mcm - Mod Confuguration Manager specific
  • mo - Mod Organizer specific
  • note or notice
  • warn or warning

text - The alert message

Values
Default: n/a, text=ContentHere

Optional Parameters[edit source]

icon - Determines the icon used

Values
Default: icon=notice
  • bug
  • wip or construction
  • loot
  • mcm
  • mo
  • note or notice
  • warn or warning

Examples[edit source]

Default Call[edit source]

The simplest call returns defaults for the template.

Code: {{Alert|text=Your text here.}}
Result:
Info-Logo.png

NOTE

Your text here.

Info-Logo.png

NOTE

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam condimentum pretium tellus nec scelerisque. Nam nisi magna, venenatis at nibh quis, consequat pretium velit. Mauris fringilla mollis molestie. Fusce tellus justo, tempor id efficitur non, dapibus eu nunc. Integer nec hendrerit diam. Quisque aliquet nunc id vestibulum tincidunt. Vivamus dictum rutrum dolor auctor commodo.

Including Lists[edit source]

Code:
{{Alert|text=Using wiki markup like lists with this alert is appropriate.
# For numbered
#* Bulleted
#: or mixed lists
Behavior should mimic body text.
}}
Result:
Info-Logo.png

NOTE

Using wiki markup like lists with this alert is appropriate.

  1. For numbered
    • Bulleted
    or mixed lists

Behavior should mimic body text.

Types[edit source]

The simplest call returns defaults for the template.

Code: {{Alert|type=bug|text=Your text here.}}
Result:
Bug-Logo.png

BUG

Bug message

Weapon.png

WIP

Under construction (WIP) message

Loot.png

LOOT

Loot-specific message

Mcmicon1.png

MCM

MCM-specific message

Moicon.png

MO2

MO-specific message

Warning-Logo.png

WARNING

Warning message

Related Templates[edit source]

  • Template:AlertSmall - A more subtle version suitable for brief messages or messages within lists.