PDMIndexListDPL
This template provides the DPL to construct the list of indexes. For ICON, it includes the option to restrict the list by schema or to generate a single list for all schemas. Output is formatted as a table, with formatting controlled by the phantom template Template:PDMIndexItem.dpl3. Content of this template is:
{{#switch:{{#explode:{{FULLPAGENAME}}|:|1}}
|GIM
|PSAAS={{#dpl:
|namespace=Documentation
|titlematch={{#switch:{{PONYDOCSSTATUS}}
|unreleased
|preview = {{#switch:{{PONYDOCSPRODUCTSHORT}}
|PSAAS=GIM:Library:%Table-%:8.5DRAFT
|#default=GIM:Library:%Table-%:{{PONYDOCSVERSION}}}}
|released= {{#switch:{{PONYDOCSPRODUCTSHORT}}
|PSAAS=GIM:Library:%Table-%:8.5PDMSource
|#default=GIM:Library:%Table-%:{{#explode:{{#explode:{{FULLPAGENAME}}|:|4}}|.|0}}.{{#explode:{{#explode:{{FULLPAGENAME}}|:|4}}|.|1}}PDMSource}}}}
|uses=Template:PDMIndexItem
|include={PDMIndexItem}.dpl3
|table=,-,'''Table''','''Index Name''','''U''','''Description'''
}}
|ICON={{#if:{{{schema|}}}|{{#dpl:
|namespace=Documentation
|titlematch={{#switch:{{PONYDOCSSTATUS}}
|unreleased
|preview = ICON:Library:%Table-%:{{PONYDOCSVERSION}}
|released= ICON:Library:%Table-%:{{#explode:{{#explode:{{FULLPAGENAME}}|:|4}}|.|0}}.{{#explode:{{#explode:{{FULLPAGENAME}}|:|4}}|.|1}}PDMSource}}
|category=ICONSchema:{{{schema}}}
|uses=Template:PDMIndexItem
|include={PDMIndexItem}.dpl3
|table=,-,'''Table''','''Index Name''','''U''','''C'''
|noresultsheader=No tables in this schema have indexes.
}}|{{#dpl:
|namespace=Documentation
|titlematch={{#switch:{{PONYDOCSSTATUS}}
|unreleased
|preview = ICON:Library:%Table-%:{{PONYDOCSVERSION}}
|released= ICON:Library:%Table-%:{{#explode:{{#explode:{{FULLPAGENAME}}|:|4}}|.|0}}.{{#explode:{{#explode:{{FULLPAGENAME}}|:|4}}|.|1}}PDMSource}}
|uses=Template:PDMIndexItem
|include={PDMIndexItem}.dpl3
|table=,-,'''Table''','''Index Name''','''U''','''C'''
|noresultsheader=No tables in this schema have indexes.
}}}}}}
This page was last edited on March 26, 2017, at 14:18.
Comments or questions about this documentation? Contact us for support!