MarseyWorld/files/templates/formatting.html

505 lines
14 KiB
HTML
Raw Normal View History

2022-05-04 23:09:46 +00:00
{% extends "default.html" %}
2022-11-19 22:20:38 +00:00
{% block pagetitle %}Formatting{% endblock %}
2022-05-04 23:09:46 +00:00
{% block content %}
2023-10-29 12:51:00 +00:00
<h3 class="ml-2 mt-4">Markdown Formatting</h3>
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
<div class="ml-2">You can use Markdown formatting:</div>
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
<div class="overflow-x-auto mt-3">
2024-02-13 10:10:36 +00:00
<table id="formatting-table" class="generate-copy-buttons" style="min-width: 800px">
<thead>
2023-10-29 12:51:00 +00:00
<tr>
<th>Name</th>
<th class="disable-sort-click">What you type</th>
<th class="disable-sort-click">What gets displayed</th>
</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>
2023-11-18 16:19:57 +00:00
<td>~text~</td>
2023-10-29 12:51:00 +00:00
<td><del>text</del></td>
</tr>
2023-11-06 11:44:23 +00:00
<tr>
<td>Quote</td>
<td>> text</td>
2023-11-06 11:46:16 +00:00
<td><blockquote><p>text</p></blockquote></td>
2023-11-06 11:44:23 +00:00
</tr>
<tr>
<td>Greentext</td>
<td>>text</td>
<td><g>text</g></td>
</tr>
2023-10-29 12:51:00 +00:00
<tr>
<td>Horizontal Rule</td>
<td>
<pre>Text 1
---
Text 2</pre>
</td>
<td>
Text 1
<hr>
Text 2
</td>
</tr>
<tr>
<td>Links</td>
<td>[{{SITE_NAME}}]({{SITE_FULL}}/)</td>
<td><a href="/">{{SITE_NAME}}</a></td>
</tr>
<tr>
<td>
Images
<br>
2023-10-17 12:58:00 +00:00
<span style="font-style: italic; font-weight: normal">
2023-10-29 12:51:00 +00:00
* will embed automatically if from <a href="#approved">approved hosts</a>.
2023-10-17 12:58:00 +00:00
</span>
</td>
2023-10-29 12:51:00 +00:00
<td>https://i.imgur.com/SwVuagI.png</td>
<td>
<a href="https://i.imgur.com/SwVuagI_d.webp?maxwidth=9999&fidelity=grand" rel="noopener" target="_blank">
2023-10-29 12:51:00 +00:00
<img alt="https://i.imgur.com/SwVuagI.png" class="img" src="https://i.imgur.com/SwVuagI.png" data-user-submitted>
</a>
</td>
</tr>
<tr>
<td>Youtube Videos</td>
<td>https://youtube.com/watch?v=3Hecr51ByE4</td>
2024-02-13 10:10:33 +00:00
<td>
<lite-youtube videoid="3Hecr51ByE4" params="autoplay=1&modestbranding=1"></lite-youtube>
</td>
2023-10-29 12:51:00 +00:00
</tr>
<tr>
<td>
Video Files
<br>
<span style="font-style: italic; font-weight: normal">
* will embed automatically if from <a href="#approved">approved hosts</a>.
</span>
</td>
<td>https://files.catbox.moe/v4om92.mp4</td>
<td>
<p class="resizable">
<video controls preload="none" src="https://files.catbox.moe/v4om92.mp4"></video>
</p>
</td>
</tr>
<tr>
<td>
Audio Files
<br>
<span style="font-style: italic; font-weight: normal">
* will embed automatically if from <a href="#approved">approved hosts</a>.
</span>
</td>
<td>https://pomf2.lain.la/f/zlnppx4.mp3</td>
<td>
2024-02-13 10:10:25 +00:00
<audio controls preload="none" src="https://pomf2.lain.la/f/zlnppx4.mp3"></audio>
2023-10-29 12:51:00 +00:00
</td>
</tr>
<tr>
<td>Emojis</td>
<td>:marseygasp:</td>
<td>
<img loading="lazy" data-bs-toggle="tooltip" b class="emoji" alt=":marseygasp:" title=":marseygasp:" height="30" src="{{SITE_FULL_IMAGES}}/e/marseygasp.webp">
</td>
</tr>
<tr>
<td>Mirrored Emojis</td>
<td>:!marseygasp:</td>
<td>
<img loading="lazy" data-bs-toggle="tooltip" b class="emoji mirrored" alt=":!marseygasp:" title=":!marseygasp:" height="30" src="{{SITE_FULL_IMAGES}}/e/marseygasp.webp">
</td>
</tr>
<tr>
<td>Large Emojis</td>
<td>:#marseygasp:</td>
<td>
<img loading="lazy" data-bs-toggle="tooltip" b alt=":#marseygasp:" title=":#marseygasp:" src="{{SITE_FULL_IMAGES}}/e/marseygasp.webp">
</td>
</tr>
<tr>
<td>Large Mirrored Emojis</td>
<td>:#!marseygasp:</td>
<td>
<img loading="lazy" data-bs-toggle="tooltip" b alt=":#!marseygasp:" title=":#!marseygasp:" src="{{SITE_FULL_IMAGES}}/e/marseygasp.webp">
</td>
</tr>
<tr>
<td>Pat Emojis</td>
<td>:marseygasppat:</td>
<td>
<span alt=":marseygasppat:" data-bs-toggle="tooltip" title=":marseygasppat:"><img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/hand.webp">
<img alt=":marseygasppat:" b loading="lazy" pat src="{{SITE_FULL_IMAGES}}/e/marseygasp.webp">
</span>
</td>
</tr>
<tr>
<td>Talking Emojis</td>
<td>:marseygasptalking:</td>
<td>
<span alt=":marseygasptalking:" data-bs-toggle="tooltip" title=":marseygasptalking:"><img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/talking.webp">
2023-10-29 12:51:00 +00:00
<img alt=":marseygasptalking:" b loading="lazy" pat src="{{SITE_FULL_IMAGES}}/e/marseygasp.webp">
</span>
</td>
</tr>
<tr>
<td>Typing Emojis</td>
<td>:marseygasptyping:</td>
<td>
<span alt=":marseygasptyping:" data-bs-toggle="tooltip" title=":marseygasptyping:"><img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/typing-hands.webp">
<img alt=":marseygasptyping:" b loading="lazy" pat src="{{SITE_FULL_IMAGES}}/e/marseygasp.webp">
</span>
</td>
</tr>
2023-10-29 12:51:00 +00:00
<tr>
<td>Genocide Emojis</td>
<td>:marseygaspgenocide:</td>
<td>
<span alt=":marseygaspgenocide:" cide data-bs-toggle="tooltip" title=":marseygaspgenocide:">
<img alt=":marseygaspgenocide:" b src="{{SITE_FULL_IMAGES}}/e/marseygasp.webp">
</span>
</td>
</tr>
<tr>
<td>Love Emojis</td>
<td>:marseygasplove:</td>
<td>
<span alt=":marseygasplove:" data-bs-toggle="tooltip" title=":marseygasplove:"><img alt=":marseygasplove:" b loading="lazy" src="{{SITE_FULL_IMAGES}}/i/love-foreground.webp">
<img alt=":marseygasplove:" b loading="lazy" src="{{SITE_FULL_IMAGES}}/i/love-background.webp">
<img alt=":marseygasplove:" b loading="lazy" src="{{SITE_FULL_IMAGES}}/e/marseygasp.webp">
</span>
</td>
</tr>
<tr>
<td>Pat User</td>
<td>:@snappypat:</td>
<td>
<span alt=":@snappypat:" data-bs-toggle="tooltip" title=":@snappypat:"><img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/hand.webp">
<img alt=":@snappypat:" b loading="lazy" pat src="/pp/{{SNAPPY_ID}}">
</span>
</td>
</tr>
<tr>
<td>Talking User</td>
<td>:@snappytalking:</td>
<td>
<span alt=":@snappypat:" data-bs-toggle="tooltip" title=":@snappytalking:"><img loading="lazy" src="{{SITE_FULL_IMAGES}}/i/talking.webp">
<img alt=":@snappytalking:" b loading="lazy" pat src="/pp/{{SNAPPY_ID}}">
</span>
</td>
</tr>
<tr>
<td>Genocide User</td>
<td>:@snappygenocide:</td>
<td>
<span alt=":@snappygenocide:" cide data-bs-toggle="tooltip" title=":@snappygenocide:">
<img alt=":@snappygenocide:" b src="/pp/2">
</span>
</td>
</tr>
<tr>
<td>Love User</td>
<td>:@snappylove:</td>
<td>
<span alt=":@snappylove:" data-bs-toggle="tooltip" title=":@snappylove:"><img alt=":@snappylove:" b loading="lazy" src="{{SITE_FULL_IMAGES}}/i/love-foreground.webp">
<img alt=":@snappylove:" b loading="lazy" src="{{SITE_FULL_IMAGES}}/i/love-background.webp">
<img alt=":@snappylove:" b loading="lazy" src="/pp/{{SNAPPY_ID}}">
</span>
</td>
</tr>
<tr>
<td>
Poll — Pick Multiple<br>
</td>
<td>$$bussy$$<br>$$gussy$$</td>
<td>
<div class="custom-control">
<input autocomplete="off" type="checkbox" class="custom-control-input" id="422741">
<label class="custom-control-label" for="422741">bussy - <a href="/votes/t3_422741"><span id="option-422741">0</span> votes</a></label>
</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/t3_422742"><span id="option-422742">0</span> votes</a></label>
</div>
</td>
</tr>
<tr>
<td>
Poll — Pick One<br>
</td>
<td>&&bussy&&<br>&&gussy&&</td>
<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/t3_1338113"><span id="option-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/t3_1338114"><span id="option-1338114">0</span> votes</a></label>
</div>
</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>List</td>
<td>* First thing<br>* Second thing</td>
<td><ul><li>First thing</li><li>Second thing</li></ul></td>
2023-10-17 12:58:00 +00:00
</tr>
<tr>
2023-10-29 12:51:00 +00:00
<td>Code Block</td>
<td>```<br>Use three backticks above and below.<br>```</td>
<td>
<pre class="mb-0"><code>Use three backticks above and below.
</code></pre>
</td>
</tr>
<tr>
<td>Spoilers</td>
<td>||bussy > gussy||</td>
<td><p><spoiler>bussy &gt; gussy</spoiler></p></td>
</tr>
<tr>
<td>Username Mention</td>
<td>@Snappy</td>
<td><a class="d-inline-block" href="/@Snappy"><img alt="@Snappy profile picture" loading="lazy" src="/pp/{{SNAPPY_ID}}">@Snappy</a></td>
</tr>
<tr>
<td>Subreddit Mention</td>
<td>r/drama</td>
<td><a class="d-inline-block" rel="noopener" href="https://old.reddit.com/r/drama">r/drama</a></td>
2023-10-29 12:51:00 +00:00
</tr>
<tr>
<td>Redditor Mention</td>
<td>u/Bardfinn</td>
<td><a class="d-inline-block" rel="noopener" href="https://old.reddit.com/user/Bardfinn">u/Bardfinn</a></td>
2023-10-29 12:51:00 +00:00
</tr>
<tr>
<td>Ping Group Mention<br>
2023-10-17 12:58:00 +00:00
<span style="font-style: italic; font-weight: normal">
2023-10-29 12:51:00 +00:00
* Mentions all members of the group.
2023-10-17 12:58:00 +00:00
</span>
</td>
2023-10-29 12:51:00 +00:00
<td>!biofoids</td>
<td><a href="/!biofoids">!biofoids</a></td>
2023-10-29 12:51:00 +00:00
</tr>
<tr>
<td>Followers Mention<br>
<span style="font-style: italic; font-weight: normal">
* Mentions all your followers.
</span>
</td>
<td>!followers</td>
<td><a href="/id/{{v.id}}/followers">!followers</a></td>
2023-10-29 12:51:00 +00:00
</tr>
<tr>
<td>Commenters Mention<br>
<span style="font-style: italic; font-weight: normal">
* Mentions everyone who has commented in the thread it's used in.
</span>
</td>
<td>!commenters</td>
<td><a href="/!commenters/1/1">!commenters</a></td>
2023-10-29 12:51:00 +00:00
</tr>
<tr>
<td>Admins Mention<br>
<span style="font-style: italic; font-weight: normal">
* Mentions all site admins.
</span>
</td>
<td>!jannies</td>
<td><a href="/admins">!jannies</a></td>
2023-10-29 12:51:00 +00:00
</tr>
{% if SITE_NAME != 'WPD' %}
<tr>
<td>Hole Mods Mention<br>
<span style="font-style: italic; font-weight: normal">
* Mentions all mods of the hole it's used inside.
</span>
</td>
<td>!holejannies</td>
<td><a href="/h/chudrama/mods">!holejannies</a></td>
</tr>
{% endif %}
2023-10-29 12:51:00 +00:00
<tr>
<td>Everyone Mention<br>
<span style="font-style: italic; font-weight: normal">
* Mentions everyone.
</span>
</td>
<td>!everyone</td>
<td><a href="/users">!everyone</a></td>
2023-10-29 12:51:00 +00:00
</tr>
<tr>
<td>Random Marsey Emoji</td>
<td>:marseyrandom:</td>
2023-10-17 12:58:00 +00:00
<td>???</td>
</tr>
<tr>
<td>Random Tay Emoji</td>
<td>:tayrandom:</td>
<td>???</td>
</tr>
2023-10-17 12:58:00 +00:00
<tr>
2023-10-29 12:51:00 +00:00
<td>Random Platy Emoji</td>
<td>:platyrandom:</td>
2023-10-17 12:58:00 +00:00
<td>???</td>
</tr>
<tr>
2023-10-29 12:51:00 +00:00
<td>Random Wolf Emoji</td>
<td>:wolfrandom:</td>
2023-10-17 12:58:00 +00:00
<td>???</td>
</tr>
<tr>
2023-10-29 12:51:00 +00:00
<td>Random Donkey Kong Emoji</td>
<td>:donkeykongrandom:</td>
2023-10-17 12:58:00 +00:00
<td>???</td>
</tr>
<tr>
2023-10-29 12:51:00 +00:00
<td>Random Capy Emoji</td>
<td>:capyrandom:</td>
<td>???</td>
</tr>
<tr>
<td>Random Carp Emoji</td>
<td>:carprandom:</td>
<td>???</td>
</tr>
<tr>
<td>Random Marsey Flag Emoji</td>
<td>:marseyflagrandom:</td>
<td>???</td>
</tr>
<tr>
<td>Random Marsey Alphabet Emoji</td>
<td>:marseyalphabetrandom:</td>
<td>???</td>
</tr>
<tr>
<td>Random Rage Emoji</td>
<td>:ragerandom:</td>
<td>???</td>
</tr>
<tr>
<td>Random Wojak Emoji</td>
<td>:wojakrandom:</td>
<td>???</td>
</tr>
<tr>
<td>Random Misc Emoji</td>
<td>:miscrandom:</td>
<td>???</td>
2023-10-17 12:58:00 +00:00
</tr>
2023-10-29 12:51:00 +00:00
{% if FEATURES['MARKUP_COMMANDS'] -%}
<tr>
<td>Play slots using coins<br>
<span style="font-style: italic; font-weight: normal">
* Minimum 100 coins.
</span>
</td>
<td>!slots 100</td>
<td>???</td>
</tr>
<tr>
<td>Play slots using marseybux<br>
<span style="font-style: italic; font-weight: normal">
* Minimum 100 marseybux.
</span>
</td>
<td>!slotsmb 100</td>
<td>???</td>
</tr>
<tr>
<td>Random Fortune</td>
<td>#fortune</td>
<td>???</td>
</tr>
<tr>
<td>Random 8-Ball Answer</td>
<td>#8ball</td>
<td>???</td>
</tr>
<tr>
<td>Random Factcheck</td>
<td>#factcheck</td>
<td>???</td>
</tr>
<tr>
<td>Roll</td>
2024-02-12 16:13:26 +00:00
<td>#roll7</td>
<td>A number 1&ndash;7.</td>
2023-10-29 12:51:00 +00:00
</tr>
<tr>
<td>Coinflip</td>
<td>#coinflip</td>
<td>Heads, Tails, or Edge.</td>
</tr>
{%- endif %}
</tbody>
</table>
</div>
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
<hr class="my-6">
2023-10-29 12:51:00 +00:00
<h1>HTML Formatting</h1>
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
And we allow custom HTML in most places:
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
<h4 class="mt-3">Allowed Tags</h4>
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
<ul>
{% for tag in allowed_tags %}
<li>{{tag}}</li>
{% endfor %}
</ul>
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
<h5 class="mt-4">Allowed Styles</h5>
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
<ul>
2024-02-12 16:19:05 +00:00
{% for style in allowed_css_properties %}
2023-10-29 12:51:00 +00:00
<li>{{style}}</li>
{% endfor %}
</ul>
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
<hr class="my-6">
2022-05-04 23:09:46 +00:00
2023-10-29 12:51:00 +00:00
<h1 id="approved">Approved Media Hosts</h1>
2023-10-29 12:51:00 +00:00
Image files, video files, and audio files from these sources will get embedded automatically:
2023-10-29 12:51:00 +00:00
<ul class="mt-3">
{% for host in approved_embed_hosts %}
<li>{{host.split('/')[0]}}</li>
2023-10-29 12:51:00 +00:00
{% endfor %}
</ul>
2023-09-07 15:26:31 +00:00
2023-10-29 12:51:00 +00:00
<div class="toast clipboard" id="toast-success" data-bs-animation="true" data-bs-autohide="true" data-bs-delay="5000">
<div class="toast-body text-center">
<i class="fas fa-check-circle text-success mr-2"></i>Text copied to clipboard
</div>
</div>
2023-10-29 12:51:00 +00:00
<script defer src="{{'js/vendor/clipboard.js' | asset}}"></script>
<script defer src="{{'js/formatting.js' | asset}}"></script>
{% endblock %}