View Single Post
Old 08-19-2025, 01:25 PM   #1996
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,509
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by capink View Post
You made the template language flexible enough to display rating (I shouldn't be telling you that )

Code:
program:
    rating = $rating;
    text = '';
    for x in range(0,rating):
        text = text & '★'
    rof
The line highlighted in blue should be edited to fetch rating from the appropriate column
Just for fun, the following template does it too.
Code:
program:
	if $rating then substr('★★★★★', 0, $rating) fi
chaley is offline   Reply With Quote