<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AChessboard%2FChess</id>
	<title>Module:Chessboard/Chess - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AChessboard%2FChess"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Chessboard/Chess&amp;action=history"/>
	<updated>2026-05-28T13:14:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Chessboard/Chess&amp;diff=135571&amp;oldid=prev</id>
		<title>imported&gt;Frietjes: add for mobile per request on talk page</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Chessboard/Chess&amp;diff=135571&amp;oldid=prev"/>
		<updated>2022-08-10T14:12:18Z</updated>

		<summary type="html">&lt;p&gt;add for mobile per request on talk page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.dims()&lt;br /&gt;
	return 8, 8&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.letters()&lt;br /&gt;
	return {&amp;#039;a&amp;#039;, &amp;#039;b&amp;#039;, &amp;#039;c&amp;#039;, &amp;#039;d&amp;#039;, &amp;#039;e&amp;#039;, &amp;#039;f&amp;#039;, &amp;#039;g&amp;#039;, &amp;#039;h&amp;#039;}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.image_board(size)&lt;br /&gt;
	return string.format( &amp;#039;[[File:Chessboard480.svg|%dx%dpx|link=|class=notpageimage]]&amp;#039;, 8 * size, 8 * size )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.image_square( pc, row, col, size )&lt;br /&gt;
	local colornames = { l = &amp;#039;white&amp;#039;, d = &amp;#039;black&amp;#039;, u = &amp;#039;unknown color&amp;#039; }&lt;br /&gt;
	local piecenames = { &lt;br /&gt;
		p = &amp;#039;pawn&amp;#039;,&lt;br /&gt;
		r = &amp;#039;rook&amp;#039;,&lt;br /&gt;
		n = &amp;#039;knight&amp;#039;,&lt;br /&gt;
		b = &amp;#039;bishop&amp;#039;,&lt;br /&gt;
		q = &amp;#039;queen&amp;#039;,&lt;br /&gt;
		k = &amp;#039;king&amp;#039;,&lt;br /&gt;
		a = &amp;#039;archbishop&amp;#039;,&lt;br /&gt;
		c = &amp;#039;chancellor&amp;#039;,&lt;br /&gt;
		z = &amp;#039;champion&amp;#039;,&lt;br /&gt;
		w = &amp;#039;wizard&amp;#039;,&lt;br /&gt;
		t = &amp;#039;fool&amp;#039;,&lt;br /&gt;
		M = &amp;#039;mann&amp;#039;,&lt;br /&gt;
		h = &amp;#039;upside-down pawn&amp;#039;,&lt;br /&gt;
		m = &amp;#039;upside-down rook&amp;#039;,&lt;br /&gt;
		B = &amp;#039;upside-down bishop&amp;#039;,&lt;br /&gt;
		N = &amp;#039;upside-down knight&amp;#039;,&lt;br /&gt;
		f = &amp;#039;upside-down king&amp;#039;,&lt;br /&gt;
		g = &amp;#039;upside-down queen&amp;#039;,&lt;br /&gt;
		e = &amp;#039;elephant&amp;#039;,&lt;br /&gt;
		s = &amp;#039;boat&amp;#039;,&lt;br /&gt;
		G = &amp;#039;giraffe&amp;#039;,&lt;br /&gt;
		U = &amp;#039;unicorn&amp;#039;,&lt;br /&gt;
		Z = &amp;#039;zebra&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
	local symnames = {&lt;br /&gt;
		xx = &amp;#039;black cross&amp;#039;,&lt;br /&gt;
		ox = &amp;#039;white cross&amp;#039;,&lt;br /&gt;
		xo = &amp;#039;black circle&amp;#039;,&lt;br /&gt;
		oo = &amp;#039;white circle&amp;#039;,&lt;br /&gt;
		ul = &amp;#039;up-left arrow&amp;#039;,&lt;br /&gt;
		ua = &amp;#039;up arrow&amp;#039;,&lt;br /&gt;
		ur = &amp;#039;up-right arrow&amp;#039;,&lt;br /&gt;
		la = &amp;#039;left arrow&amp;#039;,&lt;br /&gt;
		ra = &amp;#039;right arrow&amp;#039;,&lt;br /&gt;
		dl = &amp;#039;down-left arrow&amp;#039;,&lt;br /&gt;
		da = &amp;#039;down arrow&amp;#039;,&lt;br /&gt;
		dr = &amp;#039;down-right arrow&amp;#039;,&lt;br /&gt;
		lr = &amp;#039;left-right arrow&amp;#039;,&lt;br /&gt;
		ud = &amp;#039;up-down arrow&amp;#039;,&lt;br /&gt;
		db = &amp;#039;up-right and down-left arrow&amp;#039;,&lt;br /&gt;
		dw = &amp;#039;up-left and down-right arrow&amp;#039;,&lt;br /&gt;
		x0 = &amp;#039;zero&amp;#039;,&lt;br /&gt;
		x1 = &amp;#039;one&amp;#039;,&lt;br /&gt;
		x2 = &amp;#039;two&amp;#039;,&lt;br /&gt;
		x3 = &amp;#039;three&amp;#039;,&lt;br /&gt;
		x4 = &amp;#039;four&amp;#039;,&lt;br /&gt;
		x5 = &amp;#039;five&amp;#039;,&lt;br /&gt;
		x6 = &amp;#039;six&amp;#039;,&lt;br /&gt;
		x7 = &amp;#039;seven&amp;#039;,&lt;br /&gt;
		x8 = &amp;#039;eight&amp;#039;,&lt;br /&gt;
		x9 = &amp;#039;nine&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
	local colchar = {&amp;#039;a&amp;#039;,&amp;#039;b&amp;#039;,&amp;#039;c&amp;#039;,&amp;#039;d&amp;#039;,&amp;#039;e&amp;#039;,&amp;#039;f&amp;#039;,&amp;#039;g&amp;#039;,&amp;#039;h&amp;#039;}&lt;br /&gt;
	local color = mw.ustring.gsub( pc, &amp;#039;^.*(%w)(%w).*$&amp;#039;, &amp;#039;%2&amp;#039; ) or &amp;#039;&amp;#039;&lt;br /&gt;
	local piece = mw.ustring.gsub( pc, &amp;#039;^.*(%w)(%w).*$&amp;#039;, &amp;#039;%1&amp;#039; ) or &amp;#039;&amp;#039;&lt;br /&gt;
	local alt = colchar[col] .. row .. &amp;#039; &amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	if colornames[color] and piecenames[piece] then&lt;br /&gt;
		alt = alt .. colornames[color] .. &amp;#039; &amp;#039; .. piecenames[piece]&lt;br /&gt;
	else&lt;br /&gt;
		alt = alt .. ( symnames[piece .. color] or piece .. &amp;#039; &amp;#039; .. color )&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return string.format( &amp;#039;[[File:Chess %s%st45.svg|%dx%dpx|alt=%s|%s|link=|class=notpageimage|top]]&amp;#039;, piece, color, size, size, alt, alt )&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Frietjes</name></author>
	</entry>
</feed>