Template:Text adventure/doc

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

Example

Here is a link to an example text adventure. There are customization options but it's really inconvenient so you shouldn't bother.

Usage

You use it to make text adventure games. Here is a very simple example of what it looks like.

{{#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. Bad things happen if you don't.-->

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.

For example:

{{notorphan|Nobody cares}}

In this case, Nobody cares is the name of the text adventure.

Choices

Text adventure choice templates

> Choice

> Link

> Hidden

To move from one page to another, use the {{text adventure/choice}} template. Here's how it works.

{{text adventure/choice|[number]|This is the text that shows up.}}

The number corresponds to the "page" you want shown. Make sure they're right or you'll fuck things up real good.

To link to a separate page, use the {{text adventure/link}} template. It should work just fine.

{{text adventure/link|[page]|This is the text that shows up.}}

Here's something pointless. If you want to make special hidden choices, you can use the {{text adventure/choice/hidden}}.

{{text adventure/choice/hidden|[number]|This text only shows up when your cursor hovers over it.}}

CSS

Stylesheets are found in Template:Text adventure.css and Template:Text adventure/choice.css.

Misc

I made this template because I wasn't a big fan of Uncyclopedia's Zork page. Yes, this template is essentially an off-brand version of Clickhole's Clickventures, but those corporate fatcats don't own the concept of slideshows with links on them. At least I hope not.

It can get hard to keep track of all the numbers and whatnot, especially since it has to be all in one page. Maybe you can have different 'pages' in subpages and then transclude them like a template? I don't know I haven't done that. MediaWiki wasn't meant for text adventures anyway so just use Ren'Py or whatever if you're super serious.