Skip to content

Wiki

  • @wiki <page>
  • @wiki/<switch> <page>[=<value>]

@wiki is the in-game interface to the shared wiki. Wiki pages live in the same database the web portal serves, so anything you create or edit in-game appears on the website immediately, and vice versa.

Page targets may carry a namespace prefix: Help:Markdown Guide refers to the page “Markdown Guide” in the help namespace. Without a prefix, pages live in the main namespace. Valid namespaces: main, help, character, system.

Viewing and discovery:

  • @wiki <page> or @wiki/view <page> - display a page
  • @wiki/list [<namespace>] - list pages
  • @wiki/search <text> - find pages by title or content
  • @wiki/recent [<count>] - recently edited pages (default 10)
  • @wiki/history <page> - revision history

Authoring:

  • @wiki/create <title>=<markdown> - create a page
  • @wiki/edit <page>=<markdown> - replace a page’s content
  • @wiki/append <page>=<markdown> - add a paragraph to a page
  • @wiki/rollback <page>=<revision #> - restore an earlier revision

Administration:

  • @wiki/delete <page> - delete a page (wizard)
  • @wiki/protect <page>, @wiki/unprotect <page> - restrict edits to wizards (wizard)
  • @wiki/publish <page>, @wiki/unpublish <page> - publish or mark as draft (wizard)
  • @wiki/category <page>=<category> - set or clear the page’s category
  • @wiki/tag <page>=<tag> <tag> ... - replace the page’s tags

The /noeval switch may be combined with any of the above to suppress softcode evaluation of the arguments.

Page content is Markdown; see help markdown or the wiki’s own “Help:Markdown Guide” page (@wiki help:markdown_guide) for the supported syntax. Live listing blocks (::: category ...) render on the web portal and appear in-game as a placeholder.

See Also:

  • @wiki/create <title>=<markdown>
  • @wiki/edit <page>=<markdown>
  • @wiki/append <page>=<markdown>
  • @wiki/rollback <page>=<revision #>

@wiki/create makes a new wiki page. The title may carry a namespace prefix (@wiki/create Help:House Rules=# House Rules); the page’s URL slug is derived from the title (lower-case, spaces become underscores).

@wiki/edit replaces a page’s entire Markdown body. @wiki/append adds the given Markdown as a new paragraph at the end — handy for building up a page from a telnet client one block at a time. Every edit records a revision; see [@wiki/history].

@wiki/rollback restores the page body from an earlier revision (find the number with [@wiki/history]). The restore is a normal edit: it creates a NEW revision rather than rewriting history, so a rollback can itself be rolled back. The web portal offers the same action via the Restore button in each page’s history dialog.

Protected pages can only be edited by wizards. Each page records its author and last editor by dbref.

> @wiki/create Combat Primer=# Combat Primer
WIKI: Created page 'Combat Primer' (combat_primer).
> @wiki/append combat_primer=Roll initiative with `+init`.
WIKI: Appended to 'Combat Primer' (now rev 2).

See Also:

  • @wiki/delete <page>
  • @wiki/protect <page> and @wiki/unprotect <page>
  • @wiki/publish <page> and @wiki/unpublish <page>
  • @wiki/category <page>=<category>
  • @wiki/tag <page>=<tag> <tag> ...
  • @wiki/history <page>

Deleting, protecting, and publishing are wizard-only. Deletion removes the page and its entire revision history. Protected pages refuse edits from non-wizards both in-game and on the web portal. Unpublished pages are drafts: hidden from anonymous web visitors and from the sitemap, but still visible to logged-in users and in-game.

Categories and tags group pages for the web portal’s listings and the wiki’s live ::: category blocks. Tags are space-separated; both are stored lower-case. Setting an empty category clears it.

@wiki/history lists every revision with its editor, date, and edit summary.

See Also:

  • wiki(<page>)
  • wiki(<page>, <field>)

Returns information about a wiki page. With one argument, returns the page’s plain-text content. The page target accepts a namespace prefix (wiki(help:markdown_guide)).

The optional second argument selects a field:

  • text - plain text content (the default)
  • markdown - the raw Markdown source
  • title - the display title
  • category - the category, or an empty string
  • tags - space-separated tag list
  • namespace - main, help, character, or system
  • revision - the current revision number
  • updated - the last-edit time as a Unix timestamp (secs)
  • author - the dbref of the page’s creator

Returns #-1 NO SUCH WIKI PAGE when the page does not exist.

> think wiki(home, title)
Home
> think wiki(help:markdown_guide, revision)
1

See Also:

  • wikilist()
  • wikilist(<namespace>)

Returns a space-separated list of wiki page references, optionally restricted to one namespace. Main-namespace pages appear as their slug; other pages as namespace:slug — both forms are valid inputs to wiki() and @wiki.

> think wikilist(help)
help:markdown_guide

See Also:

  • wikisearch(<text>)

Returns a space-separated list of page references whose title or content contains (case-insensitive). Limited to the first 100 matches.

> think wikisearch(combat)
combat_primer house_rules

See Also:

  • wikirecent()
  • wikirecent(<count>)

Returns a space-separated list of the most recently edited page references, newest first. defaults to 10 and is clamped to 1-50.

See Also: