\"Writing.Com
*Magnify*
SPONSORED LINKS
Printed from https://writing.com/main/forums/action/view/message_id/2778955
Image Protector
Rated: ASR · Message Forum · Writing.Com · #102362
Drop your new ideas into the Writing.Com Suggestion Box!
<< Previous  •  Message List  •  Next >>
Reply  •  Post New
Jan 10, 2015 at 5:33pm
#2778955
Edited: January 10, 2015 at 7:12pm
Re: WritingML for Progress Meter?
*chuckle* Nifty -- and yes, I've seen theckenast's version and that's a whole lot of ML... So, perhaps just to stop people from making crazy big ML strings of images... And cause mini-P15 isn't a bad thing..... Here's a BETA WritingML progress bar... ** BETA means it's new and the syntax COULD CHANGE in the short term. *Wink*

I'm building it into the existing "code" structure of WritingML, which has some other customizable functions floating around.



{code:progress(PERCENT,COLOR_LEFT,COLOR_RIGHT,LABEL,TEXT)}

PERCENT must be a number (with or without % sign)
COLOR_LEFT defaults to GREEN
COLOR_RIGHT defaults to RED
LABEL defaults to %
TEXT defaults to complete




Some examples:

{code:progress(80)} yields:
 
 
80% complete



{code:progress(50%,blue,gray)} yields:
 
 
50% complete



{code:progress(50,blue,gray, -->,coolness)} yields:
 
 
50 --> coolness



{code:progress(19,violet,ppink)} yields:
 
 
19% complete



{code:progress(100%,#FF0000,#000000)} yields:
 
 
100% complete



{code:progress(0,#FF0000,#000000)} yields:
 
 
0% complete



*Wink*
MESSAGE THREAD
WritingML for Progress Meter? · 01-10-15 4:39pm
by Jeff Author IconMail Icon
Re: WritingML for Progress Meter? · 01-10-15 5:16pm
by A Non-Existent User
*Star* Re: WritingML for Progress Meter? · 01-10-15 5:33pm
by The StoryMaster Author IconMail Icon
Re: Re: WritingML for Progress Meter? · 01-10-15 8:43pm
by 💙 Carly-wrimo 2024 Author IconMail Icon

The following section applies to this forum item as a whole, not this individual post.
Any feedback sent through it will go to the forum's owner, The StoryMistress.
Printed from https://writing.com/main/forums/action/view/message_id/2778955