Difference between revisions of "Template:Person in table"

From Wayne County, Ohio Online Resource Center
Jump to navigation Jump to search
(Created page with "<includeonly> {{#ask:Category:Person [[Industry sector::{{{1|}}}]] |?Sub-Industry |?Founder name |?Start date=Established |?Status=Current status |?End date=Defunct...")
 
 
(2 intermediate revisions by the same user not shown)
Line 17: Line 17:
 
<table class="smwtable-clean sortable" style="width:100%">
 
<table class="smwtable-clean sortable" style="width:100%">
 
<tr>
 
<tr>
<th>Organization</th>
+
<th>Person</th>
<th>Sub-Industry</th>
+
<th>Birth Date</th>
<th>Founder name</th>
+
<th>Death Date</th>
<th>City (Township)</th>
+
<th>Spouse</th>
<th>Established</th>
+
<th>Place</th>
<th>Current status</th>
+
<th>Occupation</th>
<th>Defunct</th>
 
 
</tr>
 
</tr>
 
  |outro=</table>
 
  |outro=</table>
Line 35: Line 34:
 
;Example (link only)
 
;Example (link only)
 
<pre>
 
<pre>
{{Organizations in industry table|Accommodation and Food Services|0}}
+
{{Persons in table|Persons|0}}
 
</pre>
 
</pre>
  
 
;Result
 
;Result
{{Organizations in industry table|Accommodation and Food Services|0}}
+
{{Persons in table|Accommodation and Food Services|0}}
  
 
;Example (default)
 
;Example (default)
 
<pre>
 
<pre>
{{Organizations in industry table|Accommodation and Food Services|10}}
+
{{Persons in table|Accommodation and Food Services|10}}
 
</pre>
 
</pre>
  
 
;Result
 
;Result
{{Organizations in industry table|Accommodation and Food Services|10}}
+
{{Persons in table|Accommodation and Food Services|10}}
  
 
;Example (with data offset)
 
;Example (with data offset)
 
<pre>
 
<pre>
{{Organizations in industry table|Accommodation and Food Services|10|10}}
+
{{Persons in table|Accommodation and Food Services|10|10}}
 
</pre>
 
</pre>
  
 
;Result
 
;Result
{{Organizations in industry table|Accommodation and Food Services|10|10}}
+
{{Persons in table|Accommodation and Food Services|10|10}}
  
 
;Example (Semantic links)
 
;Example (Semantic links)
<pre>
+
{{#ask: [[Category:Person]] [[Organization::+]]
{{#arraydefine: sectors
+
|?fullname
  |{{#ask: [[-Has subobject::Property:Sub-Industry/By sectors]] |?Industry sector | mainlabel=- | headers=hide |format=array |sep=; |manysep=;}}
+
|?Place of birth
  |;
+
|?Date of birth
  |sort=asc
+
|?Occupation
}}
+
|?Resting place
<ul class="plainlinks">
+
|?Date of death
{{#arrayprint: sectors
+
|format=plainlist
  |
+
|limit=50
  |@
+
|offset=0
  |<li>{{Person in table|@|0}}</li>
+
|link=none
}}
+
|order=asc
</ul>
+
|headers=hide
</pre>
+
|mainlabel=Person
;Result
+
|intro=<h2>Person</h2>
{{#arraydefine: sectors
+
<table class="smwtable-clean sortable" style="width:100%">
  |{{#ask: [[-Has subobject::Property:Sub-Industry/By sectors]] |?Industry sector | mainlabel=- | headers=hide |format=array |sep=; |manysep=;}}
+
<tr>
  |;
+
<th>fullname</th>
  |sort=asc
+
<th>Place of birth</th>
}}
+
<th>Date of Death</th>
<ul class="plainlinks">
+
<th>Occupation</th>
{{#arrayprint: sectors
+
<th>Resting Place</th>
  |
+
<thDate of Death</th>
  |@
+
</tr>
  |<li>{{Person in table|@|0}}</li>
+
|outro=</table>
 +
|searchlabel=Person
 +
|template=Organizations in industry row
 +
|named args=yes
 
}}
 
}}
 
</ul>
 
</ul>
 
</noinclude>
 
</noinclude>

Latest revision as of 12:52, 23 March 2023

Description

Creates a table with organizations in the industry (first parameter is mandatory). Optionally you can set the limit of records to show per page (second parameter, if used, must be an integer). Default value is 50. Set it to 0 if you only want to generate a link to the query. The third parameter is data offset (if used, must be an integer).

Example (link only)
{{Persons in table|Persons|0}}
Result

Template:Persons in table

Example (default)
{{Persons in table|Accommodation and Food Services|10}}
Result

Template:Persons in table

Example (with data offset)
{{Persons in table|Accommodation and Food Services|10|10}}
Result

Template:Persons in table

Example (Semantic links)