User:Glynor: Difference between revisions

From wiki.jriver.com
Jump to navigation Jump to search
Line 66: Line 66:


== Function Description Template ==
== Function Description Template ==

{{function description}}


{{function description box
{{function description box
| name=saveadd
| name=NAME
| arguments=variable, value, mode
| arguments=ARGUMENTS
| description=
| description=
DESCRIPTION
The [[#SaveAdd|SaveAdd()]] function adds <i>value</i> to a global <i>variable</i> either numerically or as a list item.
The <i>mode</i> argument indicates how <i>variable</i> is modified.

{{argument table
| name=mode
| contents=
{{argument table row|0|Add numeric <i>value</i> (integer or decimal) to <i>variable</i>}}
{{argument table row|1|Append string <i>value</i> as a list item to <i>variable</i>}}
{{argument table row|2|Prepend string <i>value</i> as a list item to <i>variable</i>}}
}}
{{argument optional|mode|0}}
| examples=
| examples=
'''{{monospace|saveadd(v, 1)}}'''
'''{{monospace|EXAMPLE1}}'''
: EXAMPLETEXT
: Numerically increments the global <i>variable</i> {{monospace|v}} by {{monospace|1}}.
'''{{monospace|saveadd(v, math(2 - 6))}}'''
'''{{monospace|EXAMPLE2}}'''
: EXAMPLETEXT
: Numerically increments the global <i>variable</i> {{monospace|v}} by the outcome of the [[#Math|Math()]], which is {{monospace|-4}}.
'''{{monospace|load(foo, v)saveadd(v, bar, 1)load(v)}}'''
'''{{monospace|EXAMPLE3}}'''
: EXAMPLETEXT
: Loads <i>value</i> {{monospace|foo}} into <i>variable</i> {{monospace|v}}, then appends the <i>value</i> {{monospace|bar}} as a list item, and the final {{monospace|load(v)}} expression outputs the result of {{monospace|foo; bar}}.
'''{{monospace|load(That, v)saveadd(v, This, 2)load(v)}}'''
'''{{monospace|EXAMPLE4}}'''
: EXAMPLETEXT
: Similar to the previous example, but using the prepend <i>mode</i>, resulting in the output {{monospace|This; That}}.
}}
}}



Revision as of 03:49, 24 January 2016

This is my page on the Wiki. My real name is Ed, I live in Maine, and this is me:

Ed with the wind in his hair.


Start building the Media Center Troubleshooting Guide page. Build the Troubleshooting Solutions page.


Span Styles

Media Center Menus

Template:Color Text

Actually, I think Template:Menu Flow would be better for long term. Or something like that...

<span style="color:#8B4513">Tools > Options > Audio</span>

Tools > Options > Audio

  • Include all items starting from the top menu for consistency.

Tree Hierarchy

<span style="color:#006400">Playing Now > Playing from <Current Library's Name></span>

Playing Now > Playing from <Current Library's Name>

OS Menus

<span style="color:#007A62">Control Panel > Hardware and Sound > Sound</span>

Control Panel > Hardware and Sound > Sound

Fix These

Function Description Test

Description field(name, mode)

The Field() function returns the value stored in field name. The format of return is selected by mode.

Available mode values:

0Raw, unformatted data
1Formatted data
  • Argument mode is optional (defaults to 1).
Examples field(album)
Returns the formatted value of field name album. Note that this is equivalent to [album].

field(date, 0)

Returns the raw, unformatted value stored in the date field. Note that this is equivalent to [date,0].
(Back to top)   (Function index)

Function Description Template

Description NAME(ARGUMENTS)

DESCRIPTION

Examples EXAMPLE1
EXAMPLETEXT

EXAMPLE2

EXAMPLETEXT

EXAMPLE3

EXAMPLETEXT

EXAMPLE4

EXAMPLETEXT
(Back to top)   (Function index)

Scratch Pad

20.0.64 (1/29/2015)

8. Changed: The automation call ProcessWebService(...) returns the response instead of just 0 or 1.

<XMLPH version="1.0">
<Item Name="UseDirectoryRule">1</Item>
<Item Name="Name">TV Shows</Item>
<Item Name="Replace Slash">1</Item>
<Item Name="FilenameRule">If(IsEmpty([Season],1),,s[Season])If(IsEmpty([Episode],1),e00,e[Episode]) - [Name]</Item>
<Item Name="BasePath">M:\</Item>
<Item Name="UseFilenameRule">1</Item>
<Item Name="Find"/>
<Item Name="Mode">0</Item>
<Item Name="UseFindReplace">0</Item>
<Item Name="Move All">0</Item>
<Item Name="DirectorySmartMultiArtistHandling">0</Item>
<Item Name="Replace"/>
<Item Name="DirectoryRule">[Media Type]\[Media Sub Type]\[Series]\[Season]\</Item>
</XMLPH>

Creating Advanced Media Views Using the Expand Search Modifier

Main Category Index