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.
49 lines
1.7 KiB
49 lines
1.7 KiB
<html> <!-- vasl-templates:id {{SNIPPET_ID}} -->
|
|
|
|
<!-- vasl-templates:name Grid -->
|
|
<!-- vasl-templates:description Generates a grid. -->
|
|
|
|
<!-- caption = {{CAPTION*:/25|Caption}} -->
|
|
<!-- #cols = {{COLS:3/1|# columns}} ; #rows = {{ROWS:2/1|# rows}} -->
|
|
<!-- cell size = {{CELL_WIDTH:180px/5|Cell width}} x {{CELL_HEIGHT:70px/5|Cell height}} -->
|
|
<!-- cell labels = {{CELL_LABELS:none::letters::numbers|Cell labels}} -->
|
|
<!-- color = {{PLAYER_COLOR_DROPLIST:|Border color}} ; border = {{BORDER_STYLE:solid::dotted::dashed::double::groove::ridge::inset::outset|Border style}} -->
|
|
|
|
<head>
|
|
<style>
|
|
{{CSS:common}}
|
|
td {
|
|
width: {{CELL_WIDTH}} ;
|
|
height: {{CELL_HEIGHT}} ;
|
|
border: 1px {{BORDER_STYLE}} {{PLAYER_COLOR2}} ;
|
|
padding: 2px 5px ;
|
|
}
|
|
td.caption {
|
|
height: 1px ; padding: 2px 5px ;
|
|
font-size: 105% ; font-weight: bold ; text-align: center ;
|
|
background: {{PLAYER_COLOR0}} ; border: none ;
|
|
}
|
|
.cell-label { font-size: 120% ; }
|
|
</style>
|
|
</head>
|
|
|
|
{% set RANGE = [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] %}
|
|
{% set LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" %}
|
|
<table>
|
|
{%if CAPTION%} <tr> <td class="caption" colspan="{{COLS}}"> {{CAPTION}} {%endif%}
|
|
{% for row in RANGE %} {% if row <= ROWS %}
|
|
<tr> {% for col in RANGE %}
|
|
{% if col <= COLS %}
|
|
{% set CELL_NO = (row - 1) * COLS + (col - 1) %}
|
|
<td valign="top">
|
|
{% if CELL_LABELS == "letters" %}
|
|
<span class="cell-label"> {{LETTERS[CELL_NO]}} </span>
|
|
{% elif CELL_LABELS == "numbers" %}
|
|
<span class="cell-label"> {{CELL_NO + 1}} </span>
|
|
{%endif%}
|
|
{%endif%}
|
|
{%endfor%}
|
|
{%endif%} {%endfor%}
|
|
</table>
|
|
|
|
</html>
|
|
|