(* Web page for each family *) maintainfamilypages := ( Print["Creating list of plant species sorted by families ..."]; xsizem1 = 400; (* Max width of pop-up thumbnail *) ysizem1 = 300; (* Max height of pop-up thumbnail *) height = 270; font =12; margin =3; Do[ fauthor = familyAuthor[family]; fref = familyReference[family]; fcname = familyCommonName[family]; familyfull = familyfull1a = family; If[Head[fauthor] === String, familyfull = familyfull <> " " <> fauthor]; familyfull1 = familyfull2 = familyfull; If[Head[fref] === String, familyfull2 = familyfull2 <> " " <> fref]; If[Head[fcname] === String, familyfull1 = familyfull1 <> " - " <> fcname; familyfull2 = familyfull2 <> " (" <> fcname <> ")"; familyfull1a = familyfull1a <> " (" <> fcname <> ")"; ]; text = { "
" ~~ Shortest[x__] ~~ "
" -> x, 1]; If[!MatchQ[wikitxt, {_}], Print["Internal error: first paragraph of Wiki article not found: ", name, " -> ", wikitext, " -> ", wikitxt], wikitxt = StringTrim[wikitxt[[1]]]; If[wikitxt === "", Print["Internal error: first paragraph of Wiki article is empty: ", name, " -> ", wikitext, " -> ", wikitxt]; ]]; ]; namer = StringReplace[name0, redirects]; name1 = StringReplace[namer, " " -> "%20"]; name1a = StringReplace[name1, " " -> "_"]; planta = StringReplace[plant, " " -> "_"]; plantal = ToLowerCase[planta]; wikiurl = "http://en.wikipedia.org/wiki/" <> name1a; datasql = plantdatasql[plant]; { "(" <> StringJoin[Riffle[syns, ", "]] <> ")
", ""], If[cnames =!= {}, "Common names: " <> StringJoin[Riffle[cnames, ", "]] <> "
", ""], If[nts =!= {}, "My notes: " <> StringJoin[Riffle[nts, "\n"]] <> "
", ""], If[wikitxt =!= "", "Extract from wikiurl <> "\">Wikipedia article: " <> wikitxt <> "
", ""], "",
Table[
{year, roll, pic, capt, xsize, ysize, date, pop} = dat;
link = "asergeev/pictures/archives/compress/" <> year <> "/" <> roll <> "/" <> pic <> ".htm";
(*linkjpg = "asergeev/pictures/archives/" <> year <> "/" <> roll <> "/jpeg/" <> pic <> ".jpg";*)
linkjpg = "asergeev/pictures/archives/" <> year <> "/" <> roll <> "/jpeg/" <> pic <> "b.jpg";
slink = "asergeev/pictures/archives/compress/" <> year <> "/" <> roll <> "/" <> pic <> ".htm";
capt1 = " link <> "\" TARGET=\"_blank\" TITLE=\"Photo " <> roll <> "-" <> pic <>
"\">![]() " <> jpg <>
" "], {dat, datasql}],
"" <> capt1 <> " |
QNHG (Qatar Natural History Group) and associated people, for a possibility to participate in their field excursions and to learn about local nature.