Template:TestTemplate: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
var content = "</html>{{{1}}}<html>"; | var content = "</html>{{{1}}}<html>"; | ||
var categories_raw = "</html>{{{2}}}<html>"; | var categories_raw = "</html>{{{2}}}<html>"; | ||
var delimiter = "</html>{{{ | var categories_extended = "</html>{{{3}}}<html>"; | ||
var delimiter = "</html>{{{4}}}<html>"; | |||
var content_array = content.split(delimiter); | var content_array = content.split(delimiter); | ||
var categories_array = categories_raw.split(delimiter); | var categories_array = categories_raw.split(delimiter); | ||
var categories_extended_array = categories_extended.split(delimiter); | |||
for(var i=0, l=categories_array.length; i<l; i++){ | for(var i=0, l=categories_array.length; i<l; i++){ | ||
var tmp =categories_array[i]; | var tmp =categories_array[i]; | ||
categories.push(tmp); | var tmp2= categories_extended_array[i]; | ||
categories.push(tmp+ " " +tmp2); | |||
} | } | ||
Revision as of 16:06, 12 June 2013