User:Eirikr/usr/ja-suru-etym

Compound of.

Description
Simple template for use in the ===Etymology=== section of the very many [noun] + する compound verbs in Japanese.

Usage
Four parameters:
 * or (required) - The base noun, in kanji if it has them, or in hiragana or katakana otherwise.
 * or (optional) - Hiragana for the base noun.  Do not use for base nouns already written in hiragana.
 * or (required) - Romaji for the base noun.
 * or (required) - The English gloss for the base noun.  Can be straight text, or wikilinked text.
 * (optional) - The sort key for the base noun. If omitted, the entry is sorted according to the  value, or the  value if that is missing too.
 * Similar to in the Japanese part-of-speech templates; only use if the first character in  begins with a  (a two-dot or ten-ten kana) or with a  (a circle or maru kana).  If two-dot, follow the word with one apostrophe ('); if circle, with two ( '' ).  This makes sure that entries are sorted properly in Category:Japanese compound words.
 * If the value does not start with a two-dot or circle kana, then don't use the  parameter.

Examples
Wikitext - Kanji base noun

Output

Compound of (benkyō, "one's study, one's studies") +  (suru, "to do").

Wikitext - Hiragana base noun

Output

Compound of (urouro, "uncertainly; nervously; aimlessly") +  (suru, "to do").

Wikitext - Katakana base noun

Output

Compound of (ribūto, "reboot") +  (suru, "to do").