This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

Template:Goto/doc

From Nocyclopedia
[[File:| center | Hmmm... | 50px]]This is a documentation subpage for Template:Goto.
It contains usage information, categories and other content that is not part of the original template page.

Usage

Used with {{Get}}, this allows one to send and return a number on the current page. This can be used to change the content of an existing page without having to create a separate page for each change, but just adjust the existing page.

Syntax

{{Goto|''desired number''|''Text to display - optional''}}

Examples

The current number is 0 using {{Get}}, or the number is Template:CGI using {{CGI}}. (Note that although this does use the same technique as {{CGI}}, it does have a larger number of variables it can cope with.)

Syntax Result
{{Goto|1}} Go to page 1
{{Goto|1|Proceed to page 1}} Proceed to page 1
{{Goto|1000|Set number to 1000}} Set number to 1000
{{Goto|{{#expr:{{Get}} + 1}}|Go to next page}} Go to next page
{{Goto|{{#expr:{{Get}} - 1}}|Return to previous page}} Return to previous page
{{Goto|583|Do you pick up the sword?}} Do you pick up the sword?
{{Goto|{{#expr:({{Get}} + 1) mod 10}}|Display text|Hover text|color:black;}} Display text