Template:HackerNews: Difference between revisions
From Rest of What I Know
Created page with "<templatestyles src="Template:HackerNews/styles.css" /> {{#invoke:HackerNewsUtil|render | url = {{{url|}}} | site = {{{site|}}} | author = {{{author|}}} | title = {{{title|}}} | text = {{{text|}}} | date = {{{date|}}} | datetime = {{{datetime|}}} | score = {{{score|}}} | comments = {{{comments|}}} | refname = {{{refname|}}} <!-- optional: override footnote name --> | ref = {{{ref|}}} <!-- set t..." |
No edit summary |
||
| Line 4: | Line 4: | ||
| site = {{{site|}}} | | site = {{{site|}}} | ||
| author = {{{author|}}} | | author = {{{author|}}} | ||
| author_url = {{{author_url|}}} | |||
| title = {{{title|}}} | | title = {{{title|}}} | ||
| text = {{{text|}}} | | text = {{{text|}}} | ||
| Line 10: | Line 11: | ||
| score = {{{score|}}} | | score = {{{score|}}} | ||
| comments = {{{comments|}}} | | comments = {{{comments|}}} | ||
| comment = {{{comment|}}} <!-- set to "yes" for comment posts --> | |||
| refname = {{{refname|}}} <!-- optional: override footnote name --> | | refname = {{{refname|}}} <!-- optional: override footnote name --> | ||
| ref = {{{ref|}}} <!-- set to "no" to suppress footnote --> | | ref = {{{ref|}}} <!-- set to "no" to suppress footnote --> | ||
| Line 30: | Line 32: | ||
; Notes | ; Notes | ||
* <code>|site=</code> is optional; defaults to "news.ycombinator.com". | * <code>|site=</code> is optional; defaults to "news.ycombinator.com". | ||
* <code>|comment=yes</code> will prefix the title with "Comment on " to distinguish comments from stories. | |||
* <code>|author=</code> links will appear in the footnote reference. Multiple authors can be separated with <code>|</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>. | * 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>. | * Ensure the page includes <code><references /></code> or <code>{{Reflist}}</code>. | ||
Latest revision as of 23:32, 20 October 2025
Hacker News
Usage[edit]
{{HackerNews
| url = https://news.ycombinator.com/item?id=42133777
| author = pg
| title = Show HN: Lisp Machine Revival
| text = A modern reimplementation of Symbolics Genera in WebAssembly…
| date = 2025-09-12
| score = 842
| comments = 219
}}
- Notes
|site=is optional; defaults to "news.ycombinator.com".|comment=yeswill prefix the title with "Comment on " to distinguish comments from stories.|author=links will appear in the footnote reference. Multiple authors can be separated with|.- 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
.
- The Hacker News logo is an inline SVG for portability:
<svg xmlns="http://www.w3.org/2000/svg" height="18" viewBox="4 4 188 188" width="18"><path d="m4 4h188v188h-188z" fill="#f60"/><path d="m73.2521756 45.01 22.7478244 47.39130083 22.7478244-47.39130083h19.56569631l-34.32352071 64.48661468v41.49338532h-15.98v-41.49338532l-34.32352071-64.48661468z" fill="#fff"/></svg>
