Optionslink
Template:Optionstmp.dpl2.defaultTemplate:Optionstmp.dpl2.defaultTemplate:Optionstmp.dpl2.defaultTemplate:Optionstmp.dpl2.defaultTemplate:Optionstmp.dpl2.default
Handles in-content lightbox links to individual options. Used by writers, in their regular content, instead of direct links to option descriptions.
Phantom Template
- Template:Optionstmp.dpl2 — Controls how option is printed out in the lightbox call. Includes logic for applying change bars to draft content. Includes links to the option in the reference guide.
'''{{#ppin:{{#dpl:
|namespace=Options
|titlematch=%{{#explode:{{{link}}}|:|1}}:{{#explode:{{{link}}}|:|2}}%:{{#explode:{{{link}}}|:|3}}
|includematch={{#switch:{{PONYDOCSSTATUS}} |unreleased=/docstatus{{=}}Published{{!}}docstatus{{=}}Draft/
|preview=/docstatus{{=}}Published{{!}}docstatus{{=}}Draft/
|/docstatus{{=}}Published/}}
|noresultsheader=No option with that name
|include={Optionstmp}.dpl2
|mode=userformat
}}|{{#if:{{{parameter|}}}|{{{parameter}}}|{{#explode:{{{link}}}|:|3}}}}}}'''
Comments or questions about this documentation? Contact us for support!
