NOTICE:
This is a component page used internally by the SCP Wiki. It is intended to be used and included on other pages.
What is This?
This is a component by Queerious, that allows you to include emails within your article that dynamically format based on screen size. This also comes with branding for the Foundation and a place to include a profile picture for your characters.
With this component, you get the joy of clean code to define your emails, all while avoiding having to interact with any tables!
To use this component, follow the steps below!
Step 1 - The Code
At the top of your page, you will need to include the following line of code:
[[include :scp-wiki:component:dynamic-emails code=--]]
The above line only needs to be included once at the top of your article.
Step 2 - The Email
Wherever you would like to place an email in your work, you need to include the following code in total:
[[include :scp-wiki:component:dynamic-emails start=--
|from= sender@scp.int
|to= receiver@scp.int
|cc= copied@scp.int
|subject= Email Subject
]]
This is where the raw text goes, the entire body of your email. You can just write this as desired, including custom **formatting** or ##red|color## changes, and there should be no issues.
[[include :scp-wiki:component:dynamic-emails end=--
|name= Sender's Name
|title= Foundation Researcher
|signoff= Secure, Contain, Protect
|signoff-icon= https://scp-wiki.wikidot.com/local--files/component:dynamic-emails/Default_Profile_Icon.png
]]
There's a lot going on here, so let's break it down some more.
Step 2.1: The Start Include
Include for the start of the email: ↦
Text that appears in the 'from' field: ↦
Text that appears in the 'to' field ↦
Text that appears in the 'CC' field ↦
Text that appears in the 'Subject' field ↦
The end for the start include. ↦
[[include :scp-wiki:component:dynamic-emails start=--
|from= sender@scp.int
|to= receiver@scp.int
|cc= copied@scp.int
|subject= Email Subject
]]
You are able to put any text into the above fields, with the following restrictions:
- You are unable to format the text in the from/to/cc field using CSS, due to it being parsed as plaintext, to prevent a hyperlink from being created.
To modify the color of the text in those fields, use the following code within your CSS Module:
.top-middle-box > .from-name-box, .to-name-box, .cc-text-box{
color: #b01;
}
Any color can be used. To change a single field, delete the other 'name-box' references.
NOTE: If you do not want to have a CC field, simply enter:
|cc=none
This will hide the fields.
Step 2.2: The Email Text
The email body itself goes here. This can take any formatting for the text, as well as hyperlinks and more. You can also include other divs and anything else you want! (Can't 100% promise it will work, but it should!
This section should go right after the ]] from the start include as such:
This is where the raw text goes. You can write whatever you want here, and it should format it correctly! There's nothing else special you need to do, this will just go between the start and end includes!
Step 2.3: The End Include
Include for the ending of the email: ↦
The sender's name in the signature: ↦
The sender's title in the signature: ↦
The sign-off in the signature ↦
URL Link to the profile image ↦
The end for the include. ↦
[[include :scp-wiki:component:dynamic-emails end=--
|name= Sender's Name
|title= Foundation Researcher
|signoff= Secure, Contain, Protect
|signoff-icon= https://URL.website
]]
You are able to put any text into the name, title and signoff fields, with standard CSS formatting.
The 'signoff-icon' specifically takes an image URL, and will resize it to fit in the given space. For convenience, a default blank profile icon is included here:
https://scp-wiki.wikidot.com/local--files/component:dynamic-emails/Default_Profile_Icon.png
If you do not want anything to appear, instead include this link, which is a transparent image, as leaving this field empty causes the module to display incorrectly.
https://scp-wiki.wikidot.com/local--files/component:dynamic-emails/transparent.png
If you did everything right, you will have an email that looks something like this:
Step Bonus: Attachment Variant
As an alternative option, this component also supports emails with image attachments! To give your email an attachment, instead of following 'Step 2.3: The End Include', use the following code block:
[[include :scp-wiki:component:dynamic-emails attachment-end=--
|name= Name
|title= Title
|signoff= Secure, Contain, Protect
|signoff-icon= https://scp-wiki.wikidot.com/local--files/component:dynamic-emails/Default_Profile_Icon.png
|attachment= https://scp-wiki.wikidot.com/local--files/component:dynamic-emails/Default_Profile_Icon.png
]]
The main differences have been bolded in the example above, but the only element you need to pay attention to is the "|attachment=" field. This field takes any image URL, and will appear as below:
The attachment is a collapsible, that when clicked, reveals the attached image:
One Last Thing…
This component is should be compatible with any Sigma, Basalt and BHL themes! If you run into technical issues, please let






