Template:AlertSmall

From Step Mods | Change The Game
Revision as of 15:52, August 2, 2021 by Z929669 (talk | contribs)

Forum Topic

Purpose & Usage[edit source]

This template displays a small alert on the page that can also be used within lists. For this reason, this alert has all but top outer margins set to zero, so use blank lines or breaks to separate from body text where appropriate. This template is intended for use with brief alerts or alerts used within lists. For more lengthy and prominent alerts, use Template:Alert instead.

Required Parameters[edit source]

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

Values
Default: type=notice
  • bug
  • wip or construction
  • loot - LOOT specific
  • mcm - Mod Confuguration Manager specific
  • mo or mo2 - 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 or mo2
  • note or notice
  • warn or warning

Examples[edit source]

Default Call[edit source]

The simplest call returns defaults for the template.

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

Width is automatic, and text wraps, but this template is intended for use with brief alerts or alerts used in lists. For more lengthy alerts, use Template:Alert instead.

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.

Within Lists[edit source]

Use in lists is appropriate.

Code:
* List item 1
*: {{AlertSmall|text='Silent' indented bullet list item}}
* List item 2
Result:
  • List item 1
    Info-Logo.png
    NOTE:
    'Silent' indented bullet list item

  • List item 2
Code:
# List item 1
# List item 2<br>{{AlertSmall|text={{lorem}} }}
# List item 3
Result:
  1. List item 1
  2. List item 2
    Info-Logo.png
    NOTE:
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

  3. List item 3

Types[edit source]

The simplest call returns defaults for the template.

Code: {{AlertSmall|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:
MO2-specific message

Warning-Logo.png
WARNING:
Warning message

Related Templates[edit source]

  • Template:Alert - A more prominent alert that will NOT work in lists as this version does.