<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AWikidata_table%2Fdoc</id>
	<title>Module:Wikidata table/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AWikidata_table%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Module:Wikidata_table/doc&amp;action=history"/>
	<updated>2026-04-14T11:44:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Module:Wikidata_table/doc&amp;diff=3760&amp;oldid=prev</id>
		<title>Wikipedia&gt;Tomastvivlaren: /* See also */</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Module:Wikidata_table/doc&amp;diff=3760&amp;oldid=prev"/>
		<updated>2022-02-01T23:05:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;See also&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
This module creates one or more table rows where the data in each cell is taken from Wikidata.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Function makerows ===&lt;br /&gt;
This function is simple and is intended to test performance. It is unsuitable for use in articles.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;moin&amp;quot;&amp;gt;&lt;br /&gt;
{{#invoke:Wikidata table |makerows&lt;br /&gt;
	|pids= P123, P234, P345, etc. (one property id per column)&lt;br /&gt;
	|qids = Q12345, Q23456, Q34567, etc. (one entity id per row)&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Function makerow ===&lt;br /&gt;
This function is under development for use in articles.&lt;br /&gt;
It creates a single table row from one Wikidata entity using a given set of properties.&lt;br /&gt;
The first cell is the label for the Wikidata entity and it is marked up as a row-header. An &amp;quot;editonwikidata&amp;quot; icon is appended to the first cell.&lt;br /&gt;
The table caption, column headings and scopes, etc. should be supplied externally. See the examples for more detail.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;moin&amp;quot;&amp;gt;&lt;br /&gt;
{{#invoke:Wikidata table |makerow&lt;br /&gt;
	|pids= P123, P234+P345, P456, P567/P580-P582, etc. (see below)&lt;br /&gt;
	|qid = Q12345 (one entity id for the row)&lt;br /&gt;
	|c1 = locally supplied value (overrides value from Wikidata for column 1)&lt;br /&gt;
	|c2 = locally supplied value (overrides value from Wikidata for column 2)&lt;br /&gt;
	|cN = locally supplied value (overrides value from Wikidata for column N), etc.&lt;br /&gt;
	|c1+ = locally supplied value (appends value from Wikidata to column 1)&lt;br /&gt;
	|c2+ = locally supplied value (appends value from Wikidata to column 2)&lt;br /&gt;
	|cN+ = locally supplied value (appends value from Wikidata to column N), etc.&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
; Notes&lt;br /&gt;
: A table cell can be made up of a combination of multiple properties, qualifiers and references.&lt;br /&gt;
: Whitespace is ignored in the list of pids.&lt;br /&gt;
: The separator for cell values is the comma &amp;lt;code&amp;gt;,&amp;lt;/code&amp;gt;.&lt;br /&gt;
: Within a cell, multiple properties are separated by the plus sign &amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt;.&lt;br /&gt;
: Each property can be separated from one or more qualifiers by a forward-slash &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;.&lt;br /&gt;
: Each qualifier is separated by a hyphen &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; (although any punctuation other than &amp;lt;code&amp;gt;, + /&amp;lt;/code&amp;gt; will work).&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Template:Wdtable row]] – a wrapper template for &amp;lt;code&amp;gt;makerow&amp;lt;/code&amp;gt;&lt;br /&gt;
* [[Template:Wdtable row/lighthouse]] – a custom wrapper template for &amp;lt;code&amp;gt;makerow&amp;lt;/code&amp;gt;, hard-coding the pids for lists of lighthouses&lt;br /&gt;
* [[Module talk:Wikidata table]] – testing/examples for &amp;lt;code&amp;gt;makerow&amp;lt;/code&amp;gt;&lt;br /&gt;
* [[Template:Wikidata list]] – bot generates Wikidata tables&lt;br /&gt;
* [[Module:Tabular data]] – shows tabular data from Commons&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Wikidata modules]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Tomastvivlaren</name></author>
	</entry>
</feed>