Difference between revisions of "Template:what if"
(adding anchor links) |
m |
||
| Line 1: | Line 1: | ||
| β | <includeonly | + | <includeonly><span id="{{{2|}}}"></span><span class="plainlinks">[https://what-if.xkcd.com/{{{1|}}} {{{2|''what if?'' {{{1|}}}}}}]</span>[[Category:Links to xkcd.com]]</includeonly><noinclude> |
This template provides a shortcut markup for creating a link to a ''[[what if? (blog)|what if?]]'' article on [https://xkcd.com xkcd.com]. | This template provides a shortcut markup for creating a link to a ''[[what if? (blog)|what if?]]'' article on [https://xkcd.com xkcd.com]. | ||
'''Usage:''' <code><nowiki>{{what if|article number|article title, recommended}}</nowiki></code> | '''Usage:''' <code><nowiki>{{what if|article number|article title, recommended}}</nowiki></code> | ||
| + | It also creates an anchor that can be linked to. Just add | ||
'''Examples:''' | '''Examples:''' | ||
Revision as of 15:26, 5 April 2025
This template provides a shortcut markup for creating a link to a what if? article on xkcd.com.
Usage: {{what if|article number|article title, recommended}}
It also creates an anchor that can be linked to. Just add Examples:
-
{{what if|158|Hot Banana}}results inHot Banana
- (not recommended)
{{what if|158}}results inwhat if? 158
It links to the same page, but uses the number instead of the optional link text.
Example in a sentence:
See the ''[[what if? (blog)|what if?]]'' article ''{{what if|158|Hot Banana}}''. results in See the what if? article Hot Banana.
