Create attractive VASL scenarios, with loads of useful information embedded to assist with game play. https://vasl-templates.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
vasl-templates/vasl_templates/webapp/data/default-template-pack/extras/grid.j2

31 lines
1.0 KiB

<html> <!-- vasl-templates:id {{SNIPPET_ID}} -->
<!-- vasl-templates:name Grid -->
<!-- vasl-templates:description Generates a grid. -->
<!-- #cols = {{COLS:3/2|# columns}} ; #rows = {{ROWS:2/2|# rows}} -->
<!-- border: {{BORDER_STYLE:solid::dotted::dashed::double::groove::ridge::inset::outset|Border style}} ; {{PLAYER_COLOR2_DROPLIST_EX:|Border color}} -->
<head>
<style>
{{CSS:common}}
td {
width: {{WIDTH:160px/5|Cell width}} ;
height: {{HEIGHT:60px/5|Cell height}} ;
border: 1px {{BORDER_STYLE}} {{PLAYER_COLOR2_DROPLIST}} ;
}
</style>
</head>
<table>
{% for row in [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50] %}
{% if row <= ROWS %}
<tr>
{% for col in [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50] %}
{% if col <= COLS %} <td> {%endif%}
{%endfor%}
{%endif%}
{%endfor%}
</table>
</html>