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 P and 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.

Annotation using doc parameter
Another way to document constrains, values, conditions, etc. is using an specific column filled 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.

navbar
navbar
 * , hide the "navbar icon" on top of the box. By default, navbar is shown.

doc
doc
 * Allows to give a free text in order to document complementary specifications, constrains, used values, etc. When "doc" is informed, a new column with its content is shown on the right side. Its width is 20% of whole table, and can be modify by width_doc. In addition, color can be modify by color_doc.

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 (Help:Statements). Lower case letter  represents qualifier (Help:Qualifiers). Lower case letter  represents reference (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

 * RankIcon: - Preferred rank.svg - Normal rank.svg - Deprecated rank.svg
 * Pencil image: - Arbcom ru editing.svg (This is just a similar pencil image. Because couldn't find out actual pencil image.)
 * Module:Random - module used to assign unique IDs to each collapsible reference tables
 * Special/AllMessages wikibase - list of Gratisdata system messages. Codes like  (this returns "") are system messages which are automatically translated to user's setting language.


 * Template:Statement