Template:Magazine: Difference between revisions

From Diskmags Catalog
No edit summary
 
(136 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:Also known as (list; property=Also known as)|Start date (property=Start date)|End date (property=End date)|Language (property=Language)|Origin (property=Origin)|Systems (list;property=Systems)|Issues (list;property=Issues)|Groups (list;property=Groups)|Publishers (list; Property=Publisher)|Type (property=Type)|Screenshots (list; property=Screenshots)|Source (list; property=Source)}}
{{#template_params:Also known as (list; property=Also known as)|Start date (property=Start date)|End date (property=End date)|Groups (list;property=Groups)|Publishers (list; Property=Publishers)|Type (property=Type)|Language (property=Language)|Origin (property=Origin)|Systems (list;property=Systems)|Issues (list;property=Issues)|Screenshots (list; property=Screenshots)|Source (list; property=Source)}}
</noinclude><includeonly>
</noinclude><includeonly>
<div class="row"><div class="meta col">
<div class="row">
<div class="meta col">
{{#ifeq:{{{Also known as|}}}| |<div style="display:none"></div>|Also known as: {{#arraymap:{{{Also known as|}}}|;|x|[[Also known as::x]]}} }}


Also known as: {{#arraymap:{{{Also known as|}}}|;|x|[[Also known as::x]]}}
{{#ifeq: {{{Has RelationTo|}}}| |<div style="display:none;"></div>|Related to: {{#arraymap:{{{Has RelationTo|}}}|;|x|[[Has RelationTo::x]]}} }}


Publication dates: [[Start date::{{{Start date|}}}]] - [[End date::{{{End date|}}}]]
Lifespan: [[Start date::{{#time:Y|{{{Start date|}}}}}]][[End date::{{#time:Y|{{{End date|}}}}}]], {{#ifeq:{{{Is Active|}}}| |[[Is Active::discontinued]]|[[Is Active::{{{Is Active|}}}]][[Category:Active Magazine]]}}


Language: {{#arraymap:{{{Language|}}}|;|x|[[Language::x]]}}
Systems: {{#arraymap:{{{Systems|}}}|;|x|[[Systems::x]]}}


Origin: [[Origin::{{{Origin|}}}]]
Language: {{#ifeq: {{{Language|}}}| |{{#set:Language=unknown}}{{{Language|unknown}}}|{{#arraymap:{{{Language|}}}|;|x|[[Language::x]]}} }}


Type: [[Type::{{{Type|}}}]]
Origin: {{#ifeq: {{{Origin|}}}| |{{#set:Origin=unknown}}{{{Origin|unknown}}}|{{#arraymap:{{{Origin|}}}|;|x|[[Origin::x]]}} }}


System: {{#arraymap:{{{Systems|}}}|;|x|[[Systems::x]]}}
Publishers: {{#ifeq: {{{Publishers|}}}| |{{#set:Publishers=unknown}}{{{Publishers|unknown}}}|{{#arraymap:{{{Publishers|}}}|;|x|[[Publishers::x]]}} }}
 
Groups: {{#ifeq: {{{Groups|}}}| |{{#set:Groups=unknown}}{{{Groups|unknown}}}|{{#arraymap:{{{Groups|}}}|;|xx| {{#set:Groups=xx}} {{#formredlink:target=xx|form=Group}} }} }}
 
Type: {{#ifeq: {{{Type|}}}| |{{#set:Type=unknown}}{{{Type|unknown}}}|[[Type::{{{Type|}}}]] }}
 
{{#ifeq:{{{Region|}}}| |<div style="display:none"></div>|Region: {{#arraymap:{{{Region|}}}|;|x|[[Region::x]]}} }}
</div>
</div>
<div class="gallery col float-right">
 
<!--<div class="gallery col float-right">
{{#tag:gallery|
{{#tag:gallery|
{{#arraymap:{{{Screenshots|}}}|,|x|File:x|\n}}|mode=slideshow
{{#arraymap:{{{Screenshots|}}}|,|x|File:x|\n}}|mode=slideshow
}}</div></div>
}}</div>-->


=== Issues ===
<div class="issues">
<ul>
{{#arraymap:{{{Issues|}}}|;|x|<li>[[Issues::x]]</li>|}}
</ul>
</div>
</div>


Issues checked: [[Issues checked::{{{Issues checked|}}}]]
{{#ask:
 
[[-Has subobject::{{FULLPAGENAME}}]]
----
[[Is MagazineSummary::+]]
|?Has Summary=
|format=table
|class=smwtable-clean
|mainlabel=-
|headers=hide
|intro='''Summary'''
}}


=== Groups ===
{{#ask:
{{#arraymap:{{{Groups|}}}|;|x|[[Groups::x]]}}
[[Category:Issue]]
[[Magazine::{{PAGENAME}}]]
|?Release Date#ISO-P
|sort=Release Date,
|order=ascending
|limit=1000
|format=datatables
|mainlabel=Issue
}}


----
Issues checked: [[Issues checked::{{{Issues checked|}}}]]
 
=== Publishers ===
{{#arraymap:{{{Publishers|}}}|;|x|[[Publishers::x]]}}
 
----


=== Sources ===
=== Sources ===
Line 48: Line 62:
{{#if:{{{Issues checked|}}}|{{#set:Issues checked={{{Issues checked|}}}}}|{{#set:Issues checked=No}}}}
{{#if:{{{Issues checked|}}}|{{#set:Issues checked={{{Issues checked|}}}}}|{{#set:Issues checked=No}}}}
{{#set:Confidence={{{Confidence|}}}}}
{{#set:Confidence={{{Confidence|}}}}}
 
[[Has IssuesTotal::{{#ask:[[Magazine::{{FULLPAGENAME}}]]|format=count}}]]
__NOTOC__
__NOTOC__


[[Category:Magazine]]
[[Category:Magazine]]
</includeonly>
</includeonly>

Latest revision as of 14:36, 29 November 2024

This is the "Magazine" template.

It should be called in the following format:

{{Magazine
|Also known as=
|Start date=
|End date=
|Groups=
|Publishers=
|Type=
|Language=
|Origin=
|Systems=
|Issues=
|Screenshots=
|Source=
}}

Edit the page to see the template text.