Difference between revisions of "Template:PropVals/Group/NextPart/doc"
From Salem Wiki
< Template:PropVals | Group | NextPart
m (→Description: updated with sub-template used) |
m (→Description: correcting sub-template used.) |
||
Line 2: | Line 2: | ||
:This template is used as a helper-template inside {{t|PropVals/Group}} | :This template is used as a helper-template inside {{t|PropVals/Group}} | ||
:It is used to prepend the output, with the ''group-separator'' followed by the ''heading-field'', when the ''heading-field'' of the current-record differs from the one in the previous-record. | :It is used to prepend the output, with the ''group-separator'' followed by the ''heading-field'', when the ''heading-field'' of the current-record differs from the one in the previous-record. | ||
− | :It uses {{t|PropVals/ | + | :It uses {{t|PropVals/Group/heading}} to extract the ''heading-field'' of the records. |
==Syntax== | ==Syntax== |
Revision as of 15:40, 23 June 2012
Description
- This template is used as a helper-template inside {{PropVals/Group}}
- It is used to prepend the output, with the group-separator followed by the heading-field, when the heading-field of the current-record differs from the one in the previous-record.
- It uses {{PropVals/Group/heading}} to extract the heading-field of the records.
Syntax
- Type the below code somewhere inside your code:
{{PropVals/Group/NextPart |preval=<previous record> |val=<current record> |sep={{{sep|;}}} |grpsep={{{grpsep|/\}}} }}
Examples
- {{PropVals/Group/NextPart|preval=Objectname;Amount;Groupheading|val=Objectname;Amount;Groupheading|sep={{{sep|;}}}|grpsep={{{grpsep|/\}}}}}
gives:
|Objectname;Amount - {{PropVals/Group/NextPart|preval=Objectname;Amount;Grouphead|val=Objectname;Amount;Groupheading|sep={{{sep|;}}}|grpsep={{{grpsep|/\}}}}}
gives:
/\heading=Groupheading|Objectname;Amount