Difference between revisions of "User:Yfmcpxpj/Sandbox"
(Add explanatory text.) |
(Display the usage code inline.) |
||
| Line 8: | Line 8: | ||
[[1084]] was the first comic to include a 2x image, so comics before that should ''not'' have a "2x" button. | [[1084]] was the first comic to include a 2x image, so comics before that should ''not'' have a "2x" button. | ||
| + | |||
| + | Code: | ||
| + | |||
| + | <pre> | ||
| + | {{User:Yfmcpxpj/Template:comic 2x test | ||
| + | | number = 1083 | ||
| + | | date = July 18, 2012 | ||
| + | | title = Writing Styles | ||
| + | | image = writing_styles.png | ||
| + | | titletext = I liked the idea, suggested by h00k on bash.org, of a Twitter bot that messages prominent politicians to tell them when they've unnecessarily used sms-speak abbreviations despite having plenty of characters left. | ||
| + | }} | ||
| + | </pre> | ||
| + | |||
| + | Result: | ||
{{User:Yfmcpxpj/Template:comic 2x test | {{User:Yfmcpxpj/Template:comic 2x test | ||
| Line 20: | Line 34: | ||
For comics as of [[1084]], insert a "2x" button to link directly to the higher resolution image on xkcd.com. | For comics as of [[1084]], insert a "2x" button to link directly to the higher resolution image on xkcd.com. | ||
| + | |||
| + | Code: | ||
| + | |||
| + | <pre> | ||
| + | {{User:Yfmcpxpj/Template:comic 2x test | ||
| + | | number = 1084 | ||
| + | | date = July 20, 2012 | ||
| + | | title = Server Problem | ||
| + | | image = server_problem.png | ||
| + | | titletext = Protip: Annoy Ray Kurzweil by always referring to it as the 'Cybersingularity'. | ||
| + | }} | ||
| + | </pre> | ||
| + | |||
| + | Result: | ||
{{User:Yfmcpxpj/Template:comic 2x test | {{User:Yfmcpxpj/Template:comic 2x test | ||
Revision as of 21:35, 11 October 2020
2x comic template test
Test template: User:Yfmcpxpj/Template:comic 2x test
Experimental template, adding a "2x" button to automatically link to the double-resolution comic images on xkcd.com.
Comics up to and including 1083 (no 2x image)
1084 was the first comic to include a 2x image, so comics before that should not have a "2x" button.
Code:
{{User:Yfmcpxpj/Template:comic 2x test
| number = 1083
| date = July 18, 2012
| title = Writing Styles
| image = writing_styles.png
| titletext = I liked the idea, suggested by h00k on bash.org, of a Twitter bot that messages prominent politicians to tell them when they've unnecessarily used sms-speak abbreviations despite having plenty of characters left.
}}
Result:
Comics as of 1084
For comics as of 1084, insert a "2x" button to link directly to the higher resolution image on xkcd.com.
Code:
{{User:Yfmcpxpj/Template:comic 2x test
| number = 1084
| date = July 20, 2012
| title = Server Problem
| image = server_problem.png
| titletext = Protip: Annoy Ray Kurzweil by always referring to it as the 'Cybersingularity'.
}}
Result:
| Server Problem |
![]() Title text: Protip: Annoy Ray Kurzweil by always referring to it as the 'Cybersingularity'. |


