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
Line 26: Line 26:
|}
|}
</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>

Revision as of 15:22, 17 April 2026