The Tree of Widsdom

智慧の樹

c_DE_event

Type: Display expression

This display expression is like c_DE_norm except it prepends a calendar Proticon plus a BCE-detecting SmartDate!

Display expression

(if($DENum){$SiblingOrder + ". "}) + (if($DEIcon){"📅 "}) + if($DueDate) {
	if($EndDate&!$StartDate) {
  	if($DueDate<date(1)){$DueDate.format( "(y BCE – " )}
  	else{$DueDate.format( "(y – " )} + 
		if($EndDate<date(1)){$EndDate.format("y BCE) ")}
    else{$EndDate.format("y) ")} }
	else {
		if($DueDate<date(1))
			{$DueDate.format( "(y BCE) " )}
  	else
    	{$DueDate.format( "(y) " )}}}
 else {
   if($StartDate){
     if($StartDate<date(1)){$StartDate.format( "(y BCE – " )}
     else{$StartDate.format( "(y – " )}}
   else{"(… – "} +
   if($EndDate){
     if($EndDate<date(1))
       {$EndDate.format("y BCE) ")}
     else
       {$EndDate.format("y) ")}}
   else
     {"…) "}} +
$Name + (if($blogSubtitle){" «" + firstWord($blogSubtitle) + "»"}) + (if($ChildCount & $DECount){" (" + $DescendantCount + ")"}) + (if($DEBips){"  " + (if($blogExpOpt){if($blogExpOpt.contains(COMPILE)){"⤓"}; + if($blogExpOpt.contains(COLUMNS)){"⸬"}; + if($blogExpOpt.contains(NOKIDS)){"⬒"}; + if($blogExpOpt.contains(BLOCKS)){"⧈"}; + " "}) + if($blogImage){"🎆"}; + if($DTSource){"🌀"}; + if($DTItem){"↙️"}; + if($ReferenceURL){"📜"}; + if($URL){"↗️"};})