Bản mẫu:Statement+/doc

Bản mẫu này hiển thị lời phát biểu một cách trực quan. Được sử dụng chủ yếu trên các trang tài liệu và thảo luận.
Đây chỉ là mockup trông tương tự như câu lệnh thực tế nhưng hoàn toàn không cung cấp bất kỳ chức năng thực sự nào (các nút chỉnh sửa/thêm không hoạt động).

**Sử dụng**

**Đơn giản**
Đặt P (thuộc tính) và V (giá trị). Bản mẫu  và  cung cấp đầu ra tương tự như giao diện thực tế (chữ hoa). Mặt khác, bản mẫu Q đưa ra đầu ra không thực tế, nhưng có thể hữu ích (chữ thường).

**Cơ bản**
Setting qp, qv (qualifier property and qualifier value) and rp, rv (reference property and reference value).

**Chú thích**
It is possible highlighting certain part, adding note, or inserting image, by using ordinary wikitext.

**Populated**
By using more longer code, it's possible to make complex statement mock-up. For details about input variables, see #Variables section. 

**Variables**

**Special variables**

**rank**
 Setting this parameter when you change rank.

**width**
 Setting width by % or px. For example 50% or 400px. Default is 80%

**indent**
or indent
 Setting indent by px or em. For example 20px or 5em. Default is 0

**reference**
 By setting this parameter as close, collapsible reference table is shown with closed state. 

**showTables**
 Debug option. By setting this parameter as 1, each inner tables  are shown with different color borders. See #Template structure section.

**Field variables**
Although there are many field variables for this template, its syntax is basically simple. For example:
V2.r1.p4.v3 is "Second value's first reference's fourth property's third value."
Capital letter V represents value (:d:Help:Statements#Values). Lower case letter q represents qualifier (:d:Help:Qualifiers). Lower case letter r represents reference (:d:Help:Sources). And lower case letter v represents value for qualifier or reference.

**Canonical style**
Following is canonical style input variables. Although it looks bit complex, standardized variables are useful when you construct big size statement. If you don't need such a huge size, see the next section, #Abbreviated style.
Code
Appearance

**Abbreviated style**
If you don't use so many fields, it is useful to use following simpler version. In this template, if number is abbreviated, it is automatically interpreted as 1. For example, rp is interpreted as r1.p1. And if there is no first capital V, it is interpreted as variable for V1 (first value). So finally rp is interpreted as V1.r1.p1.
Code
Appearance

**Information for developers**
Editing is welcome. Feel free to edit, change, modify, add the code or utilize Lua. But only one thing, - #Annotation function is important key feature. So please keep current input style. (Wikitext input style)
In other words, please don't change input style to something like P=P31 or V=Q42 (property number only or item number only style.) Because in such format, users can't modify appearance.

**Template structure**
Currently this template consists of three kinds of tables. By setting showTables=1 option, each tables are shown with different color borders.
Each tables are stored at following pages.- border=Black Template:Statement+ - Table for statement- border=Blue Template:Statement+/Value - Table for values- border=Orange Template:Statement+/Block- Table for qualifiers or references

**Related pages**
 Images used in this template: 8px - 8px - 8px - 14px (This is just a similar pencil image. Because couldn't find out actual pencil image.)- Q42 - Wikidata model page- Q4115189 - Sandbox. You can edit and see how actual interface looks like- Help:Collapsing - documentation about the class used in collapsible reference table- Module:Random - module used to assign unique IDs to each collapsible reference tables-  Special/AllMessages wikibase - list of wikidata system messages. Codes like  (this returns "") are system messages which are automatically translated to user's setting language.

**See also**
 :wikidata:Help:Statements