1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained XenCarta FAQ

XenCarta FAQ

  1. Moses

    Moses Well-Known Member

    Here's a thread to share knowledge of XenCarta. Please feel free to contribute guides, no matter how basic you feel the task you're describing to be.

    Please note there is a XenCarta template repository available here.

    Index
    Changing the Wiki sidebar width
    Fix for (top) and (hide)
    Which foreign language translations are available?
    H# Heading Code
    Number of columns in Wiki Navigation sidebar block
    Search Results - Add a Wiki avatar
    Sortable Tables HTML
    Templates 101
    Template Variables - Hello World Example
    Template Gotchas
     
    Neal, Vitor Dos Reis, wtgw and 7 others like this.
  2. Moses

    Moses Well-Known Member

    Changing the Wiki sidebar width
    The default wiki sidebar is 250 pixels wide.

    To change this to 200px wide, while not affecting the sidebar on your forum, add the following code to your EWRcarta.css template
    Code:
    .sidebar {width: 200px;}
    .mainContainer .mainContent {margin-right: 210px;}
    .formPopup .textCtrl, .formPopup .button {width: 182px;}
    .formPopup .controlsWrapper .textCtrl {width: 172px;}
    .formPopup {width: 200px;}
    To change this to 450px wide, while not affecting the sidebar on your forum, add the following code to your EWRcarta.css template
    Code:
    .sidebar {width: 450px;}
    .mainContainer {margin-right: -460px;}
    .mainContent {margin-right: 460px;}
     
    ChemicalKicks likes this.
  3. Moses

    Moses Well-Known Member

    Fix for (top) and (hide)

    The current version of XenCarta shows (top) and (hide) on all heading tags, however these are not working correctly. The following CSS change to XENcarta.css will remove these links from view.

    find
    Code:
    .wikiPage .wikiContent .toggle { margin-left: 5px; text-decoration: none; font-size: 10px; display: [B]inline[/B][B]-block[/B]; } 
    replace
    Code:
     .wikiPage .wikiContent .toggle { margin-left: 5px; text-decoration: none; font-size: 10px; display: [B]none[/B]; }
     
    ChemicalKicks likes this.
  4. Moses

    Moses Well-Known Member

    Sortable Tables HTML

    XenCarta supports sortable tables, the following wiki code when added into an HTML article will be sortable.

    Code:
    <table class="sortable">
    <tr><th>Name</th><th>Wallaby No</th><th>Captain No</th><th>Caps</th><th>Years</th><th>Position</th></tr>
    <tr><td>Frank Row</td><td>11</td><td>1</td><td>3</td><td>1899</td><td>Centre</td></tr>
    <tr><td>Bob McCowan</td><td>9</td><td>2</td><td>3</td><td>1899</td><td>Fullback</td></tr>
    <tr><td>Stan Wickham</td><td>44</td><td>3</td><td>5</td><td>1903-1905</td><td>Centre</td></tr>
    <tr><td>Frank Nicholson</td><td>41</td><td>4</td><td>2</td><td>1903-1904</td><td>Prop</td></tr>
    </table>
     
  5. Moses

    Moses Well-Known Member

    Templates 101

    The template system in XenCarta can be used to allow users to create great looking content without the need to know HTML, and without compromising your site's security by granting them HTML permissions.

    To add a template, click on 'Administrate Wiki', then 'Create New Template'. Enter your HTML code, then click Save.

    If you edit an existing Template, you will need to click 'Empty Page Cache' to see your changes in the wiki.
     
  6. Moses

    Moses Well-Known Member

    Template Variables - "Hello World" Example

    Templates allow you to render straight HTML, but the real power comes when you pass multiple variables from a wiki article to the template.

    The example template called "hello-world-template" below has two variables which are called var1 and var2. This template simply outputs your two variables, and shows the second variable in bold.

    For this example to work, you would first need to create a template
    Template Name: hello-world-template
    Template Code:
    Code:
    {{{var1}}} <strong>{{{var2}}}</strong>
    Note that when you reference variables in your template, you need to put three curly brackets around them.

    To call this template in a wiki article, you would type the following.
    Code:
    [template=hello-world-template]var1 = Hello | var2 = World[/template]
    The output of the above template would be
     
  7. Moses

    Moses Well-Known Member

    Template Gotchas

    Template variables are case sensitive, calling the above example with the following code would not work!
    Code:
    [template=hello-world-template]VAR1 = Hello | var2 = World[/template]
     
  8. Moses

    Moses Well-Known Member

    Using "Wiki-Like [h#]head[/h#] replacement BB code"

    When you are writing a BBCode Wiki page, if you have a heading that you would like to show in the table of contents for the page, use the following BBCode

    Code:
    [h2]Main Heading[/h2]
    This is a paragraph of plain text under a major heading
     
    [h3]Sub Heading[/h3]
    This is a paragraph of plain text under a sub heading
     
    [h4]Minor Heading[/h4]
    This is a paragraph of plain text under a minor heading
    Note: h4 and lower do not show on the Table of Contents


    Screenshot
    TOC Example.PNG
     
  9. Moses

    Moses Well-Known Member

    Which foreign language translations are available?

    German
    Romanian
     
  10. Moses

    Moses Well-Known Member

    Number of columns in Wiki Navigation sidebar block
     
  11. Moses

    Moses Well-Known Member

  12. Moses

    Moses Well-Known Member

    Moses submitted a new resource:

    XenCarta FAQ (version 1.0) - XenCarta FAQ

    Read more about this resource...
     
  13. Adam Howard

    Adam Howard Well-Known Member

    None of the links in your 1st post seem to work

    XenForo Community - Error
    The requested thread could not be found.
     
  14. Moses

    Moses Well-Known Member

    Fixed
     
    TheVisitors likes this.
  15. gordy

    gordy Well-Known Member

    Is this possible: In a regular forum post keywords can be linked to a wiki entry, automatically? For those of us with repeated words that may need a FAQ attached to them.
     
    Gwynei likes this.
  16. jackrouse

    jackrouse Member

    Can you hide the Wiki while adding content, and only make it viewable to members and guests once you feel you have enough content ?

    Does this automatically links words in posts to Wiki ?
     
  17. Volion

    Volion Active Member

    What happened to the XenCarta template repository available here. ?
     
  18. Dinh Thanh

    Dinh Thanh Well-Known Member

  19. Volion

    Volion Active Member

    Thank you.
     
  20. Xarcell

    Xarcell Well-Known Member

    Is there a way to hide template code unless it is needed?

    For example, one wiki may need 10 variables, another may need 15 variables, but another may need 20 variables. Instead of creating templates with variables ranging from 10-20(or 50 for that matter), is there a way to make part of the template not show unless the variable has a value?

    I'm not coding expert, but in php one can use the "if !empty echo".
     

Share This Page