Wikia


//
////////////////////////////////////////////////////////////////////////////////////////////////////
// Module: HTML
// HTML is used to create HTML text. It intentionally uses style attributes in the elements,
// although a bit blunt, it's in the Wikia's often to only way to get control on the style of the
// HTML elements. A cascading style sheet is often not good enough.
//
// Dependencies
// These files shall be included before this file is included:
// - none
////////////////////////////////////////////////////////////////////////////////////////////////////
/*------------------------------------------------------------------------------------------------*/
function A(href, onclick, innerHTML) {
  track.enter("A()");
  var HTML = "<a href=\"" + href + "\" onclick=\"" + onclick + "\" style=\"margin: 0; padding: 0;" +
    " font-size: 14; line_height: 22px; \">" + innerHTML + "</a>";
  track.log("Returning: " + HTML);
  return HTML;
}
/*------------------------------------------------------------------------------------------------*/
function Button(onclick, innerHTML) {
  track.enter("Button()");
  var HTML = "<button onclick=\"" + onclick + "\" style=\"width: 100%; padding: 0 5px; \">" +
    innerHTML + "</button>";
  track.log("Returning: " + HTML);
  return HTML;
}
/*------------------------------------------------------------------------------------------------*/
function InputText(id, value) {
  track.enter("InputText()");
  var HTML = "<input id=\"" + id + "\" value=\"" + value +"\" style=\"width: 98%; \" type=\"text" +
    "\"/>";
  track.log("Returning: " + HTML);
  return HTML;
}
/*------------------------------------------------------------------------------------------------*/
function P(innerHTML) {
  track.enter("P()");
  var HTML = "<p style=\"margin: 0; padding: 0; font-size: 14; line_height: 22px; \">" + innerHTML +
    "</p>";
  track.log("Returning: " + HTML);
  return HTML;
}
/*------------------------------------------------------------------------------------------------*/
function Table(innerHTML) {
  track.enter("Table()");
  var HTML = "<table cellspacing=\"0\" cellpadding=\"0\" style=\"margin: 0; border: 0px solid red" +
    "; padding: 0; font-size: 14; line_height: 22px; \">\n" + innerHTML + "</table>\n";
  track.log("Returning: " + HTML);
  return HTML;
}
/*------------------------------------------------------------------------------------------------*/
function td(colspan, innerHTML) {
  track.enter("td()");
  var HTML = "<td colspan=\"" + colspan + "\" style=\"height: 22px; margin: 0; border: 0px solid " +
    "red; padding: 0; font-size: 14; line_height: 22px; \">" + innerHTML + "</td>"
  track.log("Returning: " + HTML);
  return HTML;
}
/*------------------------------------------------------------------------------------------------*/
function th(width, innerHTML) {
  track.enter("th()");
  var HTML = "<th scope=\"col\" style=\"margin: 0 0 0 10px; border: 0px solid red; padding: 0; fo" +
    "nt-size: 14; line_height: 22px; width: " + width + "px; \">" + innerHTML + "</th>"
  track.log("Returning: " + HTML);
  return HTML;
}
/*------------------------------------------------------------------------------------------------*/
function tr(innerHTML) {
  track.enter("tr()");
  var HTML = "<tr style=\"margin: 0; padding: 0; font-size: 14; line_height: 22px; vertical-align" +
    ": top; \">\n" + innerHTML + "\n</tr>\n";
  track.log("Returning: " + HTML);
  return HTML;
}
includer.moduleIncluded(1);
//

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Around Wikia's network

Random Wiki