User:DoubleYou/Sandbox/Alert: Difference between revisions

From Step Mods | Change The Game
(Created page with "<includeonly>{| class="alertLarge" style="border-color:#{{#switch:{{{bordercolor|{{{type}}}}}} |bug=3d9837 |construction=77749e |mcm=a9843f |mo=5293c1 |notice=3974b3 |warning=...")
 
No edit summary
 
Line 7: Line 7:
|warning=c13543
|warning=c13543
|#default=3974b3}};background:#{{#switch:{{{bgcolor|{{{type}}}}}}
|#default=3974b3}};background:#{{#switch:{{{bgcolor|{{{type}}}}}}
|bug=3d9837b5
|bug=3d983742
|construction=77749eb5
|construction=77749e42
|mcm=a9843fb5
|mcm=a9843f42
|mo=5293c1b5
|mo=5293c142
|notice=3974b3b5
|notice=3974b342
|warning=c13543b5
|warning=c1354342
|#default=3974b3b5}};width:{{#if:{{{size|}}}|{{#switch:{{{size|}}}
|#default=3974b342}};width:{{#if:{{{size|}}}|{{#switch:{{{size|}}}
|max=70
|max=70
|mid=55
|mid=55
Line 40: Line 40:
{{#css:
{{#css:
.alertLarge{
.alertLarge{
background-color: #3974b3b5;
background-color: #3974b342;
box-shadow: 0 0 15px -2px #00000078;
box-shadow: 0 0 15px -2px #00000078;
border: 2px solid #3974b3;
border: 2px solid #3974b3;
border-collapse: inherit;
border-collapse: inherit;
border-radius: 5px !important;
border-radius: 5px !important;
color: #000;
margin: 1rem auto;
margin: 1rem auto;
}
}

Latest revision as of 23:35, January 3, 2021


{{#css: .alertLarge{ background-color: #3974b342; box-shadow: 0 0 15px -2px #00000078; border: 2px solid #3974b3; border-collapse: inherit; border-radius: 5px !important; margin: 1rem auto; }

.alertLarge td{ padding: 0.5rem; vertical-align: top; }

.alertType{ font-weight: bolder; font-size: larger; padding-bottom: 0 !important; }

.alertImg{ width: 35px; padding-bottom: 0 !important; } }}

Purpose & Usage[edit | edit source]

This template displays a blocked out "alert" on the page.

Required Parameters[edit | edit source]

type
Defined: type=keyword
Determines the style of alert to display. The options are:
  • bug : a general bug notice.
  • construction : an "under construction" alert.
  • mcm : a MCM notice.
  • mo : a Mod Organizer user notice.
  • notice : a general notice.
  • warning : a warning.
text
Defined: text=textHere
Defines the content for the notification. Most formatting is accepted.

Optional Parameters[edit | edit source]

size
Default: max
Determines the width by percentage. Accepts any integer from 0 - 100, but standard sizes are preferred using the appropriate keyword:
  • min = 30%
  • mid = 55%
  • max = 70%

Examples[edit | edit source]

General Notice[edit | edit source]

This is the template's default thus leaving the type parameter out will result in a general notification. Thus the following two codings will have the same results:

Code: {{User:DoubleYou/Sandbox/Alert|text=Your text here.}}
Code:
{{User:DoubleYou/Sandbox/Alert|type=notice|text=Your text here, and it's a lot of text with a list even:
* list item 1
* list item 2
... and that's it.}}


Result:
Info-Logo.png Notice:
Your text here, and it's a lot of text with a list even:
  • list item 1
  • list item 2

... and that's it.

Bug[edit | edit source]

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

Construction[edit | edit source]

Code: {{User:DoubleYou/Sandbox/Alert|type=construction|text=Your text here.}}
Result:
Weapon.png Under Construction:
Your text here.

MCM[edit | edit source]

Code: {{User:DoubleYou/Sandbox/Alert|type=mcm|text=Your text here.}}
Result:
Mcmicon1.png Mod Configuration Menu:
Your text here.

Mod Organizer[edit | edit source]

Code: {{User:DoubleYou/Sandbox/Alert|type=mo|text=Your text here.}}
Result:
Moicon.png MO Users:
Your text here.

Warning[edit | edit source]

Code: {{User:DoubleYou/Sandbox/Alert|type=warning|text=Your text here.}}
Result:
Warning-Logo.png Warning:
Your text here.

Adjusting the Size[edit | edit source]

Altering the size (%) using a defined keyword.

Code: {{User:DoubleYou/Sandbox/Alert|type=warning|size=mid|text=Your text here.}}
Result:
Warning-Logo.png Warning:
Your text here.

Explicitly define a size (%) using an integer between 0 - 100.

Code: {{User:DoubleYou/Sandbox/Alert|type=warning|size=25|text=Your text here.}}
Result:
Warning-Logo.png Warning:
Your text here.

Related Templates[edit | edit source]