
內容簡介
RDP Wiki Embed 可以從任何 MediaWiki 網站(如 wikipedia.org)中提取內容並嵌入在頁面和文章中。它會剝除和重新格式化內容,允許您提供一些參數來指定如何工作。
RDP Wiki Embed 也可以尋找安全部分中列出的所有 wiki 網站的所有連結,並在單擊鏈接時強制在當前頁面上替換內容為在 wiki 網站中找到的內容。訪客將能夠在不離開您的網站的情況下閱讀 wiki 內容。
RDP Wiki Embed 沒有編碼以適用於塊編輯器。因此,縮略詞按鈕將不起作用。需要安裝恢復經典編輯器的外掛程式才能使縮略詞按鈕工作。獲取經典編輯器外掛程式此處。
支援
在 WordPress.org 支援論壇上發帖不會發送新問題的通知。因此,請使用我的網站上的聯繫表格發送支援請求。
贊助
此外掛程式通過實驗室信息學研究所,有限公司的慷慨資助提供。
用法
使用縮略詞 [rdp-wiki-embed] 嵌入 MediaWiki 內容。接受以下引數:
url:(必需)要在此頁面上嵌入的 wiki 文章的網址
title_show:0(零)以隱藏標題或 1 以顯示
toc_show:0(零)以隱藏目錄(TOC)或 1 以顯示
edit_show:0(零)以隱藏編輯鏈接或 1 以顯示
infobox_show:0(零)以隱藏信息框或 1 以顯示
unreferenced_show:0(零)以隱藏“未引用”的警告框或 1 以顯示
wiki_update:在刷新內容之前存儲 wiki 頁面內容的時間(以分鐘為單位)
wiki_links:單擊到 wiki 內容的鏈接後的行為-默認或覆蓋
wiki_links_open_new:0(零)以在同一窗口中打開 wiki 鏈接或 1 以在新窗口中打開
global_content_replace:1 以將嵌入覆蓋行為應用於站點上的所有 wiki 鏈接,或 0(零)
global_content_replace_template:用於替換內容的頁面模板
source_show:0(零)以隱藏歸屬或 1 以顯示
pre_source:來源標籤的文字
範例
基本用法:
[rdp-wiki-embed url='http://en.wikipedia.org']
顯示目錄和信息框,但隱藏標題、編輯鏈接和“未引用”的警告框:
[rdp-wiki-embed url='http://en.wikipedia.org' title_show='0' toc_show='1' edit_show='0' infobox_show='1' unreferenced_show='0']
關於覆蓋和全局內容替換
全局內容替換需要啟用覆蓋模式。當在覆蓋模式下替換內容時,將應用外掛程式設置頁面上的默認縮略詞設置到從 wiki 網站獲取的內容。
Action Hook 參考:
rdp_we_scripts_enqueued
參數:無
在加載插件特定前端腳本後觸發
rdp_we_styles_enqueued
參數:無
在加載插件特定前端樣式後觸發
過濾器參考
rdp_we_scrub_remove_elements_filter
參數:要從原始 wiki 內容中刪除的 HTML 元素數組
返回:要從緩存之前的 wiki 內容中刪除的 HTML 元素數組
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
RDP Wiki Embed will pull content from any MediaWiki website (such as wikipedia.org) and embed it in pages and posts. It strips and reformats the content, allowing you to supply some arguments to dictate how this works.
RDP Wiki Embed can also look for all links to wiki sites listed in the Security section and force the content on the current page to be replaced with the content found at the wiki site when the link is clicked. Visitors will be able to read wiki content without leaving your site.
RDP Wiki Embed is not coded to work with the block editor. Therefore, the shortcode button will not work. A plugin that restores the classic editor will need to be installed for the shortcode button to work. Get the Classic Editor Plugin here.
Support
Posting to the WordPress.org Support Forum does not send me notifications of new issues. Therefore, please send support requests using the contact form on my web site.
Sponsor
This plug-in brought to you through the generous funding of Laboratory Informatics Institute, Inc.
Usage
Use the shortcode [rdp-wiki-embed] for embedding MediaWiki content. The following arguments are accepted:
url: (required) the web address of the wiki article that you want to embed on this page
title_show: 0 (zero) to hide title or 1 to show
toc_show: 0 (zero) to hide table of contents (TOC) or 1 to show
edit_show: 0 (zero) to hide edit links or 1 to show
infobox_show: 0 (zero) to hide info boxes or 1 to show
unreferenced_show: 0 (zero) to hide “unreferenced” warning boxes or 1 to show
wiki_update: number of minutes content of the wiki page will be stored on your site, before it is refreshed
wiki_links: behavior after clicking a link to wiki content – default or overwrite
wiki_links_open_new: 0 (zero) to open wiki links in same window or 1 to open in new window
global_content_replace: 1 to apply embed overwrite behavior to all wiki links on the site or 0 (zero)
global_content_replace_template: page template to use for replaced content
source_show: 0 (zero) to hide attribution or 1 to show
pre_source: text for source label
Examples
Basic uasge:
[rdp-wiki-embed url=’http://en.wikipedia.org’]
Display table-of-contents and info boxes, but hide title, edit links and ‘unreferenced’ warning boxes:
[rdp-wiki-embed url=’http://en.wikipedia.org’ title_show=’0′ toc_show=’1′ edit_show=’0′ infobox_show=’1′ unreferenced_show=’0′]
About Overwrite and Global Content Replace
Global content replace requires Overwrite mode to be enabled. When content is being replaced in Overwrite mode, the Default Shortcode Settings on the plug-in’s settings page will be applied to content that is fetched from wiki sites.
Action Hook Reference:
rdp_we_scripts_enqueued
Param: none
Fires after enqueuing plug-in-specific frontend scripts
rdp_we_styles_enqueued
Param: none
Fires after enqueuing plug-in-specific frontend styles
Filter Reference
rdp_we_scrub_remove_elements_filter
Param: Array of HTML elements to remove from the raw wiki content, before being cached
Return: Array of HTML elements to remove from the raw wiki content, before being cached
rdp_we_prerender_remove_elements_filter
Param: Array of HTML elements to remove from the wiki content, before rendering to browser
Return: Array of HTML elements to remove from the wiki content, before rendering to browser
