Yada Wiki

Description

Yada Wiki provides a wiki post type, custom tags and categories, an index, and a table of contents option. The plugin allows you to link your wiki pages together using the wiki page titles.

There are two easy to use shortcode buttons available on the editor toolbar. Rather than try to remember the shortcodes and their values, it is recommended that you use these buttons to generate the shortcodes for you.

The “Add Wiki Link” Button:
When you click the first button, the add wiki link button, a pop-up opens where you enter the title of the wiki page you are linking to in the “Link” text box. You can optionally enter text into the “Show” text box that you want to show for the link, or leave that blank to just show the title.

When you click “OK”, a shortcode is inserted into your edit window at the cursor location. For example to link to a wiki page called “How To Make Iced Coffee” but show the text for the link as “How To Make My Favorite Drink”:

[yadawiki link=”How To Make Iced Coffee” show=”How To Make My Favorite Drink”]

You use Wiki Link shortcodes to create the structure of linked pages.

The “Add Wiki Listing” Button:
The Add Wiki Listing button gives you three options for adding some collected output.

Output TOC Page
The first option inserts a shortcode that will output your “TOC” page. With Yada Wiki, you can create a special wiki page with the title of “TOC” that will serve as the table of contents for your wiki. You can use wiki links and style the table of contents as you like in the post editor. Selecting this option allows you to embed the TOC page in another page. For example:

[yadawikitoc show_toc=”true”]

Output Wiki Category
The second option inserts a list of the wiki pages for one of your wiki categories. You can optionally choose to output the list by title or by creation date. For example:

[yadawikitoc show_toc=”true” category=”Drinks” order=”title”]

Output Index
The third option inserts an index of your wiki pages or categories. The output is in a responsive table-like grid and you can choose the number of columns. For example, to output wiki pages:

[yadawiki-index type=”pages” columns=”4″]

An example for listing all wiki categories by title:

[yadawiki-index type=”all-categories-name” columns=”3″]

Sidebar Widget:
There is also a Yada Wiki widget for showing the TOC page and a list of article titles for a given category in the sidebar. Please see the FAQ section for information about using the sidebar widget.

Video Walk-through:
This video provides a walk-though of all of the features:

Acknowledgements

The user JulianSMoore has been very helpful in suggesting improvements and reviewing changes.

Screenshots

  • These are the editor buttons for the Yada Wiki shortcodes.

Installation

You can install the Yada Wiki plugin either via the WordPress.org plugin directory or by uploading the files to your server. Once the plugin is installed, you can activate the plugin through the Plugins menu in WordPress.

FAQ

  • Why are some wiki links red?

When viewing wiki pages, if the wiki page exists it shows as a link. If it does not exist, and the user has permissions to edit posts, then the link shows up in red to indicate that the page needs to be created. You can click on the link to go to the page editor to create the new page. If the user does not have permissions, then they see the title in red, but no link is available.

  • Can I include external links and links to non-wiki pages in my wiki?

Yes, but the wiki shortcode is only for linking to wiki pages. If you want to link to external sites or regular posts or pages, then use the usual methods in the post editor to do so, but not the Yada Wiki shortcode.

  • Can I use the wiki shortcode in non-wiki posts and pages?

Yes, there is a Yada Wiki sub-menu under the main settings menu where you can enable showing the Yada Wiki shortcode buttons when editing posts and pages. Remember, the wiki shortcode is only for linking to wiki pages.

  • How can I add a wiki table of contents menu in the sidebar?

There is now a sidebar widget so that you can include the TOC or a category list of wiki articles. It is a multi-instance widget so you can have more than one version of the widget active at a time.

  • Can I use the sidebar widget with Page Builder plugins?

The sidebar widget works well in regular widget areas, but does not work when embedded using Page Builder plugins.

  • Can I nest shortcodes or include multiple TOC Category shortcodes on the same page?

You can include regular wiki link shortcodes in your TOC. You can also add multiple TOC Category shortcodes to a regular wiki page. Adding TOC shortcodes to the TOC page, or adding TOC Category shortcodes to the TOC page does not work.

  • Why don’t I see all of the categories when I output an index of categories?

Empty categories, with no wiki pages or child categories assigned, are excluded. Also, the index of a category or all categories only goes down to one level of child categories.

  • Why is there the option to sort the category index by slug?

Some people may have categories that are people’s names, such as book authors. The alternate ability to sort by slug gives some flexibility for custom sorting if, for example, you use the author’s last name for the slug.

  • How can I display the custom tags and categories?

You can use the tag cloud widget to display the wiki custom tags. There are also plugins in the WordPress repository that will allow you to display custom categories (or taxonomies).

  • How do I control comment options?

Yada Wiki does not support comments by default. There is a Yada Wiki sub-menu under the main settings menu where you can enable comment options and set defaults for new wiki pages.

  • After upgrading the plugin the wiki editor buttons are gone. How do I get them back?

The way the buttons are loaded was changed in version 2. If you do not see the buttons you may need to clear your browser cache.

  • Is the plugin compatible with WordPress multisite?

The plugin is not compatible with multisite.

  • Can I use custom permalinks?

The wiki links are based on links to wiki page titles, so it is expected that you will use the “Post name” type of permalink structure.

  • How can I change the colors of the wiki links?

When rendered on the viewed page, wiki links are given a CSS class related to their post status (published, draft, etc). You can override the default colors in your style sheet. This is a convenience for those with edit permissions who might not realize that wiki articles have not been published. Note that WordPress permissions still control what posts can actually be viewed, this is just related to the display of wiki links. The classes are:

When viewing links for users with the “edit_posts” capacity:

  • .wikilink-new (post does not exist – a link to create it)
  • .wikilink-trash (post is in the trash – just text, no link)
  • .wikilink-pending (post has the status of “draft”, “auto-draft”, “pending”, or “future” – a regular link)
  • .wikilink-private (post has a status of “private” – a regular link)
  • .wikilink-published (the post is published – a regular link)
  • .wikilink-other (default if not one of the above. Applied to posts with a custom post status or to those with a status of “inherit” – a regular link)

When viewing links for users without the “edit posts” capacity:

  • .wikilink-no-edit (post does not yet exist or the post has the status of “trash”, “draft”, “auto-draft”, “pending”, or “future” – just text, no link)
  • .wikilink-published (the post is published – a regular link)
  • .wikilink-private (post has a status of “private” – a regular link)
  • .wikilink-other (default if not one of the above. Applied to posts with a custom post status or to those with a status of “inherit” – a regular link)

Reviews

Does exactly what it says on the tin!

This Wiki is near perfect! Doesn’t get in the way, no nags, no issues. Wiki pages show up under /wiki/ just as they should.

The only thing missing would be to replace the current listing at /wiki/ with a static page where other pages can be linked in. It also uses the default settings for publicize, so if you don’t want to tweet every page created you need to manually disable that per-page before posting.

While I’m hoping that these aspects will eventually be configurable, as it is right now it is still the best WP Wiki of the ones I’ve tried.

Great Wiki Plugin

I use this plugin for my Dungeons and Dragons site to help me keep track of everything. I tried using a separate MediaWiki install, but I was frustrated with trying to integrate it into a cohesive site. Yadawiki lets me create the relational web I want to within the WordPress framework.

Awesome plugin

I just added a tiny wiki to my WordPress site, which is something I had always planned to do. Yada makes this very easy and comfortable.

Too Fussy

The only advantage this plugis has is, it gets updated. Other wise the author wants you do to to much when a lot of that crap could be animated.

Read all 8 reviews

Contributors & Developers

“Yada Wiki” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Yada Wiki” into your language.

Interested in development?

Browse the code or subscribe to the development log by RSS.

Changelog

2.8

  • Added the option to output an index of a category or categories and sort them by name or slug. The slug option allows for custom sorting.
  • Fixed issue with uneven columns on index pages. Thanks to @caskets for the fix.
  • Tweaks to make sure that the TOC shortcode dialog reset to defaults if used more than once on the same page.
  • Updated the FAQ with some information about outputting an index of categories.

2.7

  • Added the index shortcode option which outputs a grid of wiki pages using a responsive table-like format.
  • Added help text to the Links pop-up dialog.
  • Added help text to the TOC pop-up dialog.
  • Separated the TOC options in the TOC pop-up dialog, showing and hiding options depending on the type of output desired so as to make the choices more obvious.
  • Reworked the read me file to simplify the description section, add shortcode examples, and provide a link to a walk-through video.

2.6.3

  • Fixed TOC category output for shortcode and widget.

2.6.2

  • Updated widget constructor so as to remove PHP 7 deprecation warning.

2.6.1

  • Fixed post status filter so all posts show as they should.
  • Added additional CSS classes.

2.6

  • Added different CSS classes for wiki links depending on post status. Added style sheet for wiki link classes.
  • Added option to show Yada Wiki editor buttons on the editing screen for all post types, in addition to the wiki post type.

2.5.1

  • Update to get files in sync and fix tagging error.

2.4.0

  • Added filter to override default display of categories in the post editor to maintain order and hierarchy.
  • Fixed problem with shortcode pop-up display due to conflict with other plugins.

2.3.0

  • Adjusted version number to keep updates in sync.

2.2.0

  • Added optional support for comments.
  • Added a settings page to control comment options for wiki pages.
  • Removed old style PHP constructor in preparation for 4.3.
  • Fixed deprecated function calls that gave a debug warning.

2.1.0

  • Adjusted user permissions so that roles have the same edit abilities for wiki articles as they do for regular posts.

2.0.0

  • Changed the editor dialogs to be in-line jQuery UI dialogs.
  • The links dialog has an AJAX look-up of existing wiki post titles.
  • The TOC dialog has a drop-down list of categories.
  • A sidebar TOC / category list widget was added.

1.2.0

  • Added editor dialog to make it easier to enter the wiki shortcode parameters

1.1.0

  • Change to make wiki categories hierarchical

1.0.1

  • Fix for empty post type

1.0

  • Initial release