Difference between revisions of "Template:what if"
(Cleaned it up and added examples. Also went from http to https) |
m |
||
Line 7: | Line 7: | ||
'''Examples:''' | '''Examples:''' | ||
− | * <code><nowiki>{{what if|</nowiki><font color="SeaGreen">'''''158'''''</font>|<font color="SeaGreen">'''''Hot Banana'''''</font><nowiki>}}</nowiki></code> results in | + | * <code><nowiki>{{what if|</nowiki><font color="SeaGreen">'''''158'''''</font>|<font color="SeaGreen">'''''Hot Banana'''''</font><nowiki>}}</nowiki></code> results in <code>{{what if|158|Hot Banana}}</code> |
* <code><nowiki>{{what if|</nowiki><font color="SeaGreen">'''''158'''''</font><nowiki>}}</nowiki></code> '''(not recommended)''' results in <code>{{what if|158}}</code>. It links to the same page, but uses the number instead of the optional link text. | * <code><nowiki>{{what if|</nowiki><font color="SeaGreen">'''''158'''''</font><nowiki>}}</nowiki></code> '''(not recommended)''' results in <code>{{what if|158}}</code>. It links to the same page, but uses the number instead of the optional link text. |
Revision as of 10:33, 27 July 2023
This template provides a shortcut markup for creating a link to a what if? article on xkcd.com.
Usage: {{what if|question number|optional link text}}
Examples:
-
{{what if|158|Hot Banana}}
results inHot Banana
-
{{what if|158}}
(not recommended) 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.