Vés al contingut

Plantilla:DocInfobox docStatement

De Viki.cat
Icona de documentació de mòdul Documentació de la plantilla [ mostra ] [ ⧼Visualeditor-ca-editsource-section⧽ ] [ mostra l'historial ] [ refresca ]

This template builds the content of |doc= parameter for {{Statement+}}. "doc" is a free format text parameter to enter descriptive information to explain the meaning, use and constrains for the displayed case in the Statement+. The present template help to build a structured and visual format easy to use. It is specially useful when create a massive collection of Statement cases for documentation.

Syntax

{{DocInfobox docStatement|property= |example= |case= |monovalue= |symmetric= |units= |reference= |inverse=
|one_of= |contemporary= |qualifier= |description= |doc=}}

Parameters

property or p= Property code which is documented in this case.
example or e= Name of the property documentation page (without claudators)
case or qid= Item Qid used as a case in this Statement+
monovalue or m= 1, to indicate that the property has . Any other value for
symmetric or s= any value to indicate that the property has .
units or u= any value to indicate that the property has .
reference or r = any value to indicate that the property has .
inverse or i= any value to indicate that the property has .
one_of or o= any value to indicate that the property has .
contemporary or c = any value to indicate that the property has .
qualifier or q = Up to 10 qualifier codes separated by comma that are .
description or d = Free edited text with description.
doc = {{{doc|}}} This is an exceptional parameter that must always be as shown in this documentation.

When a case use of a {{Statement+}} is made with {{DocInfobox docStatement}} and it is saved as an auxiliary article to be expanded (ex.: {{wikidata:Case for documentation of P119-Q2356054}}), the content of original |doc= of the {{Statement+}} for this case will be transclude everytime it was used.
However, if we wish to use the case without or with another value of the original doc, we should write:
{{wikidata:Case for documentation of P119-Q2356054|doc=new value abc, ....}}|} to override the original content value prepared inside. Write "none" as new value to change for nothing.

Example

{{DocInfobox docStatement |property= P20 |example= {{DocInfobox prefix}}/doc/P20
|case =Q235605 |monovalue=2  | symmetric=y  |units=y |reference=y  |inverse=y |one_of=y |contemporary=y  |qualifier=P1545, P3831
|description= Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}}

results:

 P20       [[Fitxer:Pictogram reply soft green wbg.svg|20px|link=d:Help:Property_constraints_portal/Qualifiers|: [[d:Property:P1545|P1545 ⧼Translate-taction-translate⧽]], [[d:Property:P3831|P3831 ⧼Translate-taction-translate⧽]]]]  : Q235605
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Use within the {{Statement+}}

{{Statement+  | width_doc=30% | color_doc= #FFFFE7 |reference=close
|P={{P-|36}}
|V1.rank=+1
|V1={{Q-|90}}
|q1.p={{P-|P580}}  |q1.v1= 5 oct 1789
|V2={{Q-|Q621}}
|V2.q1.p={{P-|580}}
|V2.q1.v1={{date|1682}}
|V2.q2.p={{P-|582}}
|V2.q2.v1={{date|1789|10|05}}
|doc={{DocInfobox docStatement|P=P36 |qid=Q142|m=1|i=y|s=1|q=P580,P582,P1365,P1366|d=Complementary instructions as "between 1940 and 1944 capital was moved to Bayeux, Vichèi, Alger, Londres, Bordeus, Tours, because te WWII". ''(not displayed)''}}
}}
[[d:Property:P36|P36 ⧼Translate-taction-translate⧽]]
⧼wikibase-statementview-rank-preferred⧽ Q90
[[d:Property:P580|P580 ⧼Translate-taction-translate⧽]] 28 octubre 1789
⧼wikibase-statementview-references-counter⧽
⧼wikibase-addreference⧽
⧼wikibase-statementview-rank-normal⧽ Q621
[[d:Property:P580|P580 ⧼Translate-taction-translate⧽]] 28 octubre 1682
[[d:Property:P582|P582 ⧼Translate-taction-translate⧽]] 28 octubre 1789
⧼wikibase-statementview-references-counter⧽
⧼wikibase-addreference⧽
]]   [[Fitxer:Pictogram reply soft green wbg.svg|20px|link=d:Help:Property_constraints_portal/Qualifiers|: [[d:Property:P580|P580 ⧼Translate-taction-translate⧽]], [[d:Property:P582|P582 ⧼Translate-taction-translate⧽]], [[d:Property:P1365|P1365 ⧼Translate-taction-translate⧽]], [[d:Property:P1366|P1366 ⧼Translate-taction-translate⧽]]]] : Q142
Complementary instructions as "between 1940 and 1944 capital was moved to Bayeux, Vichèi, Alger, Londres, Bordeus, Tours, because te WWII". (not displayed)
⧼wikibase-statementlistview-add⧽
Case of transclusion use avoiding original value
{{case of P36-Q90|doc=none}}
[[d:Property:P36|P36 ⧼Translate-taction-translate⧽]]
⧼wikibase-statementview-rank-preferred⧽ Q90
[[d:Property:P580|P580 ⧼Translate-taction-translate⧽]] 28 octubre 1789
⧼wikibase-statementview-references-counter⧽
⧼wikibase-addreference⧽
⧼wikibase-statementview-rank-normal⧽ Q621
[[d:Property:P580|P580 ⧼Translate-taction-translate⧽]] 28 octubre 1682
[[d:Property:P582|P582 ⧼Translate-taction-translate⧽]] 28 octubre 1789
⧼wikibase-statementview-references-counter⧽
⧼wikibase-addreference⧽


⧼wikibase-statementlistview-add⧽
Case of transclusion changing original value
{{case of P36-Q90|doc=abc...def.}}
[[d:Property:P36|P36 ⧼Translate-taction-translate⧽]]
⧼wikibase-statementview-rank-preferred⧽ Q90
[[d:Property:P580|P580 ⧼Translate-taction-translate⧽]] 28 octubre 1789
⧼wikibase-statementview-references-counter⧽
⧼wikibase-addreference⧽
⧼wikibase-statementview-rank-normal⧽ Q621
[[d:Property:P580|P580 ⧼Translate-taction-translate⧽]] 28 octubre 1682
[[d:Property:P582|P582 ⧼Translate-taction-translate⧽]] 28 octubre 1789
⧼wikibase-statementview-references-counter⧽
⧼wikibase-addreference⧽
abc...def.
⧼wikibase-statementlistview-add⧽

See also