GIMTranscludeForCloud
Template to streamline transclusion of content from the GIM docs (mainly PDM) to the Cloud. The template transcludes content from a Library book page with the same topic name, with the Library book version determined by the version of the transcluding page.
The template was modified in November 2019 to avoid use of Ponydocs variables and, following GIM's move to 9.0, hard-code the versions for the GIM source page as DRAFT, PDMSource, or Current, as applicable.
A temporary disclaimer about PDF unavailability was added as well. View pages were excluded because of inexplicable duplication.
Content of the template is:
{{#switch:{{#explode:{{#explode:{{FULLPAGENAME}}|:|3}}|-|0}}|View=|#default=
{{NoteFormat|'''Note about PDF:''' Because of a temporary platform issue, a PDF of the whole manual is currently unavailable. However, you can make and download PDFs of individual pages. Our apologies for the inconvenience.|2}}}}
{{#if:{{{doc|}}}|{{Documentation:GIM:{{{doc}}}:{{#explode:{{FULLPAGENAME}}|:|3}}:{{#switch:{{#explode:{{FULLPAGENAME}}|:|4}}|draft=DRAFT|Public=Current}}}}|{{Documentation:GIM:Library:{{#if:{{{page|}}}|{{{page}}}|{{#explode:{{FULLPAGENAME}}|:|3}}}}:{{#switch:{{#explode:{{FULLPAGENAME}}|:|4}}|draft=DRAFT|Public=PDMSource}}}}}}
Comments or questions about this documentation? Contact us for support!
