Template:Text adventure

From Illogicopedia
Jump to navigation Jump to search
[edit] [purge] Template-info.svg Template documentation

Example[edit source]

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

Usage[edit source]

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
  |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.-->

Choices[edit source]

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.}}

Custom[edit source]

You can set different parameters to change the default parameters, but you'll have to set it each time you add the text adventure template.

align
{{text adventure
 |align = <!--Default is center.-->
 |image =
 |text =
}}
width
{{text adventure
 |width = <!--Default is 640px.-->
 |image =
 |text =
}}
imgwidth
{{text adventure
 |imgwidth = <!--Default is 640px.-->
 |image =
 |text =
}}
style
{{text adventure
 |style = <!--Empty by default. No need to use "" marks around it.-->
 |image =
 |text =
}}

Misc[edit source]

I made this template because I'm a big fan of squares and I see the worst in everybody.

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.