Chapter Text
Subreddits
This template uses r/relationships as basis. You can, of course, adjust it to whatever you like. The relevant section is this one:
<p class="redditposterinfo">
<img class="redditboardicon" src="https://b.thumbs.redditmedia.com/G_B8XNBy33xqbEJxzVpN1YjV0YGgIIPbZNkpDFNjPuU.png" />
<span class="redditboardposter">
<span class="redditboardname"><b>r/relationships</b></span> · Posted by u/OP_USERNAME_HERE ## hours ago.
</span>
</p>
Replace r/relationship with the subreddit of your choice. Don't forget to replace https://b.thumbs.redditmedia.com/G_B8XNBy33xqbEJxzVpN1YjV0YGgIIPbZNkpDFNjPuU.png with the subreddit's icon as well.
Throughout the template ## is used to indicate places where you can add numbers, either the number of comments or votes or points as well as the the amount of time that has elapsed since the post was created. You can also substitute "## hours ago" with something like "2d" for two days ago or "3m" for three months ago. Refer to actual reddit posts to see how it's used.
Some subreddits may use different icons for their vote arrows. Just substitute the links with your own images. The alt attributes will tell you which arrow goes here if the URL is too long to parse.
<div class="redditvotearrows">
<p class="redditclear">
<img class="redditupvoteicon" alt="reddit upvote icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880423739903336468/reddit-upvote-icon.png" />
</p>
<div class="redditvotes"><p class="redditclear">##</p></div>
<p class="redditclear">
<img class="redditdownvoteicon" alt="reddit downvote icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880425104876638318/reddit-downvote-icon.png" />
</p>
</div>
If the subreddit uses different icons for things like comments or sharing or what have you, the section is this:
<p class="redditinteract">
<img class="redditinteracticon" alt="comment icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880431802823622687/reddit-comment-icon.png" />
<span class="redditinteracttext">## comments</span>
<img class="redditinteracticon" alt="share icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880435980593659944/reddit-share-icon.png" />
<span class="redditinteracttext">Share</span><img class="redditinteracticon" alt="save icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880436462569553970/reddit-bookmark-icon.png" />
<span class="redditinteracttext">Save</span>
<img class="redditinteracticon" alt="hide icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880436605666607104/reddit-hide-icon.png" />
<span class="redditinteracttext">Hide</span>
<img class="redditinteracticon" alt="report icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880436733341233213/reddit-report-icon.png" />
<span class="redditinteracttext">Report</span>
<span class="redditupvoted">87% Upvoted</span>
</p>
Again, the alt attributes will tell you which icon hides behind which URL. In the comment section, there are also vote arrows and a comment icon:
<img class="redditinteracticon" alt="reddit upvote icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880423739903336468/reddit-upvote-icon.png" />
<span class="redditinteracttext c0 pr0">Vote</span>
<img class="" alt="reddit downvote icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880425104876638318/reddit-downvote-icon.png" />
<img class="redditinteracticon" alt="comment icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880431802823622687/reddit-comment-icon.png" />
More on comments below. Be sure to replace the arrows before adding more comments to the section to save yourself some work in the long run.
The actual post
Now let's get to the main body of the reddit post:
<p class="reddith1">YOUR SUBJECT LINE</p>
<p class="redditcategory">Relationships</p> -- this is the category tag that you see below subject lines. If the post has just been created, it might just read [new]. Use however you see fit.
<p>YOUR TEXT HERE</p>
Make sure to wrap each of your post's paragraphs with <p>...</p> tags. AO3 likes them very much.
And now for the fun part: comments! If you want a long discussion in the comments, I'd recommend you type it out somewhere where you can add indents so you know which level of the conversation you are on. Because with the code it can get pretty confusing pretty quickly.
<div class="redditcommentthread">
<p class="redditclear redditusericonbox">
<img class="redditusericon" alt="reddit user icon purple" src="https://www.redditstatic.com/avatars/defaults/avatar_default_7.png" />
</p>
<p class="reddituserinfo">
<span class="redditusername">USERNAME</span>## points · ## hours ago
</p>
<p class="redditcommenttext">COMMENT TEXT HERE</p>
<p class="redditinteract redditinteractcomment">
<img class="redditinteracticon" alt="reddit upvote icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880423739903336468/reddit-upvote-icon.png" />
<span class="redditinteracttext c0 pr0">Vote</span>
<img class="" alt="reddit downvote icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880425104876638318/reddit-downvote-icon.png" />
<img class="redditinteracticon" alt="comment icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880431802823622687/reddit-comment-icon.png" />
<span class="redditinteracttext">Reply</span>
<span class="redditinteracttext">Share</span>
<span class="redditinteracttext">Report</span>
<span class="redditinteracttext">Save</span>
</p>
</div>
This whole beauty is one comment. Let's go through the relevant lines here.
<img class="redditusericon" alt="reddit user icon purple" src="https://www.redditstatic.com/avatars/defaults/avatar_default_7.png" />
Here you can substitute whatever icon the commenter is using. You can do steal reddit's icons by using a different number at the end. They'll give you different-coloured reddit default icons.
<span class="redditusername">USERNAME</span>## points · ## hours ago
As mentioned above, the ## are to be substituted with actual numbers. USERNAME here implies a commenter who is not the OP. If you want the OP to reply, change this line to
<span class="redditusername bold">OP_USERNAME</span>## points · ## hours ago
or
<span class="redditusername"><b>OP_USERNAME</b></span>## points · ## hours ago
That way the username will be bolded.
Now for the actual text of the comment
<p class="redditcommenttext">COMMENT TEXT HERE</p>
If you want to use more than one paragraph, just comment that whole deal again. Otherwise it might not be styled correctly.
Comment threads
Comment threads are the tricky bit about this template. Make sure you pay attention to the closing div tags.
<div class="redditcommentsection"> <-- This is the whole comment section
<p></p><div class="redditcommentthread"> <-- This is where a comment starts
<p class="redditclear redditusericonbox">
<img class="redditusericon" alt="reddit user icon purple" src="https://www.redditstatic.com/avatars/defaults/avatar_default_7.png" />
</p>
<p class="reddituserinfo">
<span class="redditusername">USERNAME</span>## points · ## hours ago
</p>
<p class="redditcommenttext">COMMENT TEXT HERE</p>
<p class="redditinteract redditinteractcomment">
<img class="redditinteracticon" alt="reddit upvote icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880423739903336468/reddit-upvote-icon.png" />
<span class="redditinteracttext c0 pr0">Vote</span>
<img class="" alt="reddit downvote icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880425104876638318/reddit-downvote-icon.png" />
<img class="redditinteracticon" alt="comment icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880431802823622687/reddit-comment-icon.png" />
<span class="redditinteracttext">Reply</span>
<span class="redditinteracttext">Share</span>
<span class="redditinteracttext">Report</span>
<span class="redditinteracttext">Save</span>
</p><-- If you want to create a reply to a comment, you copy and paste the whole comment structure before the closing div tag of the comment you want to reply to.
</div> <-- This is the comment's closing div<-- This is where you would add anther top-level comment, after the closing tag of the previous comment.
</div> <-- This is the comment section's closing div
This is what would look like:
<div class="redditcommentsection"> <-- This is the whole comment section
<p></p><div class="redditcommentthread">
<p class="redditclear redditusericonbox">
<img class="redditusericon" alt="reddit user icon purple" src="https://www.redditstatic.com/avatars/defaults/avatar_default_7.png" />
</p>
<p class="reddituserinfo">
<span class="redditusername">USERNAME 1</span>## points · ## hours ago
</p>
<p class="redditcommenttext">This is a top-level comment.</p>
<p class="redditinteract redditinteractcomment">
<img class="redditinteracticon" alt="reddit upvote icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880423739903336468/reddit-upvote-icon.png" />
<span class="redditinteracttext c0 pr0">Vote</span>
<img class="" alt="reddit downvote icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880425104876638318/reddit-downvote-icon.png" />
<img class="redditinteracticon" alt="comment icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880431802823622687/reddit-comment-icon.png" />
<span class="redditinteracttext">Reply</span>
<span class="redditinteracttext">Share</span>
<span class="redditinteracttext">Report</span>
<span class="redditinteracttext">Save</span>
</p><div class="redditcommentthread">
<p class="redditclear redditusericonbox">
<img class="redditusericon" alt="reddit user icon purple" src="https://www.redditstatic.com/avatars/defaults/avatar_default_7.png" />
</p>
<p class="reddituserinfo">
<span class="redditusername">USERNAME 3</span>## points · ## hours ago
</p>
<p class="redditcommenttext">This is a reply to the first comment</p>
<p class="redditinteract redditinteractcomment">
<img class="redditinteracticon" alt="reddit upvote icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880423739903336468/reddit-upvote-icon.png" />
<span class="redditinteracttext c0 pr0">Vote</span>
<img class="" alt="reddit downvote icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880425104876638318/reddit-downvote-icon.png" />
<img class="redditinteracticon" alt="comment icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880431802823622687/reddit-comment-icon.png" />
<span class="redditinteracttext">Reply</span>
<span class="redditinteracttext">Share</span>
<span class="redditinteracttext">Report</span>
<span class="redditinteracttext">Save</span>
</p>
</div>
</div><div class="redditcommentthread">
<p class="redditclear redditusericonbox">
<img class="redditusericon" alt="reddit user icon purple" src="https://www.redditstatic.com/avatars/defaults/avatar_default_6.png" />
</p>
<p class="reddituserinfo">
<span class="redditusername">USERNAME 2</span>## points · ## hours ago
</p>
<p class="redditcommenttext">This is another top-level comment</p>
<p class="redditinteract">
<img class="redditinteracticon" alt="reddit upvote icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880423739903336468/reddit-upvote-icon.png" />
<span class="redditinteracttext c0 pr0">Vote</span>
<img class="" alt="reddit downvote icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880425104876638318/reddit-downvote-icon.png" />
<img class="redditinteracticon" alt="comment icon" src="https://cdn.discordapp.com/attachments/543394832454909963/880431802823622687/reddit-comment-icon.png" />
<span class="redditinteracttext">Reply</span>
<span class="redditinteracttext">Share</span>
<span class="redditinteracttext">Report</span>
<span class="redditinteracttext">Save</span>
</p>
</div>
</div>
You can continue this for a number of levels, probably until you can no longer comfortably read the comment because each new level will add another indent. Just make sure you keep an eye on those div tags.
If you want to suggest that a discussion continues without showing the other comments, you can add the following before the comment's closing div:
<p class="redditcontinue">Continue this thread →</p>
or
<p class="redditcontinue">1 more reply</p>
Happy coding!
