MarseyWorld/files/templates/formatting.html

593 lines
13 KiB
HTML
Raw Normal View History

2021-12-14 22:48:37 +00:00
{% extends "default.html" %}
2021-10-15 14:08:27 +00:00
{% block title %}
2022-01-13 23:39:39 +00:00
<title>{{SITE_NAME}} - Formatting</title>
2021-12-27 05:07:19 +00:00
2021-10-15 14:08:27 +00:00
{% endblock %}
{% block content %}
<pre>
</pre>
2021-12-08 16:54:56 +00:00
<h1>Markdown Formatting</h1>
2021-10-15 14:08:27 +00:00
2021-12-08 18:59:35 +00:00
You can use Markdown formatting:
2021-10-15 14:08:27 +00:00
2021-10-22 23:50:00 +00:00
<pre>
</pre>
2021-10-15 14:08:27 +00:00
2022-01-03 10:59:29 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
2021-10-15 14:08:27 +00:00
<thead class="bg-primary text-white">
<tr>
<th>Name</th>
2021-12-08 19:22:01 +00:00
<th>What you type</th>
<th>What gets displayed</th>
2021-10-15 14:08:27 +00:00
</tr>
</thead>
<tbody>
<tr>
<td>Italics</td>
<td>*text*</td>
<td><i>text</i></td>
</tr>
<tr>
<td>Bold</td>
<td>**text**</td>
<td><b>text</b></td>
</tr>
<tr>
<td>Code</td>
<td>`text`</td>
<td><code>text</code></td>
</tr>
<tr>
<td>Strikethrough</td>
<td>~~text~~</td>
<td><del>text</del></td>
</tr>
2022-04-15 22:39:17 +00:00
<tr>
<td>Horizontal Rule</td>
<td>
<pre>
Text 1
---
Text 2
</pre>
</td>
<td>
Text 1
<hr>
Text 2
</td>
</tr>
2021-10-15 14:08:27 +00:00
<tr>
<td>Links</td>
2022-01-24 17:37:37 +00:00
<td>[{{SITE_NAME}}]({{SITE_FULL}}/)</td>
2022-04-02 17:43:11 +00:00
<td><a href="/">{{SITE_NAME}}</a></td>
2021-10-15 14:08:27 +00:00
</tr>
2021-12-08 16:54:56 +00:00
<tr>
<td>Images</td>
2022-05-01 22:28:51 +00:00
<td>https://i.imgur.com/SwVuagI_d.webp</td>
<td><img loading="lazy" alt="example image" referrerpolicy="no-referrer" src="https://i.imgur.com/SwVuagI_d.webp"></td>
2021-12-08 16:54:56 +00:00
</tr>
<tr>
2021-12-08 18:57:52 +00:00
<td>Youtube Videos</td>
2021-12-25 20:46:49 +00:00
<td>https://youtube.com/watch?v=3Hecr51ByE4</td>
2021-12-31 12:37:42 +00:00
<td><lite-youtube videoid="3Hecr51ByE4" params="autoplay=1&modestbranding=1"></lite-youtube></td>
2021-12-08 18:57:52 +00:00
</tr>
<tr>
2021-12-18 03:13:46 +00:00
<td>Video Files</td>
2021-12-10 02:03:59 +00:00
<td>https://files.catbox.moe/v4om92.mp4</td>
2022-03-21 21:31:16 +00:00
<td><video controls preload="none" class="vid"><source referrerpolicy="no-referrer" src="https://files.catbox.moe/v4om92.mp4" type="video/mp4"></video></td>
2021-12-10 02:03:59 +00:00
</tr>
2021-10-15 14:08:27 +00:00
<tr>
<td>Emojis</td>
<td>:marseylove:</td>
2022-03-31 17:16:13 +00:00
<td><img loading="lazy" data-bs-toggle="tooltip" class="emoji" alt=":marseylove:" title=":marseylove:" height="30" src="/e/marseylove.webp"></td>
2021-10-15 14:08:27 +00:00
</tr>
<tr>
<td>Mirrored Emojis</td>
<td>:!marseylove:</td>
2022-03-31 17:16:13 +00:00
<td><img loading="lazy" data-bs-toggle="tooltip" class="emoji mirrored" alt=":!marseylove:" title=":!marseylove:" height="30" src="/e/marseylove.webp"></td>
2021-10-15 14:08:27 +00:00
</tr>
2021-12-03 23:34:03 +00:00
<tr>
<td>Large Emojis</td>
<td>:#marseylove:</td>
2022-05-01 22:28:51 +00:00
<td><img loading="lazy" data-bs-toggle="tooltip" b alt=":marseylove:" title=":marseylove:" src="/e/marseylove.webp"></td>
2021-12-06 20:09:02 +00:00
</tr>
<tr>
2022-02-22 08:26:58 +00:00
<td>Large Mirrored Emojis</td>
2021-12-06 20:09:02 +00:00
<td>:#!marseylove:</td>
2022-05-01 22:28:51 +00:00
<td><img loading="lazy" data-bs-toggle="tooltip" b alt=":!marseylove:" title=":!marseylove:" src="/e/marseylove.webp"></td>
2021-12-03 23:34:03 +00:00
</tr>
2022-02-11 23:32:14 +00:00
<tr>
<td>Random Marsey</td>
<td>:marseyrandom:</td>
<td>???</td>
</tr>
2022-03-17 08:59:44 +00:00
<tr>
<td>Random Fortune</td>
<td>#fortune</td>
<td>???</td>
</tr>
2021-10-15 14:08:27 +00:00
<tr>
2022-02-07 12:26:11 +00:00
<td>Poll Options (can select multiple options)</td>
<td>$$bussy$$ $$gussy$$</td>
2021-10-15 14:08:27 +00:00
<td>
<div class="custom-control">
2022-02-07 12:26:11 +00:00
<input autocomplete="off" type="checkbox" class="custom-control-input" id="422741">
2021-10-15 14:08:27 +00:00
<label class="custom-control-label" for="422741">bussy - <a href="/votes?link=t3_422741"><span id="poll-422741">0</span> votes</a></label>
2022-02-07 12:26:11 +00:00
</div>
<div class="custom-control">
<input autocomplete="off" type="checkbox" class="custom-control-input" id="422742">
<label class="custom-control-label" for="422742">gussy - <a href="/votes?link=t3_422742"><span id="poll-422742">0</span> votes</a></label>
</div>
</td>
</tr>
<tr>
<td>Poll Options (can select only 1 option)</td>
2022-02-22 14:11:33 +00:00
<td>&&bussy&& &&gussy&&</td>
2022-02-07 12:26:11 +00:00
<td>
<div class="custom-control">
<input name="choice" autocomplete="off" type="radio" class="custom-control-input" id="1338113">
<label class="custom-control-label" for="1338113">bussy - <a href="/votes?link=t3_1338113"><span id="choice-1338113">0</span> votes</a></label>
</div>
<div class="custom-control">
<input name="choice" autocomplete="off" type="radio" class="custom-control-input" id="1338114">
<label class="custom-control-label" for="1338114">gussy - <a href="/votes?link=t3_1338114"><span id="choice-1338114">0</span> votes</a></label>
</div>
2021-10-15 14:08:27 +00:00
</td>
</tr>
<tr>
<td>Blockquote</td>
<td>&gt; text</td>
<td><blockquote>text</blockquote></td>
</tr>
<tr>
<td>Headers 1-6</td>
<td># Header 1<br>## Header 2<br>### Header 3<br>#### Header 4<br>##### Header 5<br>###### Header 6</td>
<td><h1>Header 1</h1><h2>Header 2</h2><h3>Header 3</h3><h4>Header 4</h4><h5>Header 5</h5><h6>Header 6</h6></td>
</tr>
<tr>
<td>Ordered list</td>
<td>1. First thing<br>2. Second thing</td>
<td><ol><li>First thing</li><li>Second thing</li></ol></td>
</tr>
<tr>
<td>Unordered list</td>
<td>* First thing<br>* Second thing</td>
<td><ul><li>First thing</li><li>Second thing</li></ul></td>
</tr>
<tr>
<td>Code Block</td>
<td>```<br>Use three backticks above and below.<br>Or, indent the lines with four spaces.<br>```</td>
<td>
<pre>
Use three backticks above and below.
Or, indent the lines with four spaces.
</pre>
</td>
</tr>
2021-12-08 16:35:31 +00:00
<tr>
<td>Spoilers</td>
2021-12-10 02:14:18 +00:00
<td>||bussy > gussy||</td>
2022-05-01 22:28:51 +00:00
<td><p><spoiler>bussy &gt; gussy</spoiler></p></td>
2021-12-08 16:35:31 +00:00
</tr>
2021-10-15 14:08:27 +00:00
<tr>
<td>Username Mention</td>
<td>@QuadNarca</td>
2022-03-21 20:56:43 +00:00
<td><a class="d-inline-block" href="/@QuadNarca"><img alt="@QuadNarca profile picture" loading="lazy" src="/pp/29">@QuadNarca</a></td>
2021-10-15 14:08:27 +00:00
</tr>
<tr>
<td>Subreddit Mention</td>
2022-05-01 22:28:51 +00:00
<td>r/drama</td>
<td><a class="d-inline-block" rel="nofollow noopener noreferrer" href="https://www.reddit.com/r/drama/">r/drama</a></td>
2021-10-15 14:08:27 +00:00
</tr>
<tr>
<td>Redditor Mention</td>
<td>u/Bardfinn</td>
<td><a class="d-inline-block" rel="nofollow noopener noreferrer" href="https://www.reddit.com/u/Bardfinn/">u/Bardfinn</a></td>
</tr>
</tbody>
2021-12-31 16:51:53 +00:00
</table></div>
2021-10-15 14:08:27 +00:00
2021-12-08 16:54:56 +00:00
<h1>HTML Formatting</h1>
2021-10-15 14:08:27 +00:00
2021-12-08 18:59:35 +00:00
And we allow custom HTML in most places:
2021-10-15 14:08:27 +00:00
2021-12-08 18:59:35 +00:00
<pre>
</pre>
2021-12-08 19:00:55 +00:00
<h4>Allowed Tags</h4>
2021-10-15 14:08:27 +00:00
2022-01-03 10:59:29 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
2021-10-15 14:08:27 +00:00
<thead class="bg-primary text-white">
<tr>
<th>Name</th>
2021-12-08 19:22:01 +00:00
<th>What you type</th>
<th>What gets displayed</th>
2021-10-15 14:08:27 +00:00
</tr>
</thead>
<tbody>
2021-12-08 19:00:30 +00:00
<tr>
<td>Span</td>
<td>
My mother has &lt;span style="color:blue"&gt;blue&lt;/span&gt; eyes.
</td>
<td>
My mother has <span style="color:blue">blue</span> eyes.
</td>
</tr>
2021-10-15 14:08:27 +00:00
<tr>
<td>Bold</td>
<td>This will be &lt;b&gt;bold&lt;/b&gt;</td>
<td>
This will be <b>bold</b>
</td>
</tr>
<tr>
<td>Blockquote</td>
<td>
&lt;blockquote&gt;This is a blockquote&lt;/blockquote&gt;
</td>
<td>
<blockquote>
This is a blockquote
</blockquote>
</td>
</tr>
<tr>
<td>Line Break</td>
<td>
2021-11-30 13:15:41 +00:00
<pre style="color:var(--white)">
2021-10-15 14:08:27 +00:00
Line 1
&lt;br&gt;
Line 2
</pre>
</td>
<td>
Line 1
<br>
Line 2
</td>
</tr>
<tr>
<td>Code</td>
<td>
&lt;code&gt;This is code&lt;/code&gt;
</td>
<td>
<code>This is code</code>
</td>
</tr>
<tr>
<td>Strikethrough</td>
<td>
The last word will have a &lt;del&gt;strikethrough&lt;/del&gt;
</td>
<td>
The last word will have a <del>strikethrough</del>
</td>
</tr>
<tr>
<td>Emphasis</td>
<td>
We &lt;em&gt;cannot&lt;/em&gt; live like this.
</td>
<td>
We <em>cannot</em> live like this.
</td>
</tr>
<tr>
<td>Headings</td>
<td>
<pre>
&lt;h1&gt;This is heading 1&lt;/h1&gt;
&lt;h2&gt;This is heading 2&lt;/h2&gt;
&lt;h3&gt;This is heading 3&lt;/h3&gt;
&lt;h4&gt;This is heading 4&lt;/h4&gt;
&lt;h5&gt;This is heading 5&lt;/h5&gt;
&lt;h6&gt;This is heading 6&lt;/h6&gt;
</pre>
</td>
<td>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
</td>
</tr>
<tr>
<td>Horizontal Rule</td>
<td>
<pre>
Text 1
&lt;hr&gt;
Text 2
</pre>
</td>
<td>
Text 1
<hr>
Text 2
</td>
</tr>
<tr>
<td>Italics</td>
<td>
&lt;i&gt;This&lt;/i&gt; is how you get italics.
</td>
<td>
<i>This</i> is how you get italics.
</td>
</tr>
<tr>
<td>Lists</td>
<td>
<pre>
&lt;ul&gt;
&lt;li&gt;Bullet 1&lt;/li&gt;
&lt;li&gt;Bullet 2&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;Number 1&lt;/li&gt;
&lt;li&gt;Number 2&lt;/li&gt;
&lt;/ol&gt;
</pre>
</td>
<td>
<ul>
<li>Bullet 1</li>
<li>Bullet 2</li>
</ul>
<ol>
<li>Number 1</li>
<li>Number 2</li>
</ol>
</td>
</tr>
<tr>
<td>Paragraphs</td>
<td>
<pre>
&lt;p&gt;Paragraph 1&lt;/p&gt;
&lt;p&gt;Paragraph 2&lt;/p&gt;
</pre>
</td>
<td>
<p>Paragraph 1</p>
<p>Paragraph 2</p>
</td>
</tr>
<tr>
<td>Preformatted Text</td>
<td><pre>
&lt;pre&gt;
Text in a pre element
is displayed in a fixed-width
font, and it preserves
both spaces and
line breaks
&lt;/pre&gt;
</pre></td>
<td>
<pre>
Text in a pre element
is displayed in a fixed-width
font, and it preserves
both spaces and
line breaks
</pre>
</td>
</tr>
<tr>
<td>Strong</td>
<td>
&lt;strong&gt;This text is important!&lt;/strong&gt;
</td>
<td>
<strong>This text is important!</strong>
</td>
</tr>
<tr>
<td>Subscript</td>
<td>
This text contains &lt;sub&gt;subscript&lt;/sub&gt; text.
</td>
<td>
This text contains <sub>subscript</sub> text.
</td>
</tr>
<tr>
<td>Superscript</td>
<td>
E = mc&lt;sup&gt;2&lt;/sup&gt;
</td>
<td>
E = mc<sup>2</sup>
</td>
</tr>
<tr>
<td>Tables</td>
<td><pre>
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;td&gt;Col 1&lt;/td&gt;
&lt;td&gt;Col 2&lt;/td&gt;
&lt;td&gt;Col 3&lt;/td&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;</pre>
</td>
<td>
<table>
<thead>
<tr>
<td>Col 1</td>
<td>Col 2</td>
<td>Col 3</td>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>Marquee</td>
<td>
2022-01-14 02:33:27 +00:00
&lt;marquee direction="up" behavior="scroll" scrollamount="10" height="250"&gt;
2021-10-15 14:08:27 +00:00
This is a sample scrolling text that has scrolls in the upper direction.
&lt;/marquee&gt;
</td>
<td>
2022-01-14 02:33:27 +00:00
<marquee direction="up" behavior="scroll" scrollamount="10" height="250">
2021-10-15 14:08:27 +00:00
This is a sample scrolling text that has scrolls in the upper direction.
</marquee>
</td>
</tr>
<tr>
<td>Links</td>
<td>
This is a &lt;a href='https://www.w3schools.com/tags/tag_a.asp'&gt;link&lt;/a&gt;
</td>
<td>
This is a <a href='https://www.w3schools.com/tags/tag_a.asp'>link</a>
</td>
</tr>
<tr>
<td>Images</td>
<td>
2022-02-24 09:24:22 +00:00
&lt;img referrerpolicy="no-referrer" src="https://i.imgur.com/SwVuagI_d.webp" width="200"&gt;
2021-10-15 14:08:27 +00:00
</td>
<td>
2022-02-24 09:24:22 +00:00
<img loading="lazy" alt="example image" referrerpolicy="no-referrer" src="https://i.imgur.com/SwVuagI_d.webp" width="200">
2021-10-15 14:08:27 +00:00
</td>
</tr>
</tbody>
2021-12-31 16:51:53 +00:00
</table></div>
2021-10-15 14:08:27 +00:00
2021-12-08 19:00:30 +00:00
<h4>Allowed Attributes</h4>
2021-11-06 15:21:05 +00:00
2022-01-03 10:59:29 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
2021-11-06 15:21:05 +00:00
<thead class="bg-primary text-white">
<tr>
<th>Name</th>
</tr>
</thead>
<tbody>
<tr>
<td>href</td>
</tr>
<tr>
<td>style</td>
</tr>
<tr>
<td>src</td>
</tr>
<tr>
<td>class</td>
</tr>
<tr>
<td>title</td>
</tr>
<tr>
<td>direction</td>
</tr>
<tr>
<td>behavior</td>
</tr>
<tr>
<td>scrollamount</td>
</tr>
</tbody>
2021-12-31 16:51:53 +00:00
</table></div>
2021-11-06 15:21:05 +00:00
2021-12-08 19:00:30 +00:00
<h5>Allowed Styles</h5>
2021-10-15 14:08:27 +00:00
2022-01-03 10:59:29 +00:00
<div class="overflow-x-auto"><table class="table table-striped mb-5">
2021-10-15 14:08:27 +00:00
<thead class="bg-primary text-white">
<tr>
<th>Name</th>
</tr>
</thead>
<tbody>
<tr>
<td>color</td>
</tr>
2021-11-04 15:41:18 +00:00
<tr>
<td>background-color</td>
</tr>
2021-10-15 14:08:27 +00:00
<tr>
<td>font-weight</td>
</tr>
<tr>
2022-02-08 22:30:57 +00:00
<td>text-align</td>
2021-10-15 14:08:27 +00:00
</tr>
</tbody>
2021-12-31 16:51:53 +00:00
</table></div>
2021-10-15 14:08:27 +00:00
2022-03-17 08:59:44 +00:00
<h5>Comment Commands</h5>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
<th>Comment Command</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>!slots100</td>
2022-03-18 19:26:49 +00:00
<td>Play slots using coins - minimum 100 coins</td>
2022-03-17 08:59:44 +00:00
</tr>
<tr>
<td>!slotsmb100</td>
2022-03-18 19:26:49 +00:00
<td>Play slots using marseybux - minimum 100 marseybux</td>
2022-03-17 08:59:44 +00:00
</tr>
<tr>
<td>!blackjack100</td>
2022-03-18 19:26:49 +00:00
<td>Play blackjack using coins - minimum 100 coins</td>
2022-03-17 08:59:44 +00:00
</tr>
<tr>
<td>!blackjackmb100</td>
2022-03-18 19:26:49 +00:00
<td>Play blackjack using marseybux - minimum 100 marseybux</td>
2022-03-17 08:59:44 +00:00
</tr>
<tr>
<td>!wordle</td>
<td>Play wordle</td>
</tr>
</tbody>
</table></div>
2021-11-30 18:20:56 +00:00
{% include "expanded_image_modal.html" %}
2021-10-27 00:37:34 +00:00
{% endblock %}