Template:Publication Infobox/Module: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
No edit summary
(Redirected page to Template:Publication Infobox)
Tag: New redirect
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>
#redirect: [[Template:Publication Infobox]]
<!-- Cargo Table -->
{{#cargo_attach:
_table = Publication}}<!--
|Sort_Text = String
|Title = String
|Abbreviation = String
|System = String
|Author = List (, ) of String
|AllAuthors = String of Wikitext
|Publisher = String
|Publication_Date = String
|Media_Type = String
|Page_Count = String
|Series = String
|Previous_Work = String <!-- Preceding work in series -->
|Following_Work = String <!-- Work that follows in series -->
|Minimum_Level = Integer <!-- for modules/adventures -->
|Maximum_Level = Integer <!-- for modules/adventures -->
|ISBN = String
|Price = String
|URL = URL
|Canon = Boolean
}}-->
</noinclude><includeonly>{| class="infobox <!--toccolours-->" style="max-width:66vw;"
|-
|+ class="invert" |''{{#if: {{{url|}}}|[{{{url}}} {{PAGENAME}}]|{{PAGENAME}}}}'' {{pagedata}}
|-
| width="180px" | {{#if: {{{image|}}}|[[File:{{{image}}}|180px]]|[[file:ImageNeeded.png|180px]][[Category:Help Image Needed]]}}
| width="320px" |
{| class="infobox" style="background-color:#FCF9D3;"
{{!}}-
{{!}}'''Title:'''
{{!}}{{#if: {{{title|}}}|{{{title}}}|{{PAGENAME}}|}}{{#if: {{{series|}}}|&nbsp;
{{!}}-
{{!}}'''System:'''
{{!}}[[{{{system}}}]]}}{{#if: {{{series|}}}|&nbsp;
{{!}}-
{{!}}'''Series:'''
{{!}}''{{{series}}}'' }}
{{!}}-
{{!}}'''Levels:'''
{{!}}{{{minlevel}}} – {{{maxlevel}}}{{#if: {{{author|}}}|&nbsp;
{{!}}-
{{!}}'''Author:'''
{{!}}{{#arraymap: {{{author}}}|, |x|{{#if: {{#pos: {{{x}}}|[|0}} |<!--{{#set: Author={{#sub: {{#sub: x |2|0}}|0|-2}}}}-->[[<!--Canon:-->{{#sub: {{#sub: x |2|0}}|0|-2}}|{{#sub: {{#sub: x |2|0}}|0|-2}}]] |<!--{{#set: Author=x}}-->[[<!--Canon:x|-->x]]}}}} }}{{#if: {{{publisher|}}}|&nbsp;
{{!}}-
{{!}}'''Publisher:'''
{{!}}{{#arraymap: {{{publisher}}}|, |x|{{#if: {{#pos: {{{x}}}|[|0}} |<!--{{#set: Publisher={{#sub: {{#sub: x |2|0}}|0|-2}}}}-->[[<!--Canon:-->{{#sub: {{#sub: x |2|0}}|0|-2}}|{{#sub: {{#sub: x |2|0}}|0|-2}}]] |<!--{{#set: Publisher=x}}-->[[<!--Canon:x|-->x]]}}}} }}{{#if: {{{itemcode|}}}|&nbsp;
{{!}}-
{{!}}'''Item Code:'''
{{!}}{{{itemcode}}} }}{{#if: {{{date|}}}|&nbsp;
{{!}}-
{{!}}'''Publication Date:'''
{{!}}{{{date}}} }}{{#if: {{{format|}}}|&nbsp;
{{!}}-
{{!}}'''Format:'''
{{!}}{{{format}}} }}{{#if: {{{pgcount|}}}|&nbsp;
{{!}}-
{{!}}'''Page Count:'''
{{!}}{{{pgcount}}} }}{{#if: {{{isbn10|}}}|&nbsp;
{{!}}-
{{!}}'''ISBN-10:'''
{{!}}[[Special:Booksources/{{{isbn10}}}|{{{isbn10}}}]] }}{{#if: {{{isbn13|}}}|&nbsp;
{{!}}-
{{!}}'''ISBN-13:'''
{{!}}[[Special:Booksources/{{{isbn13}}}|{{{isbn13}}}]] }}{{#if: {{{price|}}}|&nbsp;
{{!}}-
{{!}}'''Price:'''
{{!}}{{{price}}} }}{{#if: {{{preceded by|}}}|&nbsp;
{{!}}-
{{!}}'''Preceded by:'''
{{!}}''{{{preceded by}}}'' }}{{#if: {{{followed by|}}}|&nbsp;
{{!}}-
{{!}}'''Followed by:'''
{{!}}''{{{followed by}}}'' }}
{{!}}-
|}{{#if:{{{productblurb|}}}|&nbsp;
{{!}}-
{{!}} colspan="2" {{!}}
{{{!}} class="d20" style="text-align: left;"
! Product Blurb
{{!}}-
{{!}} {{{productblurb}}}
{{!}}}
<div style="margin-top: -10px;"><small>This text is quoted from promotion material. Text and images are copyrighted by the original publisher.</small></div> }}
|}<!--
Store Data
-->{{#if: {{{nodb|}}}|<!--skip-->|{{#cargo_store:
_table = Publication
|Sort_Text = {{{sorttext|}}}
|Page_Name = {{FULLPAGENAME}}
|Title = {{#if: {{{title|}}}|{{{title}}}|{{PAGENAME}}}}
|Abbreviation = {{{abbreviation|}}}
|System = {{{system|}}}
|Author = {{#if: {{#pos: {{{author|}}}|,}}|<!--multiple authors-->{{#sub: {{{author}}}|0|{{#pos: {{{author|}}}|,}}-1}}, et. al.|<!--single or no author-->{{{author|}}}}}
|AllAuthors = {{{author|}}}
|Publisher = {{{publisher|}}}
|Publication_Date = {{{date|}}}
|Media_Type = {{{format|}}}
|Page_Count = {{{pgcount|}}}
|Series = {{{series|}}}
|Previous_Work = {{{preceded by|}}}
|Following_Work = {{{followed by|}}}
|Minimum_Level = {{{minlevel|}}}
|Maximum_Level = {{{maxlevel|}}}
|ISBN = {{#if: {{{isbn13|}}}|{{{isbn13}}}|{{#if: {{{isbn10|}}}{{{isbn10}}}|}}|}}
|Price = {{{price|}}}
|URL = {{#if: {{{url|}}}|{{{url}}}|}}
|Canon = {{#if: {{{canon|}}}|1|}}
}}}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 08:33, 18 October 2020