Talk:ROM images

From TekWiki
Jump to navigation Jump to search

The wiki text for the table entries is a bit complex and repetitive. This bit of bash code generates an entry that can be pasted into the wiki. The "refdes" and "instrument" fields should be filled in, or replaced with question marks if they are unknown.

$ cat gen_romtable_entry

#!/bin/bash

partnum=$1
echo "| [[Media:${partnum}.bin|${partnum}.bin]] ([[:File:${partnum}.bin#filehistory|?]]) || refdes || [[instrument]]"
echo "|-" 

Usage example:

$ ./gen_romtable_entry 160-9983-01

Example output:

| [[Media:160-9983-01.bin|160-9983-01.bin]] ([[:File:160-9983-01.bin#filehistory|?]]) || refdes || [[instrument]]
|-