Name

quick_table —

ATTRIBUTES

Attribute Pos. Req. Default Description
interpolate     0 interpolate input?
reparse     1 interpolate output?
hide     0 Hide the tag return value?

DESCRIPTION

BEHAVIOR

This tag does not appear to be affected by, or affect, the rest of Interchange.

EXAMPLES

No examples are available at this time. We do consider this a problem and will try to supply some.

NOTES

AVAILABILITY

quick_table is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: code/UI_Tag/quick_table.coretag
Lines: 34


# Copyright 2002-2007 Interchange Development Group and others
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.  See the LICENSE file for details.
# 
# $Id: quick_table.coretag,v 1.4 2007-03-30 23:40:54 pajamian Exp $

UserTag quick_table Order        border
UserTag quick_table HasEndTag
UserTag quick_table Interpolate
UserTag quick_table Version      $Revision: 1.4 $
UserTag quick_table Routine      <<EOR
sub {
my ($border,$input) = @_;
$border = " BORDER=$border" if $border;
my $out = "<TABLE ALIGN=LEFT$border>";
my @rows = split /\n+/, $input;
my ($left, $right);
for(@rows) {
  $out .= '<TR><TD ALIGN=RIGHT VALIGN=TOP>';
  ($left, $right) = split /\s*:\s*/, $_, 2;
  $out .= '<B>' unless $left =~ /</;
  $out .= $left;
  $out .= '</B>' unless $left =~ /</;
  $out .= '</TD><TD VALIGN=TOP>';
  $out .= $right;
  $out .= '</TD></TR>';
  $out .= "\n";
}
$out .= '</TABLE>';
}
EOR

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!