Difference between revisions of "Template:what if"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
m
m
Line 1: Line 1:
<onlyinclude>
+
<onlyinclude><span class="{{#if:{{#titlematch:*[Ww]hat*|{{PAGENAME}}}}|plainlinks|}}">[https://what-if.xkcd.com/{{{1|}}} {{{2|''what if?'' {{{1|}}}}}}]</span>[[Category:Links to xkcd.com]]</onlyinclude><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].
<span class="{{#if:{{#titlematch:*[Ww]hat*|{{PAGENAME}}}}|plainlinks|}}">[https://what-if.xkcd.com/{{{1|}}} {{{2|''what if?'' {{{1|}}}}}}]</span>[[Category:Links to xkcd.com]]</onlyinclude><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].
 
  
 
'''Usage:''' <code><nowiki>{{what if|question number|article title, recommended}}</nowiki></code>
 
'''Usage:''' <code><nowiki>{{what if|question number|article title, recommended}}</nowiki></code>

Revision as of 18:28, 17 January 2025

what if? This template provides a shortcut markup for creating a link to a what if? article on xkcd.com.

Usage: {{what if|question number|article title, recommended}}

Examples:

  • (not recommended) {{what if|158}} results in what 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.