Jump to content

Module:Shogi diagram/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by JohnBlackburne (talk | contribs) at 20:32, 19 December 2016 (Usage: Use working example). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Usage

{{#invoke:Shogi diagram|function_name}}

This module is called by Template:Shogidiagram.

Template:Shogidiagram

As the original template used .pngs/.svgs, when many templates were used on pages, the page load times became a bit long. In order to fix this, this module instead uses text. And, text is preferable anyway since it renders very sharp edges. The drawback is that it depends on web browser for rotated text – that is, the web browser must be a modern one.

It was based on Module:Chessboard.