الگو:Singular link/doc: تفاوت میان نسخهها
fa>John of Reading جز (←Usage: Typo fixing, replaced: paramter → parameter) |
Wikivahdat (بحث | مشارکتها) جز (۱ نسخه واردشده) |
(بدون تفاوت)
|
نسخهٔ کنونی تا ۲۱ نوامبر ۲۰۲۲، ساعت ۰۷:۵۱
پرونده:Edit-copy green.svg | This is a documentation subpage for الگو:Singular link. It contains usage information, categories and other content that is not part of the original الگو page. |
صفحه الگو:Ombox/styles.css محتوایی ندارد.
This template should always be substituted (i.e., use {{subst:Singular link}}). Any accidental transclusions will be automatically substituted by a bot. |
Performs the "Word-ending links" or "linktrail" technique in reverse. Allows a link to be easily generated that displays the singular form of a word while linking to the plural form. Defaults to removing "s" from the end of the link as displayed.
Usage
The article name to link to is the first unnamed parameter. The suffix to remove is the second unnamed parameter (defaults to "s" if left blank). For titles or suffixes that include an equals sign (=), specify the first and second parameter using |1=
and |2=
.
{{sgl|test}} |
test |
{{sgl|tests}} |
test |
{{sgl|tests|s}} |
test |
{{sgl|testing|ing}} |
test |
{{sgl|1==?|2=?}} |
= |
{{sgl|1=DJ=|2==}} |
DJ |