內容簡介
Wiki Embed 外掛旨在幫助您建立一個 (http://wiki.ubc.ca/Resource_Management_Framework "資源管理架構")。
此外掛可從任何Media Wiki網站(例如wikipedia.org)中取得內容。
它會剝除並重新格式化內容,讓您能提供一些參數來控制它的運作方式。
使用方法
使用縮短代碼 [wiki-embed] 來實現 Wiki Embed 外掛。它接受以下參數:
* url:(必填)您想要在此頁面中嵌入的 wiki 文章的網址。
* no-edit:隱藏該 wiki 的「編輯」連結。
* no-contents:隱藏該頁的內容框。
* no-infobox:隱藏該頁的所有裝飾框。
* tabs:使用此選項來將 wiki 文章的部分替換為選項卡。
* accordion:使用此選項來將 wiki 文章的部分替換為手風琴效果。此選項和 'tabs' 選項不能同時使用。
例如:
[wiki-embed url="http://en.wikipedia.org/wiki/Example" no-edit no-contents no-infobox accordion]
設定
外掛的設定可在 「Wiki Embed」->「設定」中找到。
這裡您可以啟用/禁用各種功能、定義縮短代碼默認值,以及配置一些外掛的全域設定。
外掛標籤
開發者團隊
原文外掛簡介
This plugin will pull content from any Media Wiki website (Such as wikipedia.org).
It strips and reformats the content, allowing you to supply some arguments to dictate how this works.
How does it work?
On your WordPress page or post. You embed a shortcode, something like
[wiki-embed url='http://en.wikipedia.org/wiki/WordPress' tabs no-contents no-infobox ]
Once you save the page you will have the content of the wiki embed into you page. Kind of like a youtube video.
Only the page will look like as if it is part of your site. Any changes that are made on the wiki will be reflected on your site, once the cache has expired and a new version of the page is requested from the wiki.
Why would you want to do that?
You can build a better navigation structure to your site, while crowd sourcing the content of the pages inside the wiki.
Win Win.
** Where can I get more info?**
Checkout our Support page http://support.cms.ubc.ca/cms-manual/adding-content/embedding-content-from-the-ubc-wiki/ that is using the wiki-embed plugin to grab content from our [wiki http://wiki.ubc.ca/Documentation:UBC_Content_Management_System/CLF_Theme/How_to_embed_content_from_the_UBC_Wiki
Usage
Wiki Embed is implemented using the shortcode [wiki-embed]. It accepts the following arguments:
* url: (required) the web address of the wiki article that you want to embed on this page.
* no-edit: Hide the “edit” links from the wiki.
* no-contents: Hide the page’s contents box.
* no-infobox: Hide any infobox that appears on the wiki for this page.
* tabs: Replaces the sections of the wiki article with tabs.
* accordion: Replaces the sections of the wiki article with an accordian. This option cannot be used as the same time as ‘tabs’.
Example;
[wiki-embed url=”http://en.wikipedia.org/wiki/Example” no-edit no-contents no-infobox accordion]
Configuration
Settings for the plugin can be found in ‘Wiki Embed’ -> ‘Settings’.
Here you can enable/disable various features, define shortcode defaults, and configure some global settings for the plugin.
