Template:Text adventure
| This template uses TemplateStyles: |
This template allows you to create text adventures right here on Uncyclopedia. Here is a link to an example text adventure.
Usage
You use it to make text adventure games. Here is a very simple example of what it looks like.
{{text adventure}} <!-- For the WhatLinksHere page -->
{{#switch:{{Get}} <!-- This is **necessary**, otherwise it won't work -->
|0 =
{{text adventure
|title = Example Adventure!
|image = example.png
|text = This is the text that shows up underneath the image.
{{text adventure choice|1|This is a choice. The number represents the "page" you go to.}}
{{text adventure choice|2|This is another choice. Aren't you special.}}
}}
|1 =
{{text adventure
|image = example.png
|text = This is another page. You should've ended up here by clicking one of the choices.
}}
|2 =
{{text adventure
|image = example.png
|text = Aren't you special?
}}
}} <!-- Don't forget to close your tags -->
Images
By default, images will be 640px in width. It is strongly recommended that you use the {{notorphan}} template on the file summary of the images you may use, or else they might get deleted.
Third-party tool
An experimental visual Text Adventure editor can be found here. Under "File", you can save and load your text adventures as a .json file. Under "Wikitext", you can export your text adventure as wikitext which will render as a text adventure on this wiki. You can also import existing text adventures, although it's not that reliable.
Notice: Uncyclopedia is not responsible for the behavior of third-party sites, and is not liable for any lost text adventures!
Article end material
Categories, templates and other end material can be placed at the end of the page inside a function block like this:
{{#ifexpr:{{Get}}=0|
<!-- CATEGORIES AND TEMPLATES BELOW -->
== See also ==
{{Game}}
*[[UnGames:Example Game 2: Electric Boogaloo]]
{{UnGames}}
{{VFH}}
[[Category:Example category]]
<!-- CATEGORIES AND TEMPLATES ABOVE -->
|}}
Anything placed within the 0 offset will categorize the page, but won't show up in the other offsets, providing for a cleaner text adventure experience.