Difference between revisions of "Template:xkcd"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
m (Protected "Template:xkcd": High traffic page ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>[http://xkcd.com/{{{1|}}} {{{2|xkcd {{{1|}}}}}}][[Category:Links to xkcd.com]]</includeonly><noinclude>
+
<includeonly>[https://xkcd.com/{{{1|}}} {{{2|xkcd {{{1|}}}}}}][[Category:Links to xkcd.com]]</includeonly><noinclude>
  
 
This template provides a shortcut markup for creating a link to the actual xkcd.com site.
 
This template provides a shortcut markup for creating a link to the actual xkcd.com site.
Line 6: Line 6:
  
 
'''Examples:'''
 
'''Examples:'''
:<nowiki>{{xkcd|1040}}</nowiki> results in [http://xkcd.com/1040 1040].
+
:<nowiki>{{xkcd|1040}}</nowiki> results in [https://xkcd.com/1040 1040].
:<nowiki>{{xkcd|1040|Server Problem}}</nowiki> results in [http://xkcd.com/1040 Server Problem] (links to the same page, but with the link text "Server Problem" instead of "1040").
+
:<nowiki>{{xkcd|1040|Server Problem}}</nowiki> results in [https://xkcd.com/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]].
 
Note that the styling of the links (the icon after them) is defined in [[MediaWiki:Common.css]].

Latest revision as of 09:15, 24 August 2023


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").

Note that the styling of the links (the icon after them) is defined in MediaWiki:Common.css.