Template:Statement+/doc

This template shows statement graphically. Used mainly in documentation and talk pages.

This is just mock-up which looks similar to actual statement but doesn't afford any real functionality at all (edit/add buttons don't work).

Simple
Setting  (property) and   (value). Template P- and Q- giving output which is similar to actual appearance (upper case). On the other hand, template Q giving output which is not actual, but could be useful one (lower case).

Basic
Setting,   (qualifier property and qualifier value) and  ,   (reference property and reference value).

Annotation
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 section.

rank
rank
 * Setting this parameter when you change rank.

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

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

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

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

Field variables
Although there are many field variables for this template, its syntax is basically simple. For example:

is "Second value's first reference's fourth property's third value."

Capital letter  represents value (d:Help:Statements). Lower case letter  represents qualifier (d:Help:Qualifiers). Lower case letter  represents reference (d:Help:Sources). And lower case letter  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,.


 * 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. For example,  is interpreted as. And if there is no first capital, it is interpreted as variable for   (first value). So finally  is interpreted as.
 * Code


 * Appearance

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

Template structure
Currently this template consists of three kinds of tables. By setting  option, each tables are shown with different color borders.

Each tables are stored at following pages.
 * Template:Statement+ - Table for statement
 * Template:Statement+/Value - Table for values
 * Template:Statement+/Block- Table for qualifiers or references

Related pages

 * Images used in this template: Preferred rank.svg - Normal rank.svg - Deprecated rank.svg - Arbcom ru editing.svg (This is just a similar pencil image. Because couldn't find out actual pencil image.)
 * - Wikidata model page
 * - 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.