Text Formatting: Difference between revisions

255 bytes added ,  08:24, 31 May 2016
m
Made examples how the spans look like in action.
imported>Ikarrus
No edit summary
imported>Kosmos
m (Made examples how the spans look like in action.)
 
Line 7: Line 7:




{|
|<pre>user << "<span class='notice'>You begin welding the vent...</span>"</pre>
|<span style="color:blue">You begin welding the vent...</span>
|}
This is a notice. Notices show up in simple blue text, and are used for benign informational messages. This notice ends with "...", which implies that the action will take a period of time to complete.


<pre>
<nowiki>user << "<span class='notice'>You begin welding the vent...</span>"</nowiki>
</pre>


This is a notice. Notices show up in simple blue text, and are used for benign informational messages. This notice ends with "...", which implies that the action will take a period of time to complete.
{|
|<pre>user << "<span class='warning'>You can't vent crawl while you're stunned!</span>"</pre>
|<span style="color:red">''You can't vent crawl while you're stunned!''</span>
|}


<pre>
This is a warning! It shows up as simple red text, and are used for things like restriction notifications, machines malfunctioning,
<nowiki>user << "<span class='warning'>You can't vent crawl while you're stunned!</span>"</nowiki>
</pre>


This is a warning! It shows up as simple red text, and are used for things like restriction notifications, machines malfunctioning,


<pre>
{|
<nowiki>user.visible_message("<span class='danger'>[user.name] was shocked by the [src.name]!</span>", \</nowiki>
|<pre>user.visible_message("<span class='danger'>[user.name] was shocked by the [src.name]!</span>"</pre>
</pre>
|<span style="color:red">'''John Smith''' was shocked by the door!</span>
|}


This is danger! This is heavier red text, used in situations where someone other than yourself is being harmed or having some other potentionally harmful action taken against them, such as cuffing.
This is danger! This is heavier red text, used in situations where someone other than yourself is being harmed or having some other potentionally harmful action taken against them, such as cuffing.


<pre>
 
<nowiki>target << "<span class='userdanger'>You are absorbed by the changeling!</span>"</nowiki>
{|
</pre>
|<pre>target << "<span class='userdanger'>You are absorbed by the changeling!</span>"</pre>
|<span style="font-size:125%;color:red">'''You are absorbed by the changeling!'''</span>
|}


This is userdanger! Userdanger is used in only one situation: when the person receiving the text message is being directly harmed, such as from attacks or antagonist abilities.
This is userdanger! Userdanger is used in only one situation: when the person receiving the text message is being directly harmed, such as from attacks or antagonist abilities.
Anonymous user