@model Project_Unite.Models.WikiViewModel @{ if (Model.Page == null) { ViewBag.Title = "Wiki"; } else { ViewBag.Title = Model.Page.Name + " - Wiki"; } } @helper CreateCategoryListRecursive(Project_Unite.Models.WikiCategory category) {
  • @category.Name
  • } @if (!string.IsNullOrWhiteSpace(ViewBag.Error)) {

    @ViewBag.Error

    } @if (Request.IsAuthenticated) { }

    Pages

    • @Html.ActionLink("Index", "Index")
    • @Html.ActionLink("Random page", "Random")
    • @foreach(var cat in Model.Categories) { @CreateCategoryListRecursive(cat); }
    @if (Model.Page != null) {

    @Model.Page.Name

    if(Model.Page.AmbiguousReferences.Length > 0) {

    Ambiguity detected. Here's a list of pages that may relate to this page.

      @foreach(var page in Model.Page.AmbiguousReferences) {
    • @Html.ActionLink(page.Name, "Index", new { id = page.Id })
    • }
    } var edit = Model.Page.EditHistory.First();

    Last edited by @Html.UserLink(edit.UserId) on @edit.EditedAt

    if (Request.IsAuthenticated) { }

    @Html.Markdown(Model.Page.Contents)

    if (Request.IsAuthenticated) { } } else {

    ShiftOS Wiki

    The ShiftOS Wiki is a community and developer-driven handbook for everything you need to know about ShiftOS. It contains tutorials, guides, code examples, and loads of other interesting things. Read on!

    How to post to and edit the wiki

    If you have a ShiftOS account, and have the right privileges to a category, simply click the "Add new page" button at the top, and fill in the blanks.

    If you don't have a ShiftOS account, this is the perfect time to @Html.ActionLink("create one", "Register", "Account")! Without one, how would you play the game?

    Adding categories

    Adding categories is only available to those with the `CanManageWikiCategories` access control definition. If you have this ACL definition, you may manage wiki categories from the Developer Control Panel.

    This wiki supports Markdown!

    You can use Markdown in the wiki, just like you would in a forum post, skin description or user status update. We use the CommonMark standard - which is the standard used by websites and software like GitHub, Discourse, Gitter, and various others.

    }