Difference between revisions of "Template:SQAttributeTable"

From The Foundry MODO SDK wiki
Jump to: navigation, search
(One intermediate revision by the same user not shown)
Line 12: Line 12:
 
  }}</nowiki>
 
  }}</nowiki>
  
</noinclude>==== {{{1}}} ====
+
== Old implementation ==
 +
==== {{{1}}} ====
 
{{{2}}}
 
{{{2}}}
{| width="98%" align="center"
+
{| class="wikitable" width="98%" align="center" style="margin: 1em auto 1em auto;" <!-- the "style" bit centers the entire table -->
|
+
{| class="wikitable" width="100%"
+
 
|- valign="top"
 
|- valign="top"
 
|Datatype  
 
|Datatype  
Line 27: Line 26:
 
|{{{5}}}
 
|{{{5}}}
 
|}
 
|}
 +
 +
== New Implementation ==
 +
 +
</noinclude>{| class="wikitable" width="98%" style="margin: 1em auto 1em auto;" <!-- the "style" bit centers the entire table -->
 +
|-
 +
| colspan="2" style="background:#F2F2FF" |
 +
{| width="100%"
 +
| style="background:#F2F2FF" align="left"  width="70%" | '''{{{1}}}'''
 +
| style="background:#F2F2FF" align="right" | '''''{{{3}}}''''' ''datatype''
 +
|}
 +
|- valign="top"
 +
| align="left" colspan="2" | {{{2}}}
 +
|-
 +
| width ="60pt" align="right" | Example
 +
| {{{4}}}
 +
|-
 +
| width ="60pt" align="right" | Result
 +
| {{{5}}}
 
|}
 
|}

Revision as of 20:57, 1 May 2012

This template is used to display ScriptQuery attributes for the ScriptQuery Reference pages.

Note that due to how templates are parsed, the attribute name must be on the same line as the description. This provides a good reference for how to use the template in a page:

{{SQAttributeTable
 ||
 |
 |
 |
 }}

Old implementation

{{{1}}}

{{{2}}}

Datatype {{{3}}}
Example {{{4}}}
Result {{{5}}}

New Implementation

{{{1}}} {{{3}}} datatype
{{{2}}}
Example {{{4}}}
Result {{{5}}}