Jump to: navigation, search

PDMTransclude

Template to streamline transclusion of non-schema, non-DPL content from the PDM Library books to the RDBMS-specific manuals (e.g., introductory pages about the database schemas, etc.). The template transcludes content from a Library book page with the same topic name, with the Library book version determined by whether the transcluding page is in released/preview or unreleased status. For pre-GNINE (9.x) versions, the respective Library book versions were <two-digit release>DRAFT or <two-digit release>PDMSource. For 9.x versions (i.e., the RDBMS-specific docs are "DRAFT"/"Draft" and "Current"), the Library book versions are DRAFT/Draft and PDMSource, respectively.

Note: The template uses the {{#explode}} function with {{FULLPAGENAME}} to construct the source URL because using PONYDOCSPRODUCTSHORT, etc. inside a template causes the PDF to fail, because they're initially parsed in the Templates namespace, where they don't apply. The template update for 9.x versions introduces a switch for released status, because the pattern of the Library book version no longer includes the <two-digit release> prefix.

Temporarily redefining this to streamline conversion to refactored templates

Content of the template was:

{{Documentation:{{#explode:{{FULLPAGENAME}}|:|1}}:Library:{{#explode:{{FULLPAGENAME}}|:|3}}:{{#switch:{{PONYDOCSSTATUS}}
|unreleased
|preview={{#explode:{{FULLPAGENAME}}|:|4}}
|released
|#default={{#switch:{{#explode:{{FULLPAGENAME}}|:|4}}
|Current=PDMSource
|#default={{#sub:{{#explode:{{FULLPAGENAME}}|:|4}}|0|3}}PDMSource}}}}}}


Documentation:PDMTransclude:Library::PDMSource

This page was last edited on January 3, 2020, at 20:43.
Comments or questions about this documentation? Contact us for support!