User:TedSwippet/BoglebotTable

Prototype template invocation wrapper for.

Usage:

Args:
 * : Boglebot search link, from AssetDb. Required.
 * : Table title. Optional, default blank at table top, and 'Link' for source.
 * : CSS class and style attributes for the outer container table. For example, 'class="wikitable" style="width: 200px"'. Optional.
 * : If defined (any value), suppresses table footnotes. For example, 'true'. Optional.

Example:

Renders as (between the horizontal lines, which are not part of the rendering):

Notes:
 * For convenience, the template always transcludes  to pull in the required javascript. Multiple definitions of this in a single page cause no problems, and no noticeable performance issues. Any unforeseen issues with this? (If necessary it could be suppressed, though perhaps only with another parameter; there appears to be no ready way to communicate between template transclusions?).
 * Omitting  defaults to 'Link' for the source link and blank for table title.
 * Omitting  gives an error message. For example:


 * The  nonsense in this template is a workround for pipe character issues when mixing conditionals and table entries. Enables final container table entry suppression.
 * At some point, we might want to redirect www.boglebot.com without editing every call site. Because string replacement is fiddly, the template contains an example of this, but with nugatory actual replacement. Too much complexity?