global TVersion = "122" # ******** It is IMPERATIVE to use "\|" not "|" in the search strings! ******** global WB_TODAY = replace(noww()[1:10], "-" => ".") # Throwaway like for WB info display to work right global Transforms = [ "{{APtS_ET}}" => APtS_ET, "{{TOP}}" => "\n\n\n" * "\n" * "\nDona nobis pacem | " * replace(ThisFile, ".html" => "") * # This line has to be filtered out in "j WB" "\n\n" * "\n" * "
\"Previous\"Welcome
\n" * "
", r"{{FOOTER\|Buttocks\|(\d+)}}" => s"{{FOOTER|Buttocks|\1|210}}", r"{{FOOTER\|WDSG\|(\d+)}}" => s"{{FOOTER|WDSG|\1|140}}", r"{{FOOTER\|K2\|(\d+)}}" => s"{{FOOTER|K2|\1|90}}", r"{{FOOTER\|(WDSG|Buttocks|K2)\|(\d+)\|(\d+)}}" => s"\n\n{{\1|0|0}}\n \n
\"This
\n", "{{BOTTOM}}" => "

 

", r"{{WDSG\|([0-9]+)\|([0-9]+)}}" => s"
\"Where
", r"{{Buttocks\|([0-9]+)\|([0-9]+)}}" => s"
\"\"
Unfortunate for themself, the person who lacks one; unfortunate for others, the person that is one. Don't be an a**hole!
", r"{{K2\|([0-9]+)\|([0-9]+)}}" => s"
\"BMcC
Invenit et fecit
", r"{{NBB\|([^}]+)}}" => s"", "{{TODAY}}" => "{{TODAY|0}}", # The "=>" in the following line was causing WB info display to fuck up when two lines r"{{TODAY\|[^}]+}}" => "+" * WB_TODAY, r"{{DATE\|([\-+])(\d{4})[|.](\d{2})[|.](\d{2})}}" => ## (Parentheses not included)# s"\1\2.\3.\4", r"{{TSV\|([0-9.]+)\|([0-9]+)\|([0-9]+)\|([0-9]+)}}" => ## TimeStamp + Version# s"
+\1 v\2
\n \"Previous\"Return to Table of contents
", "{{ORELSE}}" => "Or else!", "{{FITB}}" => "[fill in the blank]", "{{RIP}}" => "", r"{{I\|([^{}]+)}}" => s"\1", r"{{B\|([^{}]+)}}" => s"\1", r"{{(IB|BI)\|([^{}]+)}}" => ## (IB|BI)# s"\2", "{{AKA}}" => ## (Includes terminating colon (':'))# "aka:", r"{{([Ii])([Ee])}}" => ## (Includes terminating colon (':'))# s"\1.\2.:", r"{{([Ee])([Gg])}}" => ## (Includes terminating colon (':'))# s"\1.\2.:", r"{{([Rr])ef}}" => s"\1ef.:", # r"{{P\|(.)}}" => # s"

\1", # r"{{PX\|(.)}}" => # s"

\1", r"{{NBSP\|([-]?\d\d?)}}" => s" ", # Watch out! # "{{HOTLINK|{{imagename}}|text}}" works, but it has to pass thru WB twice. the 1st pass resolves to: # "text" # The 2nd pass resolves the image URL. Jesus Christ, but it does work. r"{{HOTLINK\|([^|]+)\|([^}]+)}}" =>## This tag may need to pass thru WB twice# s"\2", r"{{CROSSLINK\|([^|]+)\|([^}]+)}}" => s"*", "{{DOTS}}" => "

*      *      *      *      *      *      *

", r"{{TC\|([^\|}]+)\|([^}]+)}}" => ## Text blurb with hyperlink# s"{{TC|\1}}", r"{{TC\|([^}]+)}}" => s"\"[", r"{{HTML5V\|([0-9]+)\|([0-9]+)}}" => s"
\"This
", r"{{HTML5\|(\d+)}}" => s"
 \"This
", "{{IBM}}" => "IBM", "{{StP}}" => "St. Paul's Illiberal Day Carcel for pubsecent male virgins except-for-omerta-sanitary-services-for-jocks", "{{THINK}}" => "THINK", "{{IRC}}" => ## Int'l Rescue Commitee# "\"Help", r"{{BMcC}}" => "({{BMcC|}})", r"{{BMcC\|[^}]*}}" => ## (Any parameter value for no perentheses)# "BMcC[18-11-46-503]", "{{EMAIL}}" => "bradmcc@bmccedd.org", "{{BO}}" => ## Help protect The American Dream from body odor!# "{{BO|Americanism.html}}", r"{{BO\|([^}]+)}}" => s"", r"{{([Pp])eople}}" => s"\1eople", r"{{([Tt])he([my])}}" => s"\1he\2", r"{{([lr])AQUO}}" => s"&\1aquo;", "{{CLEAR}}" => "
", r"{{BIDEN\|([^}|)]+)}}" => s"{{BIDEN|\1|}}", r"{{BIDEN\|([^|)]+)\|([^}]*)}}" => ## User must code 1 space after 2nd "|" before 2nd date# s"[\1 \2]", r"{{BQ\|([^|{}\"]+)\|([^|{}\"]*)}}" => ## Quotes ('"') are killers!# s"
\n\"\1\"\2\n
", ]