Difference between revisions of "Template:xkcd"
| Line 13: | Line 13: | ||
Note that the styling of the links (the icon after them) is defined in [[MediaWiki:Common.css]]. | Note that the styling of the links (the icon after them) is defined in [[MediaWiki:Common.css]]. | ||
| + | |||
| + | To link to an explanation of a specific comic, use [[Template:exp]]. | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 18:54, 10 December 2025
This template provides a shortcut markup for creating a link to the actual xkcd.com site.
Usage: {{xkcd|comic number|optional link text}}
Examples:
- {{xkcd|1040}} results in 1040.
- {{xkcd|1040|Server Problem}} results in Server Problem (links to the same page, but with the link text "Server Problem" instead of "1040").
- (recommended) {{xkcd|1040|1040: Server Problem}} results in 1040: Server Problem (links to the same page, but with the link text "Server Problem" instead of "1040").
Note that the styling of the links (the icon after them) is defined in MediaWiki:Common.css.
To link to an explanation of a specific comic, use Template:exp.
