Difference between revisions of "Template:Malay name/doc"

From blackwiki
Jump to navigation Jump to search
imported>Thetrick
(Added Template:Documentation subpage)
imported>Jacklee
(Updated documentation subpage)
Line 5: Line 5:
 
==Syntax==
 
==Syntax==
 
<pre>
 
<pre>
{{Malay name|[given name]|[patronymic]}}
+
{{Malay name|[given name]|[patronymic]|note=on (optional)}}
 
</pre>
 
</pre>
  
 
==Usage==
 
==Usage==
This template is 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. There are two versions of the template:
+
This template is a [[Wikipedia:Hatnote|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:
  
{| class="wikitable"
+
{| class=wikitable width=100%
 
|-
 
|-
!width="20%"|Template
+
!width=20%|Parameter
!Description
+
!width=80%|Description
 
+
|- valign=top
|- valign="top"
+
|align=center|[''given name'']
|align="center"|{{tl|Malay name}}
+
|Replace this term with the person's given or personal name(s).
|This is the standard notice, which explains what is mentioned in the paragraph above.
+
|- valign=top
 
+
|align=center|[''patronymic'']
|- valign="top"
+
|Replace this term with the person's patronymic, or father's name.
|align="center"|{{tl|Malay name2}}
+
|- valign=top
|In addition to the standard notice, this template explains the meanings of the [[Arabic language|Arabic]] words ''bin'' (often abbreviated "''b.''") and ''binti''/''binte'' ("''bt.''"/"''bte.''").
+
|align=center|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 [[Malay people|Malays]] in [[Malaysia]] and [[Singapore]]. If "note=off" or the "note" parameter is omitted, the explanatory note is not displayed.
 
|}
 
|}
  
 
==Example==
 
==Example==
Each template should be used as follows:
+
{| class=wikitable width=100%
 
+
|-
:<nowiki>{{</nowiki>Malay name|''[given name]''|''[patronymic]''}}
+
!width=40%|Wikitext
 +
!width=60%|Result
 +
|- valign=top
 +
|align=center|<tt><nowiki>{{Malay name|Zubir|Said}}</nowiki></tt>
 +
|{{Malay name|Zubir|Said}}
 +
|- valign=top
 +
|align=center|<tt><nowiki>{{Malay name|Mohammad Said|Yusof|note=on}}</nowiki></tt>
 +
|{{Malay name|Mohammad Said|Yusof|note=on}}
 +
|}
  
For instance, if the subject of the biographical article is named "[[Zubir Said]]" or "Zubir bin Said", the template should be set out like this:
 
 
:<nowiki>{{</nowiki>Malay name|Zubir|Said}}
 
 
The result is as follows:
 
 
{{Malay name|Zubir|Said}}
 
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
+
[[Category:Surname disambiguation templates|{{PAGENAME}}]]
  
 
</includeonly>
 
</includeonly>

Revision as of 13:09, 1 November 2008

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 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}}