Loading...
 
Skip to main content

Plugin Schema

Purpose

SCHEMA injects a JSON-LD block into page output.

Preference

Enable:

  • wikiplugin_schema

Syntax

Copy to clipboard
{SCHEMA(type="Article" json='{"headline":"My title","description":"My summary"}')}

Parameters

  • type (required): Schema.org type (Article, Product, Event, Organization, etc.)
  • json (required): JSON body (without @context and @type)


The plugin automatically adds:

Output

The plugin returns no visible body text.
It outputs:

Copy to clipboard
<script type="application/ld+json">...</script>

Examples

Product

Copy to clipboard
{SCHEMA(type="Product" json='{ "name":"Ultra Widget", "description":"Compact widget", "brand":{"@type":"Brand","name":"Acme"}, "offers":{"@type":"Offer","price":"29.90","priceCurrency":"USD","availability":"https://schema.org/InStock"} }')}

FAQPage

Copy to clipboard
{SCHEMA(type="FAQPage" json='{ "mainEntity":[ {"@type":"Question","name":"What is Tiki?","acceptedAnswer":{"@type":"Answer","text":"A CMS/Groupware platform."}} ] }')}

Invalid input behavior

  • missing type or json => no output
  • invalid JSON => no output

Best practices

  • Prefer the visual builder for most users
  • Use plugin for advanced/manual schemas
  • Validate rendered output with Schema.org Validator