Difference between revisions of "Template:exp"
(lol) |
(I Forgot you could literally just do 968.) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly>[https://explainxkcd.com/{{{1|}}} {{{2|Explanation of comic {{{1|}}}}}}]</includeonly> | + | <includeonly>[https://explainxkcd.com/{{{1|}}} {{{2|Explanation of comic {{{1|}}}}}}]</includeonly><noinclude> |
This template provides a shortcut markup for creating a link to any comic explanation. | This template provides a shortcut markup for creating a link to any comic explanation. | ||
| Line 8: | Line 8: | ||
*<nowiki>{{exp|1040}}</nowiki> results in [https://explainxkcd.com/1040 1040]. | *<nowiki>{{exp|1040}}</nowiki> results in [https://explainxkcd.com/1040 1040]. | ||
| − | *<nowiki>{{exp|1040|Server Problem}}</nowiki> results in [https://explainxkcd.com/1040 | + | *<nowiki>{{exp|1040|Server Problem}}</nowiki> results in [https://explainxkcd.com/1040 Lakes and Oceans] (links to the same page, but with the link text "Server Problem" instead of "1040"). |
| − | *'''(recommended)'''<nowiki> {{xkcd|1040|1040: Server Problem}}</nowiki> results in [https://explainxkcd.com/1040 1040: | + | *'''(recommended)'''<nowiki> {{xkcd|1040|1040: Server Problem}}</nowiki> results in [https://explainxkcd.com/1040 1040: Lakes and Oceans] (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]]. | ||
| Line 17: | Line 17: | ||
[[Category:Templates]] | [[Category:Templates]] | ||
| + | [[Category:Pages to delete]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 20:11, 10 December 2025
This template provides a shortcut markup for creating a link to any comic explanation.
Usage: {{exp|comic number|optional link text}}
Examples:
- {{exp|1040}} results in 1040.
- {{exp|1040|Server Problem}} results in Lakes and Oceans (links to the same page, but with the link text "Server Problem" instead of "1040").
- (recommended) {{xkcd|1040|1040: Server Problem}} results in 1040: Lakes and Oceans (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 directly to a comic in xkcd.com, use Template:xkcd.
