Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

-

Historians wanted: Inquire here.

TASBot Wiki:Style guide/Creating templates: Difference between revisions

From TASBot Wiki
Copy in from village pump
 
(No difference)

Latest revision as of 07:17, 10 August 2024

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.)