The prefix for argument tags is Arg.
{%%arg.Year%%}
Arguments are used to pass values to variable tags . For example, given a variable named Copyright (#Copyright.html) with WYSIWYG the contents of:
(C) Copyright {%%arg.StartYear%%}-{%%sys.Year%%}
The variable could then be embedded in another document and specify the year using the following syntax:
{%%var.Copyright StartYear="2002"%%}
For they year 2010, the final output would be:
(C) Copyright 2002-2010
Variables can be nested, however arguments only apply to the variable they are applied to. This is by design. For example if our Copyright variable was used in another variable called Footer with the WYSIWYG value of:
All rights reserved. We are not responsible for typographical errors.
{%%var.Copyright%%}
Please contact Webmaster with any corrections.
And in a document the following tag was used:
{%%var.Footer StartYear="2002"%%}
This will produce:
All rights reserved. We are not responsible for typographical errors.
(C) Copyright -2010
Please contact Webmaster with any corrections.
This is because arguments are only valid in their target, not in other variables included in the target. Arguments can be repassed to provide nesting functionality if required. In our example Footer should be changed to:
All rights reserved. We are not responsible for typographical errors.
{%%var.Copyright StartYear="{%%arg.StartYear%%}"%%}
Please contact Webmaster with any corrections.
This would then produce:
All rights reserved. We are not responsible for typographical errors.
(C) Copyright 2002-2010
Please contact Webmaster with any corrections.