ទំព័រគំរូ:soplink/doc

ពីWiktionary

Usage[កែប្រែ]

Used to link to a suspected sum of parts if it exists as an entry, and to the parts otherwise.

This template can be substed.

The arguments (up to ten) are the parts, including hyphens and slashes but not spaces, which will be added by the template. If two parts abut (with no space between them) in the whole, use {{=}} as the parameter between them.

The optional parameters form1, form2, ..., form10 are for the forms the parts take when part of the whole, and default to the corresponding numbered parameters if absent.

Each optional parameters alt1, alt2, ..., alt10 is for the display text for the corresponding part if the whole does not exist as an entry, and defaults to the corresponding form... parameter (above) if absent, and to the corresponding positional parameter if the form... parameter is also absent.

The optional parameter sc is for the script. The optional parameter lang is for the language code.

Examples[កែប្រែ]

  • {{soplink|carry|the|message|to|Garcia}} → carry the message to Garcia
  • {{soplink|kill|-|joy}} → kill-joy
  • {{soplink|a|/|k|/|a}} → a/k/a
  • {{soplink|foo|/|bar|baz|-}} → foo/bar baz-
  • {{soplink|foo|{{=}}|bar|baz-}} → foobar baz-
  • {{soplink|defender|{{=}}|nos}} → defendernos
  • {{soplink|ב־|form1=ב|alt1=ב|{{=}}|ארץ}} →‎ בארץ
  • {{soplink|כ־|{{=}}|ש־|form1=כ|sc=Hebr}} →‎ כש־