Jump to content

Template:TestItem: Difference between revisions

From wikibase
Created page with "<includeonly> {| class="wikitable" ! Property ! Value |- | Test Item | {{#property:P6|link=none|default=N/A}} |- | Test URL | {{#if:{{#property:P7}}| [{{#property:P7}} {{#property:P7}}] | N/A}} |- | Test Date | {{#property:P8|default=N/A}} |- | Test String | {{#property:P9|default=N/A}} |- | Test Text | {{#property:P10|lang=en|default=N/A}} |- | Test Identifier | {{#property:P11|default=N/A}} |- | Test Media | {{#if:{{#property:P12}}| File:{{#property:P12}}|thumb|200px..."
 
No edit summary
Tag: Manual revert
 
(8 intermediate revisions by the same user not shown)
Line 2: Line 2:
{| class="wikitable"
{| class="wikitable"
! Property
! Property
! Property data type
! Value
! Value
|-
|-
| Test Item
| Test Item
| Item
| {{#property:P6|link=none|default=N/A}}
| {{#property:P6|link=none|default=N/A}}
|-
|-
| Test URL
| Test URL
| {{#if:{{#property:P7}}| [{{#property:P7}} {{#property:P7}}] | N/A}}
| Url
| {{#property:P7}}
|-
|-
| Test Date
| Test Date
| Point in time
| {{#property:P8|default=N/A}}
| {{#property:P8|default=N/A}}
|-
|-
| Test String
| Test String
| String
| {{#property:P9|default=N/A}}
| {{#property:P9|default=N/A}}
|-
|-
| Test Text
| Test MonolingText
| {{#property:P10|lang=en|default=N/A}}
| Monolingual text
| {{#property:P13|lang=en|default=N/A}}
|-
|-
| Test Identifier
| Test Identifier
| External identifier
| {{#property:P11|default=N/A}}
| {{#property:P11|default=N/A}}
|-
|-
| Test Media
| Test Media
| {{#if:{{#property:P12}}| [[File:{{#property:P12}}|thumb|200px]] | N/A}}
| Media file
| [[File:{{#property:P12}}|thumb|200px]]
|}
|}
</includeonly>
</includeonly>
<noinclude>
== Usage ==
Transclude this template on a Wikibase item page: <code>{{TestItem}}</code>
This template displays the test properties from your data model.
== Example ==
On an item with populated properties, it will render a table like this:
{| class="wikitable"
! Property
! Value
|-
| Test Item
| Example Item
|-
| Test URL
| [https://example.com Example URL]
|-
| Test Date
| 2023-01-01
|-
| Test String
| Sample string
|-
| Test Text
| Sample text
|-
| Test Identifier
| ABC123
|-
| Test Media
| [[File:Example.jpg|thumb|200px]]
|}
</noinclude>

Latest revision as of 10:18, 20 April 2026