The first video in the TASBot Re: (TASBot Revisited) series is out! TASBot Re: Gradius covers our first run from AGDQ 2014.

Historians wanted: Inquire here.

TASBot Wiki:Style guide/Creating templates

From TASBot Wiki
< TASBot Wiki:Style guide
Revision as of 07:17, 10 August 2024 by YoshiRulz (talk | contribs) (Copy in from village pump)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

To get the visual editor to generate nice code, ensure any block templates you create have "format": "{{_|_=_}}\n" (as inline but with trailing newline) or "format": "{{_\n|_=_\n}}\n" (improved version of block) in the TemplateData—see docs. This is unfortunately necessary to do on each individual template since the named aliases are hardcoded. (Getting the generated invocation to not be in sentence case is a lost cause. It seems to honour what was entered manually though.)