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 |
||
| Line 1: | Line 1: | ||
{{TemplateStyles|Template:Reddit/styles.css}} | |||
{{#invoke:RedditUtil|render | {{#invoke:RedditUtil|render | ||
| url = {{{url|}}} | | url = {{{url|}}} | ||
| subreddit = {{{subreddit|}}} | | subreddit = {{{subreddit|}}} | ||
| author = {{{author|}}} | | author = {{{author|}}} | ||
| author_url = {{{author_url|}}} | | author_url = {{{author_url|}}} | ||
| title = {{{title|}}} | | title = {{{title|}}} | ||
| text = {{{text|}}} | | text = {{{text|}}} | ||
| date = {{{date|}}} | | date = {{{date|}}} | ||
| datetime = {{{datetime|}}} <!-- | | datetime = {{{datetime|}}} | ||
| | | score = {{{score|}}} | ||
| | | 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 | | url = https://old.reddit.com/r/sanfrancisco/comments/1ng7jom/pickpocket_gang_active_noticeable_red_headed/ | ||
| author | | author = u/sf_observer | ||
| title | | title = Pickpocket gang active | ||
| text | | text = Saw three incidents near Powell yesterday… | ||
| date | | date = 2025-09-12 | ||
| score | | score = 842 | ||
| comments | | 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><references /></code> or <code>{{Reflist}}</code>. | |||
</noinclude> | </noinclude> | ||
Revision as of 03:02, 15 September 2025
Invalid title for TemplateStyles' src attribute.
Reddit
Usage
{{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=noor|noreference=yes. - Ensure the page includes
<references />or
.
