Difference between revisions of "Template:Malay name/doc"
Jump to navigation
Jump to search
imported>Zulfadli51 m (→Usage) |
imported>Daviddwd (Template data) |
||
| Line 47: | Line 47: | ||
"params": { | "params": { | ||
"1": { | "1": { | ||
| − | "label": "Given name" | + | "label": "Given name", |
| + | "description": "The person's Given name in Malay", | ||
| + | "example": "Najib", | ||
| + | "type": "line", | ||
| + | "required": true | ||
}, | }, | ||
"2": { | "2": { | ||
| − | "label": "Patronymic" | + | "label": "Patronymic", |
| + | "description": "The person's patronymic name in Malay", | ||
| + | "example": "Razak", | ||
| + | "type": "line", | ||
| + | "required": true | ||
}, | }, | ||
"note": { | "note": { | ||
"label": "Note", | "label": "Note", | ||
| − | "example": "'off' or 'on'" | + | "example": "'off' or 'on'", |
| + | "description": "If \"on\", attaches an explanatory note on Malay naming conventions", | ||
| + | "type": "string" | ||
} | } | ||
| − | } | + | }, |
| + | "format": "{{_| _ = _}}\n", | ||
| + | "description": "Explains that the person the article is about has a Malay name, and optionally its associated naming customs" | ||
} | } | ||
</templatedata> | </templatedata> | ||
Revision as of 20:57, 17 February 2019
| This is a documentation subpage for Template:Malay name. It contains usage information, categories and other content that is not part of the original template page. |
Syntax
{{Malay name|[given name]|[patronymic]|note=on (optional)}}
Usage
This template is a hatnote that can be put at the top of a biographical article to explain to readers that the second element of a Malay name is not the family name but a patronymic, that is, the given name of his or her father. The parameters that the template takes are listed below:
| Parameter | Description |
|---|---|
| [given name] | Replace this term with the person's given or personal name(s). |
| [patronymic] | Replace this term with the person's patronymic, or father's name. |
| note | Optional: if "note=on", the following explanatory note is displayed: "The Arabic word bin (b.) or binti/binte (bt./bte.), if used, means 'son of' or 'daughter of' respectively." These abbreviations are often used by Malays in Brunei, Malaysia and Singapore. If "note=off" or the "note" parameter is omitted, the explanatory note is not displayed. |
Example
| Wikitext | Result |
|---|---|
| {{Malay name|Zubir|Said}} | |
| {{Malay name|Mohammad Said|Yusof|note=on}} |
Explains that the person the article is about has a Malay name, and optionally its associated naming customs
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Given name | 1 | The person's Given name in Malay
| Line | required |
| Patronymic | 2 | The person's patronymic name in Malay
| Line | required |
| Note | note | If "on", attaches an explanatory note on Malay naming conventions
| String | optional |