Jump to content

Template:Statement+/doc

From Wikipedia, the free encyclopedia

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).

Usage

[edit]

Simple

[edit]

Setting P (property) and V (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).

{{Statement+
|P={{P-|27}}
|V={{Q-|145}}
}}
country of citizenship
Normal rank United Kingdom edit
▼ 0 reference
+ add reference
+ add value
{{Statement+
|P={{Q|P27}}
|V={{Q|Q145}}
}}
country of citizenship (P27)
Normal rank United Kingdom (Q145) edit
▼ 0 reference
+ add reference
+ add value

Basic

[edit]

Setting qp, qv (qualifier property and qualifier value) and rp, rv (reference property and reference value).

{{Statement+
|rank=+1
|P={{P-|800}}
|V={{Q-|25169}}
|qp={{P-|136}}
|qv={{Q-|761469}}
|rp={{P-|248}}
|rv={{Q-|5375741}}
}}
notable work
Preferred rank The Hitchhiker's Guide to the Galaxy pentalogy edit
genre science fiction comedy
▼ 1 reference
+ add value

Annotation

[edit]

It is possible highlighting certain part, adding note, or inserting image, by using ordinary wikitext.

{{Statement+
|P={{P-|800}}<br/><br/>memo<br/>(↑ Inserted memo) 
|V={{Q-|25169}}
|qp={{Font color|red|yellow|{{P-|136}} }}
|qv={{Font color|red|yellow|{{Q-|761469}} }} ← highlighted
|rp=[[File:OOjs UI icon alert-progressive.svg|20px]] {{P-|248}}<br/>(↑ Inserted image)
|rv={{Q-|5375741}}<ref group="note">Added note</ref>
}}
{{Reflist|group="note"}}
notable work

memo
(↑ Inserted memo)
Normal rank The Hitchhiker's Guide to the Galaxy pentalogy edit
genre science fiction comedy ← highlighted
▼ 1 reference
stated in
(↑ Inserted image)
Encyclopædia Britannica Online[note 1]
+ add reference
+ add value
  1. ^ Added note

Populated

[edit]

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

{{Statement+
|P={{P-|69}}
|V={{Q-|691283}}
|q1.p={{P-|582}}
|q1.v1=1974
|q2.p={{P-|812}}
|q2.v1={{Q-|186579}}
|q3.p={{P-|512}}
|q3.v1={{Q-|1765120}}
|q4.p={{P-|580}}
|q4.v1=1971
|r1.p1={{P-|248}}
|r1.p1.v1={{Q-|5375741}}
|r2.p1={{P-|854}}
|r2.p1.v1=http://www.nndb.com/people/731/000023662/
|r2.p2={{P-|407}}
|r2.p2.v1={{Q-|1860}}
|r2.p3={{P-|123}}
|r2.p3.v1={{Q-|1373513}}
|r2.p4={{P-|813}}
|r2.p4.v1=7 December 2013
|r2.p5={{P-|1476}}
|r2.p5.v1=Douglas Adams (English)

|V2={{Q-|4961791}}
|V2.q1.p={{P-|582}}
|V2.q1.v1=1970
|V2.q2.p={{P-|580}}
|V2.q2.v1=1959
}}
educated at
Normal rank St John's College edit
end time 1974
academic major English literature
academic degree Bachelor of Arts
start time 1971
▼ 2 reference
Normal rank Brentwood School edit
end time 1970
start time 1959
▼ 0 reference
+ add reference
+ add value

Variables

[edit]

Special variables

[edit]

rank

[edit]

|rank=

Setting this parameter when you change rank.
Description Example
Preferred or P or +1 |rank=+1
Normal or N or 0 (Default) |rank=0
Deprecated or D or -1 |rank=-1

width

[edit]

|width=

Setting width by % or px. For example |width=50% or |width=400px. Default is |width=80%
{{Statement+
|width=50%
|P={{P-|27}}
|V={{Q-|145}}
}}
country of citizenship
Normal rank United Kingdom edit
▼ 0 reference
+ add reference
+ add value

indent

[edit]

|left= or |indent=

Setting indent by px or em. For example |left=20px or |left=5em. Default is |left=0
{{Statement+
|left=5em
|width=50%
|P={{P-|27}}
|V={{Q-|145}}
}}
country of citizenship
Normal rank United Kingdom edit
▼ 0 reference
+ add reference
+ add value

reference

[edit]

|reference=close

By setting this parameter as close, collapsible reference table is shown with closed state.
{{Statement+
|reference=close
|width=50%
|P={{P-|27}}
|V={{Q-|145}}
|rp=Alfa
|rv=Bravo
|rv2=Charlie
|r2p=Delta
|r2v=Echo
|r2p2=Foxtrot
|r2p2v=Golf
|r3p=Hotel
|r3v=India
|r3v2=Juliett
}}
country of citizenship
Normal rank United Kingdom edit
▼ 3 reference
Alfa Bravo
Charlie
Delta Echo
Foxtrot Golf
Hotel India
Juliett
+ add reference
+ add value

showTables

[edit]

|showTables=1

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

Field variables

[edit]

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

[edit]

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
{{Statement+|
|reference = close
|showTables = 
|P = P

|V1.rank =
|V1 = V1

|V1.q1.p = V1.q1.p
|V1.q1.v1 = V1.q1.v1
|V1.q1.v2 = V1.q1.v2
|V1.q1.v3 = V1.q1.v3
|V1.q2.p = V1.q2.p
|V1.q2.v1 = V1.q2.v1
|V1.q2.v2 = V1.q2.v2
|V1.q2.v3 = V1.q2.v3
|V1.q3.p = V1.q3.p
|V1.q3.v1 = V1.q3.v1
|V1.q3.v2 = V1.q3.v2
|V1.q3.v3 = V1.q3.v3
|V1.q4.p = V1.q4.p
|V1.q4.v1 = V1.q4.v1
|V1.q4.v2 = V1.q4.v2
|V1.q4.v3 = V1.q4.v3

|V1.r1.p1 = V1.r1.p1
|V1.r1.p1.v1 = V1.r1.p1.v1
|V1.r1.p1.v2= V1.r1.p1.v2
|V1.r1.p1.v3 = V1.r1.p1.v3

|V1.r1.p2 = V1.r1.p2
|V1.r1.p2.v1 = V1.r1.p2.v1
|V1.r1.p2.v2 = V1.r1.p2.v2
|V1.r1.p2.v3 = V1.r1.p2.v3

|V1.r1.p3 = V1.r1.p3
|V1.r1.p3.v1 = V1.r1.p3.v1
|V1.r1.p3.v2 = V1.r1.p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2.v3
V3.r3.p3 V3.r3.p3.v1
V3.r3.p3.v2
V3.r3.p3.v3
V3.r3.p4 V3.r3.p4.v1
V3.r3.p4.v2
V3.r3.p4.v3
V3.r3.p5 V3.r3.p5.v1
V3.r3.p5.v2
V3.r3.p5.v3
+ add reference
+ add value

Abbreviated style

[edit]

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
{{Statement+|
|P = P
|rank = 
|V = V

|qp = qp
|qv = qv
|qv2 = qv2
|qv3 = qv3
|q2p = q2p
|q2v = q2v
|q2v2 = q2v2
|q2v3 = q2v3

|rp = rp
|rv = rv
|rv2 = rv2
|rv3 = rv3

|rp2 = rp2
|rp2v = rp2v
|rp2v2 = rp2v2
|rp2v3 = rp2v3

|r2p = r2p 
|r2v = r2v
|r2v2 = r2v2
|r2v3 = r2v3

|r2p2 = r2p 2
|r2p2v = r2p2v
|r2p2v2 = r2p2v2
|r2p2v3 = r2p2v3

|reference = close
|showTables = 
}}
Appearance
P
Normal rank V edit
qp qv
qv2
qv3
q2p q2v
q2v2
q2v3
▼ 2 reference
rp rv
rv2
rv3
rp2 rp2v
rp2v2
rp2v3
r2p r2v
r2v2
r2v3
r2p 2 r2p2v
r2p2v2
r2p2v3
+ add reference
+ add value

Information for developers

[edit]

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

[edit]

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.

  •   Template:Statement+ - Table for statement
  •   Template:Statement+/Value - Table for values
  •   Template:Statement+/Block- Table for qualifiers or references
{{Statement+
|showTables=1
|P={{P-|800}}
|V={{Q-|25169}}
|qp={{P-|136}}
|qv={{Q-|761469}}
|rp={{P-|248}}
|rv={{Q-|5375741}}
}}
notable work
Normal rank The Hitchhiker's Guide to the Galaxy pentalogy edit
genre science fiction comedy
▼ 1 reference
+ add value
[edit]
  • Images used in this template: - - - (This is just a similar pencil image. Because couldn't find out actual pencil image.)
  • Douglas Adams (Q42) - Wikidata model page
  • Title *(* (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 {{int:wikibase-statementlistview-add}} (this returns "add value") are system messages which are automatically translated to user's setting language.

See also

[edit]