use of src parameter to directly copy and paste Kifu source text inside the snippet tag

This example uses src parameter to directly insert kifu file inside of the snippet.
%[renderShogiBoard? 
&type=`1` &noComment=`1`
&src=`
9 8 7 6 5 4 3 2 1
+---------------------------+
| ・ ・ ・ ・ ・v歩 銀v桂v香|一
| ・ ・ ・ ・ ・ ・v玉 ・ ・|二
| ・ ・ ・ ・ ・ ・ ・v歩v歩|三
| ・ ・ ・ ・ ・ 飛 歩 ・ ・|四
| ・ ・ ・ ・ 馬 ・ ・ ・ ・|五
| ・ ・ ・ ・ ・ ・ ・ ・ ・|六
| ・ ・ ・ ・ ・ ・ ・ ・ ・|七
| ・ ・ ・ ・ ・ ・ ・ ・ ・|八
| ・ ・ ・ ・ ・ ・ ・ ・ ・|九
+---------------------------+
先手の持駒:なし
`
&moves = `"s+2231","g-0032","s+4244","x"`
&smooth = `1`
&size = `small`
%]

This snippet call the 'src' parameter. The parameter content is basically a kifu file text that is copied from Kakinoki kifu file format. The example above is simply a initial board setup information that was taken from kifu file. This particular kifu is one of tsumeshogi problems that site admin of shogitown.com send out every week as a part of his newsletter. I added a solution in &moves parameter and made the board interactive. Also note the use of 'noComment' parameter to suppress the comment box and use of size=`small` to shrink the board rendering.

On Hand

This page was originally created 12 years, 11 months ago and last updated 3 years ago