Difference between revisions of "Template:Publications Sidebox"

From Small Press Directory
Line 43: Line 43:
  
 
|-
 
|-
{{#if: {{{Creators|}}}| ! Creator(s)
+
{{#if: {{{Creators|}}}|  
| {{#cargo_query:tables=PublicationsTable|fields=creators|where=_pageName="{{PAGENAME}}"|group by=creators|default=|format=ul}}
+
"! Creator(s)
 +
| {{#cargo_query:tables=PublicationsTable|fields=creators|where=_pageName="{{PAGENAME}}"|group by=creators|default=|format=ul}}"
 
}}
 
}}
  
  
 
|-
 
|-
{{#if: {{{Group Affiliations|}}}| ! Group Affiliations
+
{{#if: {{{Group Affiliations|}}}|  
| {{#arraymap:{{{Group Affiliations|}}}|,|x|{{#formredlink:form=Group Page|target=x}} }}
+
"! Group Affiliations
 +
| {{#arraymap:{{{Group Affiliations|}}}|,|x|{{#formredlink:form=Group Page|target=x}} }}"
 
}}
 
}}
  
Line 62: Line 64:
  
 
|-
 
|-
{{#if:{{{Number of pages|}}}| "! Number of pages
+
{{#if:{{{Number of pages|}}}|  
 +
"! Number of pages
 
| {{{Number of pages|}}}"
 
| {{{Number of pages|}}}"
 
}}
 
}}
Line 73: Line 76:
  
 
{{#if: {{Special:PrefixIndex/{{FULLPAGENAME}}/}}
 
{{#if: {{Special:PrefixIndex/{{FULLPAGENAME}}/}}
|<div id="toc" class="toc">Issues:{{Special:PrefixIndex/{{FULLPAGENAME}}/ |stripprefix=1}}</div>
+
|"<div id="toc" class="toc">Issues:{{Special:PrefixIndex/{{FULLPAGENAME}}/ |stripprefix=1}}</div>"
 
}}
 
}}
  

Revision as of 16:19, 18 June 2019

This is the "Publications Sidebox" template. It should be called in the following format:

{{Publications Sidebox
|coverimage=
|creators=
|groupaf=
|genres=
|year=
|number_of_pages=
|type=
}}

Edit the page to see the template text.

This template defines the table "PublicationsTable". View table.