Wiki Changes

This page describes features recently added to the wiki.


Photo tables
A photo table is like a normal wiki table except the text for each entry is accompanied by a thumbnail. For an example see Lilium Bulbs. The photo table is composed of the usual cell markup but where the normal text entries would be, there is instead a special version of the Mini command for inserting photos in wiki pages.

So instead of:
[[LiliumCandidumSection#albanicum | //Lilium albanicum//]]
which might have appeared in a table of the genus Lilium, there is:
Mini:Lilium_albanicum_bulb_PW.jpg"Lilium albanicum bulb, Pontus Wallstén"[[LiliumCandidumSection#albanicum | //albanicum//]]
this is composed of two parts, the Mini markup for a photo of the bulb:
Mini:Lilium_albanicum_bulb_PW.jpg"Lilium albanicum bulb, Pontus Wallstén"
followed by the link to go underneath it:
[[LiliumCandidumSection#albanicum | //albanicum//]]
which is the same as the link in the conventional table, except text fits better if the genus is omitted.

To put it another way, entries in photo tables consist of a picture and a text link. The markup for them simply consists of the markup for the picture, followed by the markup for a text link. In tables this combined object behaves like a text link and requires the same table markup to organise it.

For an example of a genus table being replaced by a photo table see Albuca. That table demonstrates how to handle species for which the wiki has no photos, using this markup:
(:cell:) Mini:Image_not_available.jpg[[AlbucaTwo#aurea |//aurea//]]
which references the already created JPEG called "Image_not_available".

Creating photo tables by hand is easy but tedious. So we have a tool:
http://www.pacificbulbsociety.org/pbswiki/tools/maketable.php
this should be called with parameter 'page' set equal to the pages you want to scan for species entries; the parameter can contain wildcards *. Other parameters can be added to tell the program to ignore hybrids and to not produce markup. This is a typical use:
http://www.pacificbulbsociety.org/pbswiki/tools/maketable.php?page=*Crocus*

To ignore hybrids add 'nohybrids'. To produce no markup add 'nomarkup'. Paramters are concatenated using &. So you end up with things like:
http://www.pacificbulbsociety.org/pbswiki/tools/maketable.php?page=Lilium*&nohybrids&nomarkup
Normally single species pages are ignored, but they can be included by adding the parameter 'sspages'.

There is a page Photo Tables which consists of links to this tool, and produces pages of photo tables.

Automatically produced photo tables are not perfect because the software simply uses the first photograph it finds in the section for the species. It is possible to instruct the maketable program which photo to use; this is done by adding a wiki markup comment to the end of the Mini line for the desired photo. This is what it looks like:
Mini:Hippeastrum_tucumanum_DW2.jpg"Hippeastrum argentinum, Doug Westfall"(:comment markup-tag(icon):)
You can see the required comment at the end:
(:comment markup-tag(icon):)
Markup comments do not have any effect on the wiki page.

The plan for making a photo table is:


Adding User Comments
There is an ongoing experiment to add user comments to wiki pages. For an example, look at the bottom of Zantedeschia.

To add comments to a page insert this markup

(:include Site.CommentBox:)

It should be at the end of the page just before the return link, in a section on its own marked off with dividers ----.

Comments have their own Recent Changes and All Edits pages to avoid comment changes being mixed with the main wiki versions of these pages.

The comments for a page e.g. Zantedeschia are held in the page Comments.Zantedeschia, which can be edited in the normal way, for example to remove a spam comment. Each comment begins with a #foxbegin line and ends with a #foxend line.


The page Wiki Code gives access to some of the source code for the wiki.


Return to the PBS wiki Using This Wiki page
Return to the PBS wiki Photographs And Information page
Page last modified on June 24, 2015, at 06:08 PM