Template:Magazine: Difference between revisions

From Diskmags Catalog
No edit summary
 
(149 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params: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)|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]]}} }}


Publication dates: [[Start date::{{{Start date|}}}]] - [[End date::{{{End date|}}}]]
{{#ifeq: {{{Has RelationTo|}}}| |<div style="display:none;"></div>|Related to: {{#arraymap:{{{Has RelationTo|}}}|;|x|[[Has RelationTo::x]]}} }}


Language: {{#arraymap:{{{Language|}}}|;|x|[[Language::x]]}}
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]]}}


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


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


System: {{#arraymap:{{{Systems|}}}|;|x|[[Systems::x]]}}
Origin: {{#ifeq: {{{Origin|}}}| |{{#set:Origin=unknown}}{{{Origin|unknown}}}|{{#arraymap:{{{Origin|}}}|;|x|[[Origin::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
}}


=== Publisher ===
Issues checked: [[Issues checked::{{{Issues checked|}}}]]
{{#arraymap:{{{Groups|}}}|;|x|[[Groups::x]]}}


=== Sources ===
=== Sources ===
Line 40: 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__
[[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.