Difference between revisions of "Template:SpecUIElement/ButtonRow"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly>|-
+
<includeonly>{{SpecUIElementRow|type=Button|property=Text [en-US]|value={{{text}}}|comment={{{comment|}}}}}</includeonly><noinclude>Use this template to create, within a table which you started with the [[Template:SpecUIElementHeading|SpecUIElementHeading]] template, a table row describing a button.
| style="vertical-align:top;" | ''' Label'''
+
| {{{text|<span style="color:#ff0000;">invalid - en-US text must be specified</span>}}}
+
| {{{comment|}}}</includeonly><noinclude>This template is only useful together with the [[Template:SpecUIElement/ButtonHeading|ButtonHeading]] template. Use it to create, within a specification document, a table describing one or more buttons in a dialog.
+
  
 
=== Looks Like ===
 
=== Looks Like ===
 
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0;  border: 1px #cccccc solid; border-collapse: collapse; width: 100%"
 
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0;  border: 1px #cccccc solid; border-collapse: collapse; width: 100%"
 
|- style="color:white; background-color:white"
 
|- style="color:white; background-color:white"
{{SpecUIElement/ButtonRow|text=dummy}}
+
{{SpecUIElement/ButtonRow|text=Cancel}}
 
|}
 
|}
  
=== Parameters ===
+
=== Usage ===
 +
<pre>{{SpecUIElement/ButtonRow|text=Cancel}}</pre>
 +
==== Parameters ====
 
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0;  border: 1px #cccccc solid; border-collapse: collapse; width: 100%"
 
{| border="2" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0;  border: 1px #cccccc solid; border-collapse: collapse; width: 100%"
 
|- style="background-color:#dddddd;"
 
|- style="background-color:#dddddd;"
 
|| '''Parameter Name''' || '''Parameter meaning'''
 
|| '''Parameter Name''' || '''Parameter meaning'''
 
|-
 
|-
|| <code>text</code> || the label (for locale en-US) of the button
+
| style="background-color:#F8F8F8;" | text || the text (for locale en-US) of the button
 
|-
 
|-
|| <code>comments</code> || comments on the button, usually directed to translators
+
| style="background-color:#F8F8F8;" | comments || comments on the button/text, usually, but not necessarily, directed to translators
 
|}
 
|}
 
<code>text</code> must be present, else an error message will be shown in the respective table cell.
 
  
 
=== See Also ===
 
=== See Also ===
* [[Template:SpecUIElement/ButtonHeading]]
+
* [[Template:SpecUIElementHeading]]
* [[Template:SpecUIElement/Button]]
+
 
[[Category:Specification Particle Templates]]
 
[[Category:Specification Particle Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 12:15, 22 January 2008

Use this template to create, within a table which you started with the SpecUIElementHeading template, a table row describing a button.

Looks Like

Button Text Cancel

Usage

{{SpecUIElement/ButtonRow|text=Cancel}}

Parameters

Parameter Name Parameter meaning
text the text (for locale en-US) of the button
comments comments on the button/text, usually, but not necessarily, directed to translators

See Also

Personal tools