Jump to content

Template:RelatedDocuments: Difference between revisions

From SOJI ELECTRONICS
[checked revision][checked revision]
Update
Update
Line 54: Line 54:
}}{{#ifeq:{{PAGENAME}}|{{RelatedDocuments-Product|{{{product|}}}}} Promotional Material||* [[{{RelatedDocuments-Product|{{{product|}}}}} Promotional Material|Promotional Material]]
}}{{#ifeq:{{PAGENAME}}|{{RelatedDocuments-Product|{{{product|}}}}} Promotional Material||* [[{{RelatedDocuments-Product|{{{product|}}}}} Promotional Material|Promotional Material]]
}}{{#ifeq:{{PAGENAME}}|{{RelatedDocuments-Product|{{{product|}}}}} Video||* [[{{RelatedDocuments-Product|{{{product|}}}}} Video|Video]]
}}{{#ifeq:{{PAGENAME}}|{{RelatedDocuments-Product|{{{product|}}}}} Video||* [[{{RelatedDocuments-Product|{{{product|}}}}} Video|Video]]
}}{{#ifeq:{{PAGENAME}}|{{RelatedDocuments-Product|{{{product|}}}}} Protocol||* [[{{RelatedDocuments-Product|{{{product|}}}}} Protocol|Video]]
}}</includeonly>
}}</includeonly>

Revision as of 10:26, 9 June 2026

Auto-generates a bullet list of links to other document pages for the current product.

Usage:

{{RelatedDocuments}}

Auto-detects:

  • Product name from current page (strips known doc-type suffixes)
  • Current document type — auto-excluded from output

Default document types listed:

  • Datasheet
  • User Guide
  • Certifications & Approvals
  • Product Change Notifications
  • Firmware Changelog
  • Promotional Material
  • Video
  • Protocol

Examples:

  • On page "LIGO MAX" (product hub) → all 7 items listed
  • On page "LIGO MAX Datasheet" → 6 items (Datasheet excluded)
  • On page "LIGO PRO BLE User Guide" → 6 items (User Guide excluded), all linking to "LIGO PRO BLE [Type]"

Optional override:

{{RelatedDocuments|product=Custom Name}}

→ Forces all links to use "Custom Name [DocType]" instead of auto-detection.

Template:TemplateData

SOJI Electronics