I've been thinking about a way to use templates in command stubs. Rather than have the whole sidebar be one template, one could use several templates for it. Then, rather than supply conditions (which wikidot doesn't allow), one could choose one of several templates for the same purpose.
For example, create a page called template:68k-popup2 which would contain the following code:
**Menu Location**
Press:
# {$key1} to access the popup {$title1} menu.
# {$key2} to access the {$title2} submenu.
# {$key3} to paste {$cmd}.
Then, it could be included with:
[[include template:68k-popup2
| key1 = 2nd MATH | title1 = math
| key2 = 7 | title2 = Probability
| key3 = 7 | cmd = randMat(]]
Or, say, a page called template:68k-cmd-endtag with the source
**[[[68k:tokenization|Tokenized]]] Command Size**
//3 bytes total://
* 0xE3 (extra command tag)
* {$hex} (command identifier)
* 0xE5 (end of arguments tag)
This could be included as easily as
[[include template:68k-cmd-endtag|hex=0x02]]
Benefits:
- The sidebars would be standardized.
- In many cases, this means less typing.
- We could change the wording of some section quite easily.
Disadvantages:
- This would mean around 20 templates hanging around.
- A page that includes several templates might not load as quickly (I don't know if it will)