Template:RelatedDocuments: Difference between revisions
Appearance
| [checked revision] | [checked revision] |
Update |
Update |
||
| (One intermediate revision by the same user not shown) | |||
| 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|Protocol]] | |||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 10:28, 9 June 2026
Related Documents Template
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.