มอดูล:Authority control/config/doc

จากวิกิพีเดีย สารานุกรมเสรี

ประกอบด้วยรายละเอียดการกำหนดค่าสำหรับ มอดูล:Authority control

Syntax[แก้]

syntax สำหรับตาราง p.config เป็นดังนี้

  • ชื่อรหัสสำหรับตัวระบุ อยู่ภายในเครื่องหมายคำพูด
  • property = หมายเลขคุณลักษณะของวิกิสนเทศ โดยไม่มีคำนำหน้า P
  • section = หมายเลขส่วนที่จะวางตัวระบุ ดู #รายการส่วนต่าง ๆ สำหรับรายละเอียด
  • pattern = รูปแบบลูอาของรูปแบบที่ถูกต้องสำหรับตัวระบุ โปรดทราบว่าสิ่งนี้จะคล้ายกันแต่ไม่เหมือนกับนิพจน์ปรกติ หากละเว้น มอดูลจะไม่ตรวจสอบความถูกต้องของตัวระบุ
  • link = URL ของหน้าภายนอกพร้อมรายละเอียดของตัวระบุ รหัส $1 จะถูกแทนที่ด้วยตัวระบุ
  • label = ป้ายกำกับสำหรับลิงก์
  • remark = คำอธิบายโดยย่อของฐานข้อมูลการควบคุมรายการหลักฐาน เพื่อใช้กับเอกสารประกอบของ แม่แบบ:Authority control เท่านั้น

ตัวอย่าง[แก้]

The syntax below generates a link to the Dictionary of Irish Biography in section 5. It gets its data from Wikidata property (P6829) and identifiers need to be in the following form: 0, followed by 0 or 1, followed by 4 digits, possibly followed by a decimal point and then a letter from A to D.

{'DIB',
  property = 6829,
  section = 5,
  pattern = '0[01]%d%d%d%d%.?[A-D]?',
  link = 'https://doi.org/10.3318/dib.$1.v1',
  label = 'Ireland',
},

พารามิเตอร์ขั้นสูง[แก้]

  • patterns = if more than one Lua pattern is needed, then use the plural form of this argument and include the comma-separated list of patterns enclosed by curly braces.
  • prefix = a prefix to be included before the links. In this case numbers 1, 2, ... will be used as the labels and the label field will be ignored.
  • valid = the name of a custom Lua function in /auxiliary used to determine if the identifier is valid or not, in case the pattern method cannot be used. It should return false if the identifier is invalid.
  • customlink = the name of a custom Lua function in /auxiliary which will produce the entire external link. It should return false if the identifier is invalid.
  • suppressedbyproperty = if this identifier should not be displayed if other identifiers are present, then specify them here in a comma-separated list enclosed by curley braces.

รายการส่วนต่าง ๆ[แก้]

ชื่อของแต่ละส่วนถูกกำหนดโดยฟังก์ชัน p.sectionNames

ส่วนคำอธิบายตัวระบุ
1นานาชาติ (P2163), ISNI (ISO 27729) (P213), VIAF (P214), (P10832)
2ประจำชาติ (P1015), (P1890), (P950), BNF (P268), BNF (P268), (P3788), (P9984), ตัวระบุ GND (P227), (P396), J9U (P8189), (P8980), (P11249), LCCN (P244), (P5587), ตัวระบุ LNB (P1368), ตัวระบุ NCL (P1048), ตัวระบุ NDL (P349), ตัวระบุ NKC (P691), ตัวระบุ NLA (P409), (P3348), (P5034), (P1003), ตัวระบุ NSK (P1375), (P1006), (P7293), (P1005), ตัวระบุ NLP (P1695), (P947), (P906), (P8034)
3ภูมิศาสตร์ (P3562), (P2980), (P5818), (P3920), (P4038), (P9725), (P4535), (P4143), (P1886), (P3407), (P3863), (P3601), (P982), (P1004), (P380), (P2484), (P3563), (P4055), (P3223), (P1584), (P4423), (P5288), (P454), (P3723), (P3993), (P3326)
4วิชาการ (P864), (P428), (P271), (P2456), (P1960), (P10299), (P4955), (P549), (P496), (P3233), (P3829), (P1053), (P1153), (P1556)
5ศิลปิน (P3372), (P4114), (P6804), (P5226), (P1707), (P2349), (P8381), (P6792), (P7303), (P1736), (P1248), (P9692), ตัวระบุชื่อศิลปินของ MusicBrainz (P434), (P2174), (P2268), (P5368), (P2041), (P2750), (P5321), (P650), (P781), (P4581), (P3544), (P245)
6ประชาชน (P1907), (P2558), (P4186), (P865), (P651), (P1908), (P1986), (P11646), (P6829), (P7902), (P4534), รหัสนักกีฬากรีฑาโลก (P1146), (P791), (P2418), (P1045), (P1315), (P6213), (P1157)
7อื่น ๆ (P2092), (P5302), (P8671), (P4613), (P902), (P9070), (P347), (P886), (P1330), (P966), (P436), (P1407), (P435), (P1225), (P5504), (P350), (P3430), ตัวระบุ idRef (P269), (P1323), (P7314), (P1362)

รายชื่อที่อนุญาต[แก้]

The whitelists are defined by the p.whitelists function. The syntax is as follows:

  • code = {topic = topic QID, properties = {property PIDs}}

where

  • code is the code of the whitelist which is called via the |show= parameter.
  • topic QID is the Wikidata QID for the topic represented by the whitelist, without the Q prefix.
  • property QIDs is a comma-separated list of PIDs for the properties included in the whitelist (without the prefix P).

For example, the whitelist for Italy is defined as:

it = {topic = 38, properties = {396, 3863, 1986, 8034}},

The whitelist has code it, represents ประเทศอิตาลี (Q38) and includes the following properties: (P396), (P3863), (P1986), (P8034).

รายชื่อที่ได้รับการยอมรับในปัจจุบันมีดังต่อไปนี้

Codeหัวข้อตัวระบุ
clประเทศชิลี (P1890)
lighthouseประภาคาร (P3563), (P4055), (P3223), (P4423), (P3723), (P3993), (P3562), (P2980), (P4038), (P3920), (P4143), (P3863), (P3601)
grประเทศกรีซ (P3348)
hrประเทศโครเอเชียตัวระบุ NSK (P1375)
chประเทศสวิตเซอร์แลนด์ (P902), (P886), (P3065), (P781), (P1362)
ruประเทศรัสเซีย (P947)
czประเทศเช็กเกียตัวระบุ NKC (P691)
lvประเทศลัตเวียตัวระบุ LNB (P1368)
roประเทศโรมาเนีย (P1003)
jaประเทศญี่ปุ่นตัวระบุ NDL (P349), (P271)
artsศิลปกรรมBNF (P268), VIAF (P214), (P7859), (P3372), (P6804), (P1907), (P4186), (P2092), (P1908), (P1707), (P6829), (P2349), (P6792), ตัวระบุ GND (P227), (P1960), (P347), (P1248), LCCN (P244), (P1225), (P2041), ตัวระบุ NLA (P409), (P2750), (P650), (P350), (P781), (P3430), (P3544), (P1315), (P245), (P1986), (P7902), (P651), (P791), (P7303)
svประเทศสวีเดน (P906), (P5587)
plประเทศโปแลนด์ตัวระบุ NLP (P1695), (P7293)
nlประเทศเนเธอร์แลนด์ (P651), (P1006), (P650), (P350)
uyประเทศอุรุกวัย (P2558)
ilประเทศอิสราเอลJ9U (P8189), (P1736)
twประเทศไต้หวันตัวระบุ NCL (P1048)
trประเทศตุรกี (P7314)
krประเทศเกาหลีใต้ (P5034)
itประเทศอิตาลี (P396), (P3863), (P1986), (P8034)
esประเทศสเปน (P950), (P9984)

ดูเพิ่ม[แก้]