Difference between revisions of "Template:Publications Sidebox"

From Small Press Directory
Line 43: Line 43:
  
  
{{#if: {{{Creators|}}}||- ! Creator(s)}}
+
|-
 +
{{#if: {{{Creators|}}}| ! Creator(s)}}
 
|{{#if: {{{Creators|}}}|{{#cargo_query:tables=PublicationsTable|fields=creators|where=_pageName="{{PAGENAME}}"|group by=creators|default=|format=ul}}
 
|{{#if: {{{Creators|}}}|{{#cargo_query:tables=PublicationsTable|fields=creators|where=_pageName="{{PAGENAME}}"|group by=creators|default=|format=ul}}
 
}}
 
}}
 
 
  
 
|-
 
|-
{{#if: {{{Group Affiliations|}}}|  
+
{{#if: {{{Group Affiliations|}}}| ! Group Affiliations}}
"! Group Affiliations
+
|{{#if: {{{Group Affiliations|}}}| {{#arraymap:{{{Group Affiliations|}}}|,|x|{{#formredlink:form=Group Page|target=x}} }}
| {{#arraymap:{{{Group Affiliations|}}}|,|x|{{#formredlink:form=Group Page|target=x}} }}"
 
 
}}
 
}}
  
Line 64: Line 62:
  
 
|-
 
|-
{{#if:{{{Number of pages|}}}|  
+
{{#if:{{{Number of pages|}}}| ! Number of pages}}
"! Number of pages
+
|{{#if:{{{Number of pages|}}}|{{{Number of pages|}}}
| {{{Number of pages|}}}"
 
 
}}
 
}}
  
Line 75: Line 72:
 
|}
 
|}
  
{{#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:26, 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.