https://bugzilla.wikimedia.org/show_bug.cgi?id=30371
Web browser: ---
Bug #: 30371
Summary: Make a nice way of building HTML tables
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General/Unknown
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
$wgOut->addHTML( Xml::openElement( 'table', array( 'class' => 'TablePager' ) )
);
$wgOut->addHTML( '<thead>' );
$wgOut->addHTML( '<tr>' );
$wgOut->addHTML( '<th>' );
Things like that, just suck
Having a table object(or something)..
$table->openTable();
$table->addHeaderRow( array( 'foo', 'bar, 'baz' ) );
$table->openBody();
$table->addRow( array( 'lol', '1', '2' ) );
$table->addRow( array( 'zing', '3', '4' ) );
$table->closeBody();
$table->closeTable();
Or something, whatever, would be nicer...
Maybe some part of OutputPage or something?
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l