User:Pathoschild/Scripts/AJAX transclusion table

From Meta, a Wikimedia project coordination wiki

AJAX transclusion table

Screenshot of a row collapsed, loading, and expanded.

The AJAX transclusion table script adds a "[show]" link in the first cell of every row in tables with the "attable" class. Clicking the link will display the linked page below (see screenshots at right). No show/hide link will be shown in rows that don't contain a link, like headings.


  1. Copy the following code to your global.js page (for all wikis) or your common.js page (for Meta only).
     * Ajax transclusion table adds dynamic content loading to tables with class="attable".
     * @see
     * @update-token [[File:Pathoschild/ajaxtransclusiontable.js]]
  2. Refresh your browser to reload the JavaScript. (In Chrome or Firefox, press [CTRL] and [R] at the same time.)

See also[edit]