Template:Text adventure/doc

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

This template allows you to create text adventures right here on Uncyclopedia. Here is a link to an example text adventure.

For use in other wikis, you need mw:Extension:DPLforum.

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 block like this:

{{#ifexpr:{{Get}}=0||<div style="display:none">}}
<!-- STUFF GOES HERE -->
{{#ifexpr:{{Get}}=0||</div>}}

Here is an example of one with categories and templates:

{{#ifexpr:{{Get}}=0||<div style="display:none">}}
<!-- CATEGORIES AND TEMPLATES BELOW -->
== See also ==
{{Game}}
*[[UnGames:Example Game 2: Electric Boogaloo]]
{{UnGames}}
{{VFH}}
{{FA|date=15 May 2028|revision=|stamp={{#ifexpr:{{Get}}=0|yes|no}}}} <!-- Example for featured UnGame -->
{{#ifexpr:{{Get}}=0||</div>}}
[[Category:Example category]]

This should hide article end material in scenes outside the 0 offset, providing a cleaner text adventure experience.