跳至內容

模板:Hawaiian Dictionaries/doc

維基百科,自由的百科全書

模板介紹

[編輯]

本模板可引用多本夏威夷語辭典,去解釋條目中夏威夷語詞語的意思。本模板的詞典可為條目提供在網上亦有可查證的資料庫。這些資料庫是由夏威夷大學的Ulukau計劃。

  • The first set are from a number of books published by the University of Hawaii Press.
  • The second set are records from the archives of Hawaii.

使用方法

[編輯]
{{Hawaiian Dictionaries
  | lemma
  | identifier
  | id=identifier
  | dic=xx
  | q=query
  | derivative=y
  | exact=x
  | accessdate=<date>
}}

參數

[編輯]

First parameter is the lemma (generally the word or phrase being looked up). The optional identifier, specified in second position or named parameter id= can be extracted from the URL of the query, often when there are multiple entries in the dictionary with different diacritics. For example, below id=D10739 was extracted from the entry http://wehewehe.org/gsdl2.85/cgi-bin/hdict?a=d&d=D10739.

A link to entries with diacritics can be created with the parameter q=. This is to work around incompatibilities between the database software and Wikipedia conventions. For example, the databases seem to use apostrophe instead of the Unicode character for the ʻokina, and the characters for vowels with umlauts instead of macrons for the kahakō. The exact= parameter can be set to any non-empty value to get an exact match, instead of ignoring diacritics.

The parameter dic= refers to a specific database and can be extracted from the URL, such as the j= parameter for the dictionaries. For example below, http://wehewehe.org/gsdl2.85/cgi-bin/hdict?a=q&q=Halema%CA%BBuma%CA%BBu&j=pp

These database codes include:

  • pk: Hawaiian language to English dictionary, based on the 1986 edition ISBN 0824807030 by Mary Kawena Pukui and Samuel Hoyt Elbert; this is the default
  • pp: Place Names of Hawai'i, based on the 1974 edition ISBN ISBN 0824805240 by Mary Kawena Pukui, Samuel Hoyt Elbert and Esther T. Mookini
  • cl: Hawaiʻi Place Names, based on the 2002 edition ISBN 0-8248-2451-2 by John R. K. Clark
  • mm: Māmaka kaiao: a modern Hawaiian vocabulary : a compilation of Hawaiian words that have been created, collected, and approved by the Hawaiian Lexicon Committee from 1987 through 2000 by ʻAha Pūnana Leo and Hale Kuamoʻo, 2003 edition ISBN 9780824828035
  • hpn: Database of early Hawaiian land ownership from archives (Mahele Book); focuses on 19th-century
  • gene: Database of marriages, divorces, probates, and naturalization records from archives; these generally need id=
  • royal: Article series on Hawaiian royalty from 1955 Honolulu Advertiser; these generally need id=
  • maui: Article series on Maui royalty from 1956 Honolulu Advertiser; these generally need id=

Some phrases can be only found with the enabled find derivative spelling option. For this purpose the parameter derivative= can be set (see example below).

To query the first four databases use: http://wehewehe.org/gsdl2.85/cgi-bin/hdict?l=en&j=p0
For Mahele queries: http://ulukau.org/cgi-bin/hpn?l=en&a=q&h=dtt
For Genealogy Indexes: http://ulukau.org/gsdl2.7/cgi-bin/algene
For the royalty articles: http://ulukau.org/elib/cgi-bin/library?e=d-0sohr-000Sec--11en&a=q&p2=search
For Maui royalty articles: http://ulukau.org/elib/cgi-bin/library?e=d-0somr-000Sec--11en&a=q&p2=search

With parameter id= the parameter dic= will not change the target of the link;[1] for example:
{{Hawaiian Dictionaries|puna|id=D19321}} Mary Kawena Pukui and Samuel Hoyt Elbert. lookup of puna. in Hawaiian Dictionary. Ulukau, the Hawaiian Electronic Library, University of Hawaii Press. 2003. 
{{Hawaiian Dictionaries|puna|id=D19321|dic=pp}} Mary Kawena Pukui, Samuel Hoyt Elbert and Esther T. Mookini. lookup of puna. in Place Names of Hawai'i. Ulukau, the Hawaiian Electronic Library, University of Hawaii Press. 2004.  wrong description of the dictionary
{{Hawaiian Dictionaries|puna|id=D49939}} Mary Kawena Pukui and Samuel Hoyt Elbert. lookup of puna. in Hawaiian Dictionary. Ulukau, the Hawaiian Electronic Library, University of Hawaii Press. 2003.  wrong description of the dictionary
{{Hawaiian Dictionaries|puna|id=D49939|dic=pp}} Mary Kawena Pukui, Samuel Hoyt Elbert and Esther T. Mookini. lookup of puna. in Place Names of Hawai'i. Ulukau, the Hawaiian Electronic Library, University of Hawaii Press. 2004. 

範例

[編輯]
Source code Result and notes
{{Hawaiian Dictionaries
  | noho }}
Mary Kawena Pukui and Samuel Hoyt Elbert. lookup of noho. in Hawaiian Dictionary. Ulukau, the Hawaiian Electronic Library, University of Hawaii Press. 2003. 

For unambiguous lookups no other parameters are needed
{{Hawaiian Dictionaries
  | lei
  | id=D10739 }}
Mary Kawena Pukui and Samuel Hoyt Elbert. lookup of lei. in Hawaiian Dictionary. Ulukau, the Hawaiian Electronic Library, University of Hawaii Press. 2003. 

To distinguish from lēʻʻī (with diacritics)
{{Hawaiian Dictionaries
  | Kīlauea 
  | q=Kilauea
  | dic=pp  }}
Mary Kawena Pukui, Samuel Hoyt Elbert and Esther T. Mookini. lookup of Kīlauea. in Place Names of Hawai'i. Ulukau, the Hawaiian Electronic Library, University of Hawaii Press. 2004. 

Display with diacritics, query without
{{Hawaiian Dictionaries
  | Kīlauea 
  | q=Kilauea
  | dic=cl}}
John R. K. Clark. lookup of Kīlauea. in Hawai'i Place Names: Shores, Beaches, and Surf Sites. Ulukau, the Hawaiian Electronic Library, University of Hawaii Press. 2004. 

Slightly different entry compared to above
{{Hawaiian Dictionaries
  | Kīlauea 
  | q=Kilauea
  | dic=hpn}}
Lloyd J. Soehren. lookup of Kīlauea. in Hawaiian Place Names. Ulukau, the Hawaiian Electronic Library. 2010. 

Multiple entries
{{Hawaiian Dictionaries
  | Oahu marriage record (1832–1910)
  | q="Samuel G. Wilder"
  | dic=gene
  | id=D09-000112}}
Hawaiʻi State Archives. Oahu marriage record (1832–1910). Ulukau, the Hawaiian Electronic Library. 2006. 

Once page is found
{{Hawaiian Dictionaries
  | {{Okina}}ai ha{{Okina}}a
  | q=ai haa
  | derivative=y }}
Mary Kawena Pukui and Samuel Hoyt Elbert. lookup of ʻai haʻa. in Hawaiian Dictionary. Ulukau, the Hawaiian Electronic Library, University of Hawaii Press. 2003. 

Two word phrase with diacritics
{{Hawaiian Dictionaries
  | q=Halemaʻumaʻu
  | dic=pp }}
Mary Kawena Pukui, Samuel Hoyt Elbert and Esther T. Mookini. lookup of Halemaʻumaʻu. in Place Names of Hawai'i. Ulukau, the Hawaiian Electronic Library, University of Hawaii Press. 2004. 

Unicode diacritics, not {{Okina}}

註釋

[編輯]
  1. ^ see for example this revision

參見

[編輯]

給模板編輯者的說明

[編輯]

模板結構

[編輯]

實現方法

[編輯]

編輯注意

[編輯]