plugin-icon

RDP Wiki Embed

RDP Wiki Embed lets you embed content from MediaWiki sites.
Beoordelingen
5
Versie
1.2.20
Actieve installaties
400
Laatst bijgewerkt
Jan 8, 2024
RDP Wiki Embed

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.

Gebruik

Use the shortcode [rdp-wiki-embed] for embedding MediaWiki content. The following arguments are accepted:

  • url: (vereist) het webadres van het wiki-artikel dat je in deze pagina wil invoegen
  • title_show: 0 (nul) om de titel te verbergen of 1 om hem te tonen
  • toc_show: 0 (nul) om de inhoudstafel (TOC) te verbergen of 1 om ze te tonen
  • 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 (nul) om de wiki links in hetzefde scherm te openen of 1 om het in een nieuw scherm te openen
  • 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

Voorbeelden

Basis gebruik:

[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

  • Parameters: geen
  • Fires after enqueuing plug-in-specific frontend scripts

rdp_we_styles_enqueued

  • Parameters: geen
  • Fires after enqueuing plug-in-specific frontend styles

Filter referentie

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
Gratisop Business abonnement
Door te installeren, ga je akkoord met de Servicevoorwaarden van WordPress.com en de voorwaarden voor plugins van derden.
Getest tot
WordPress 6.4.7
Deze plugin kan worden gedownload, zodat je hem op je kan gebruiken.