Template:ja-add/documentation

A variant of, used if there is already a  section and you want to add new words/readings to it.

Uses the  function of Module:ja-new.

How to use

 * 1) Click the "[ edit ]" link on the Japanese L2 header.
 * 2) Replace all text in the edit window with.
 * 3) Preview and save.

The parameters are the same as except that you don't need to take care of en and ref.

What the template does
The template gets the content of the current page and extracts its Japanese section (including the following "" if present). Then it checks the L3 headers of the Japanese section. If there are multiple Etymology sections, a new Etymology section (automatically numbered) is generated with. Otherwise the existing sections (except ) are increased one level and grouped under , and the new word/reading is generated as. Finally, if there is only a  section, the new word/reading is generated by simply calling, with the POS headers on L3. The new content is inserted before  if there is one, or otherwise at the very end of the   section (before the potential ""). Finally, the new Japanese section with new content inserted is substituted for the template and replaces the previous one.

If the Korean-related parameters are used, the Korean section is simply inserted after the Japanese section.


 * Notes