Jump to content

Template:Person: Difference between revisions

From Wikibase
infobox: hide empty rows ({{#statement-row:}})
Add wb-infobox class to the infobox table (media credits / open-link exclusion) (via update-page on MediaWiki MCP Server)
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
'''Person''' — part of the [[Person:Main|people collection]]. Created via [[Special:AddPerson]].
'''Person''' — part of the [[Person:Main|people collection]]. Created via [[Special:AddPerson]].
</blockquote>
</blockquote>
{| class="wikitable" style="float:right;clear:right;width:300px;margin:0 0 1em 1em;"
{| class="wikitable wb-infobox" style="float:right;clear:right;width:300px;margin:0 0 1em 1em;"
|-
|-
! colspan="2" style="background:#f8f9fa;text-align:center;" | {{PAGENAME}}
! colspan="2" style="background:#f8f9fa;text-align:center;" | {{PAGENAME}}
|-
|-
| colspan="2" style="text-align:center;" | {{{portrait|{{#item-image:}}}}}
| colspan="2" style="text-align:center;" | {{{portrait|{{#item-image:}}}}}
{{#statement-row:Instance of|instance of}}
{{#statement-row:Date of birth|date of birth}}
{{#statement-row:Date of birth|date of birth}}
{{#statement-row:Place of birth|osm-birth}}
{{#statement-row:Place of birth|osm-birth}}
Line 22: Line 21:
|}
|}
<includeonly>[[Category:People]]</includeonly>
<includeonly>[[Category:People]]</includeonly>
<noinclude>This template reads its data from the item sitelinked to the page (see [[Help:Contributing/semanticDynamicContent]]). Empty statements render empty rows — not an error. Birth/death rows stay empty while the person is alive. Place rows are rendered by <code>{{#osm-place:birth}}</code> / <code>{{#osm-place:death}}</code>: the OpenStreetMap place fact (picked from the Nominatim search combobox on [[Special:AddPerson]]) shows as its human-readable display label linked to openstreetmap.org — the label is stored next to the OSM id at creation/update ([[Special:AddPerson]] / [[Special:UpdatePerson]]), with the raw id as the fallback text. The image cell shows the item's <code>image</code> statement via <code>{{#item-image:}}</code>; the optional <code>portrait</code> parameter (a full <code>[[File:…]]</code> link) overrides it when set by hand.</noinclude>
<noinclude>This template reads its data from the item sitelinked to the page (see [[Help:Contributing/semanticDynamicContent]]). Rows with no data are hidden (<code>{{#statement-row:}}</code>). Birth/death rows stay empty while the person is alive. Place rows are rendered by <code>{{#osm-place:birth}}</code> / <code>{{#osm-place:death}}</code>: the OpenStreetMap place fact (picked from the Nominatim search combobox on [[Special:AddPerson]]) shows as its human-readable display label linked to openstreetmap.org — the label is stored next to the OSM id at creation/update ([[Special:AddPerson]] / [[Special:UpdatePerson]]), with the raw id as the fallback text. The image cell shows the item's <code>image</code> statement via <code>{{#item-image:}}</code>; the optional <code>portrait</code> parameter (a full <code>[[File:…]]</code> link) overrides it when set by hand.</noinclude>

Latest revision as of 10:55, 21 November 2026


Person — part of the people collection. Created via Special:AddPerson.

Person





This template reads its data from the item sitelinked to the page (see Help:Contributing/semanticDynamicContent). Rows with no data are hidden (). Birth/death rows stay empty while the person is alive. Place rows are rendered by / : the OpenStreetMap place fact (picked from the Nominatim search combobox on Special:AddPerson) shows as its human-readable display label linked to openstreetmap.org — the label is stored next to the OSM id at creation/update (Special:AddPerson / Special:UpdatePerson), with the raw id as the fallback text. The image cell shows the item's image statement via ; the optional portrait parameter (a full File:… link) overrides it when set by hand.