Difference between revisions of "Module:Shogi diagram/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Ish ishwar
(→‎Usage: no space)
m (7 revisions imported)
 
(3 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
This module is called by [[Template:Shogi diagram]].
 
This module is called by [[Template:Shogi diagram]].
  
{{Template:Shogidiagram}}
+
{{Shogi diagram
 +
| tright
 +
|
 +
|
 +
|lg|ng|sg|gg|kg|gg|sg|ng|lg
 +
|  |rg|  |  |  |  |  |bg| 
 +
|pg|pg|pg|pg|pg|pg|pg|pg|pg
 +
|  |  |  |  |  |  |  |  | 
 +
|  |  |  |  |  |  |  |  | 
 +
|  |  |  |  |  |  |  |  | 
 +
|ps|ps|ps|ps|ps|ps|ps|ps|ps
 +
|  |bs|  |  |  |  |  |rs| 
 +
|ls|ns|ss|gs|ks|gs|ss|ns|ls
 +
|
 +
|
 +
}}
  
 
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.
 
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.

Latest revision as of 07:17, 28 September 2020

Usage

{{#invoke:Shogi diagram|function_name}}

This module is called by Template:Shogi diagram.

Template:Shogi diagram

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.