How To Convert A Wiki Table To A Link?

Viewed 457

The following HTML code displays a table which is a link to another site. That is, clicking on any pixel in the inner table (even white space) invokes the link. How do I code this in a Wiki using pipes syntax?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title>How To Convert A Wiki Table To A Link?</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>

<body>

<table border="1" cellspacing="0" cellpadding="0" width="20%" style="border-collapse: collapse;">
  <tr>
    <td>
      <a href="http://google.com">
        <table border="0" cellspacing="0" cellpadding="0" width="100%">
          <tr>
            <td style="text-align: left;">M pigeons</td>
            <td style="text-align: right;">000</td>
          </tr>

          <tr>
            <td colspan="2">into N holes</td>
          </tr>
        </table>
      </a>
    </td>
  </tr>
</table>

</body></html>

Pipes Syntax for this table-in-a-table looks like this (but without the <a href="..."> ... </a>)

{| border="1" cellspacing="0" cellpadding="0" width="20%" style="border-collapse: collapse;"
|
{| border="0" cellpadding="0" cellspacing="0" width="100%"
|-
|style="text-align: left;"|M pigeons
|style="text-align: right;"|000
|-
|colspan="2"|into N holes
|}
|}

How do I achieve the effect of the <a href="..."> ... </a> as in the HTML code above?

1 Answers
Related