<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.splurt.space/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Text_Formatting</id>
	<title>Text Formatting - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.splurt.space/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Text_Formatting"/>
	<link rel="alternate" type="text/html" href="https://wiki.splurt.space/mediawiki/index.php?title=Text_Formatting&amp;action=history"/>
	<updated>2026-05-15T23:12:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://wiki.splurt.space/mediawiki/index.php?title=Text_Formatting&amp;diff=2257&amp;oldid=prev</id>
		<title>imported&gt;SpaceManiac: Remove &quot;Game Resources&quot; category</title>
		<link rel="alternate" type="text/html" href="https://wiki.splurt.space/mediawiki/index.php?title=Text_Formatting&amp;diff=2257&amp;oldid=prev"/>
		<updated>2020-12-04T03:35:09Z</updated>

		<summary type="html">&lt;p&gt;Remove &amp;quot;Game Resources&amp;quot; category&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;So you&amp;#039;re making some code to do something, and you&amp;#039;d like to use a chat-pane text message to inform the players about it. Good for you! Now, there&amp;#039;s a few things to know when doing this.&lt;br /&gt;
&lt;br /&gt;
== Use Span Classes Goddamn ==&lt;br /&gt;
Span classes allow for &amp;#039;&amp;#039;&amp;#039;consistent&amp;#039;&amp;#039;&amp;#039; and informative text formatting.&lt;br /&gt;
&lt;br /&gt;
You may be familiar with span classes if you have previous experience with HTML. There are various types of classes, which can all be found in interface/stylesheet.dm. Make sure to use the appropriate one for the situation!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== When you observe someone else doing something ====&lt;br /&gt;
&amp;lt;pre&amp;gt;user.visible_message(&amp;quot;[user] begins welding [src].&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
John Smith begins welding the vent.&lt;br /&gt;
&lt;br /&gt;
:This one has &amp;#039;&amp;#039;&amp;#039;no span class&amp;#039;&amp;#039;&amp;#039;. It&amp;#039;s when you see something mundane and boring.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== When you observe yourself doing something ====&lt;br /&gt;
&amp;lt;pre&amp;gt;to_chat(user, &amp;quot;&amp;lt;span class=&amp;#039;notice&amp;#039;&amp;gt;You begin welding the vent...&amp;lt;/span&amp;gt;&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;You begin welding the vent...&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:This is a &amp;#039;&amp;#039;&amp;#039;notice&amp;#039;&amp;#039;&amp;#039;. Notices show up in simple blue text, and are used for benign informational messages. This notice ends with &amp;quot;...&amp;quot;, which implies that the action will take a period of time to complete.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== When you can&amp;#039;t do something ====&lt;br /&gt;
&amp;lt;pre&amp;gt;to_chat(user, &amp;quot;&amp;lt;span class=&amp;#039;warning&amp;#039;&amp;gt;You can&amp;#039;t vent crawl while you&amp;#039;re stunned!&amp;lt;/span&amp;gt;&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;#039;&amp;#039;You can&amp;#039;t vent crawl while you&amp;#039;re stunned!&amp;#039;&amp;#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:This is a &amp;#039;&amp;#039;&amp;#039;warning&amp;#039;&amp;#039;&amp;#039;! It shows up as simple red text, and are used for things like restriction notifications and machines malfunctioning.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== When you see someone getting hurt or something else alarming ====&lt;br /&gt;
&amp;lt;pre&amp;gt;user.visible_message(&amp;quot;&amp;lt;span class=&amp;#039;danger&amp;#039;&amp;gt;[user] was shocked by [src]!&amp;lt;/span&amp;gt;&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;John Smith&amp;#039;&amp;#039;&amp;#039; was shocked by the door!&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:This is &amp;#039;&amp;#039;&amp;#039;danger&amp;#039;&amp;#039;&amp;#039;! 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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== When you&amp;#039;re hurt directly ====&lt;br /&gt;
&amp;lt;pre&amp;gt;to_chat(target, &amp;quot;&amp;lt;span class=&amp;#039;userdanger&amp;#039;&amp;gt;You are absorbed by the changeling!&amp;lt;/span&amp;gt;&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-size:125%;color:red&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;You are absorbed by the changeling!&amp;#039;&amp;#039;&amp;#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:This is &amp;#039;&amp;#039;&amp;#039;userdanger&amp;#039;&amp;#039;&amp;#039;! 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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Contribution guides}}&lt;/div&gt;</summary>
		<author><name>imported&gt;SpaceManiac</name></author>
	</entry>
</feed>