Template: GCXI Attributes DisplayFormat2

From Genesys Documentation
Jump to: navigation, search

Formatting template for Template:GCXI_Attributes_DisplayDetails to format the attributes descriptions on Attributes pages. The sub-query to populate Forms content per attribute uses a supplementary formatting template, Template:GCXI_Attributes_DisplayFormsFormat. Content is:

{{{!}} 
{{!}} {{AnchorDiv|{{{anchor}}}}}<span style="font-size:130%">'''Attribute name:''' '''{{{attr}}}'''</span>
{{#if:{{{introduced|}}}|<br/>'''Introduced:''' {{{introduced}}}|}}{{#if:{{{modified|}}}|<br/>'''Modified:''' {{{modified}}}|}}{{#if:{{{discontinued|}}}|<br/>'''Discontinued:''' {{{discontinued}}}|}}
{{!}} style="width: 60%" {{!}}'''Folder:''' {{{displayFolder}}}
{{!}}-
{{!}} colspan=2 {{!}} '''Description:''' {{{longDesc}}}
{{!}}-
{{!}}'''Database table:''' {{{dbTable|}}}<br/>
{{!}} {{#if:{{{form|}}}|'''Form(s):''' {{{form}}}|}}
{{!}}-
{{!}} {{#if:{{{form|}}}|{{#cargo_query:
tables=GCXI_Attribute,GCXI_Attribute__form,GCXI_Form
|join on=GCXI_Attribute._ID=GCXI_Attribute__form._rowID,GCXI_Attribute__form._value=GCXI_Form.form
|fields=GCXI_Form.form=formName,GCXI_Form.formDisplayName,GCXI_Form.longDesc=formDesc,GCXI_Form.dbTable__full=formdbTable,GCXI_Form.dataType=formDataType
|where=GCXI_Attribute.attr LIKE "{{{attr}}}" AND GCXI_Attribute._pageName LIKE "{{#switch:{{NAMESPACENUMBER}}|620=Draft:|#default=}}PEC-REP/Library/GCXIPRGLibrary/%%" AND GCXI_Attribute.form HOLDS LIKE "%%"
|intro=colspan=2 {{!}} '''Forms in this attribute:'''
|outro={{!}}-
{{!}}
|default=
|format=template
|template=GCXI_Attributes_DisplayFormsFormat
|group by=GCXI_Form.form
|named args=yes
}}|}}colspan=2; style="text-align:right;"{{!}} [[{{{page}}}#AttrList|>> Back to list]]
{{!}}}


Attribute name: {{{attr}}}

Folder: {{{displayFolder}}}
Description: {{{longDesc}}}
[[{{{page}}}#AttrList|>> Back to list]]