Template:Reddit: Difference between revisions

From Rest of What I Know
Created page with "{{#invoke:RedditUtil|render | url = {{{url|}}} | subreddit = {{{subreddit|}}} <!-- optional; auto-extracted from url if blank (when possible) --> | author = {{{author|}}} <!-- optional, e.g., u/throwaway123 --> | author_url = {{{author_url|}}} <!-- optional, e.g., https://old.reddit.com/user/throwaway123 --> | title = {{{title|}}} <!-- optional post title --> | text = {{{text|}}} <!-- optional selftext or key excerpt -->..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Reddit/styles.css" />
{{#invoke:RedditUtil|render
{{#invoke:RedditUtil|render
  | url        = {{{url|}}}
  | url        = {{{url|}}}
  | subreddit  = {{{subreddit|}}}   <!-- optional; auto-extracted from url if blank (when possible) -->
  | subreddit  = {{{subreddit|}}}
  | author    = {{{author|}}}     <!-- optional, e.g., u/throwaway123 -->
  | author    = {{{author|}}}
  | author_url = {{{author_url|}}} <!-- optional, e.g., https://old.reddit.com/user/throwaway123 -->
  | author_url = {{{author_url|}}}
  | title      = {{{title|}}}       <!-- optional post title -->
  | title      = {{{title|}}}
  | text      = {{{text|}}}       <!-- optional selftext or key excerpt -->
  | text      = {{{text|}}}
  | date      = {{{date|}}}       <!-- human-readable, e.g., 2025-09-14  -->
  | date      = {{{date|}}}
  | datetime  = {{{datetime|}}}    <!-- ISO-8601 for <time datetime="…">; falls back to |date= -->
  | datetime  = {{{datetime|}}}
  | score      = {{{score|}}}       <!-- optional, e.g., 1.2k -->
| score      = {{{score|}}}
  | comments  = {{{comments|}}}   <!-- optional, e.g., 317 -->
| comments  = {{{comments|}}}
| refname   = {{{refname|}}}      <!-- optional: override footnote name -->
  | ref        = {{{ref|}}}         <!-- set to "no" to suppress footnote -->
  | noreference= {{{noreference|}}} <!-- set to "yes" to suppress footnote -->
}}
}}
<noinclude>
<noinclude>
Line 15: Line 19:
<pre>
<pre>
{{Reddit
{{Reddit
  | url       = https://old.reddit.com/r/sanfrancisco/comments/1ng7jom/pickpocket_gang_active_noticeable_red_headed/
  | url     = https://old.reddit.com/r/sanfrancisco/comments/1ng7jom/pickpocket_gang_active_noticeable_red_headed/
  | author   = u/sf_observer
  | author   = u/sf_observer
  | title     = Pickpocket gang active
  | title   = Pickpocket gang active
  | text     = Saw three incidents near Powell yesterday…
  | text     = Saw three incidents near Powell yesterday…
  | date     = 2025-09-12
  | date     = 2025-09-12
  | score     = 842
  | score   = 842
  | comments = 219
  | comments = 219
}}
}}
</pre>
</pre>
; Notes
* Subreddit auto-extracted from <code>|url=</code>; override with <code>|subreddit=</code>.
* A footnote with the permalink is emitted automatically. Override the name with <code>|refname=</code>. Suppress with <code>|ref=no</code> or <code>|noreference=yes</code>.
* Ensure the page includes <code>&lt;references /&gt;</code> or <code>{{Reflist}}</code>.
</noinclude>
</noinclude>

Latest revision as of 03:14, 15 September 2025

Reddit

Usage[edit]

{{Reddit
 | url      = https://old.reddit.com/r/sanfrancisco/comments/1ng7jom/pickpocket_gang_active_noticeable_red_headed/
 | author   = u/sf_observer
 | title    = Pickpocket gang active
 | text     = Saw three incidents near Powell yesterday…
 | date     = 2025-09-12
 | score    = 842
 | comments = 219
}}
Notes
  • Subreddit auto-extracted from |url=; override with |subreddit=.
  • A footnote with the permalink is emitted automatically. Override the name with |refname=. Suppress with |ref=no or |noreference=yes.
  • Ensure the page includes <references /> or

.