Template:Magazine: Difference between revisions

From Diskmags Catalog
No edit summary
Tag: Manual revert
 
(35 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)|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)}}
{{#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="row">
<div class="meta col">
<div class="meta col">
{{#ifeq:{{{Is Active|}}}| |<div style:"display:none">[[Is Active::discontinued]]</div>|<div style="display:none">[[Is Active::{{{Is Active|}}}]]</div>[[Category:Active Magazine]]}}
{{#ifeq:{{{Also known as|}}}| |<div style="display:none;"></div>|Also known as: {{#arraymap:{{{Also known as|}}}|;|x|[[Also known as::x]]}} }}


{{#ifeq:{{{Also known as|}}}| |<div style="display:none"></div>|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]]}} }}


{{#ifeq: {{{Has RelationTo|}}}| |<div style="display:none;"></div>|Related to: {{#arraymap:{{{Has RelationTo|}}}|;|x|[[Has RelationTo::x]]}} }}
Lifespan: {{#time:Y|{{{Start Date|}}}}}–{{#time:Y|{{{End Date|}}}}}, {{#ifeq:{{{Is Active|}}}| |[[Is Active::discontinued]]|[[Is Active::{{{Is Active|}}}]][[Category:Active Magazine]]}}


Lifespan: [[Start date::{{#time:Y|{{{Start date|}}}}}]]–[[End date::{{#time:Y|{{{End date|}}}}}]], {{{Is Active|}}}
Issues: [[Has IssuesTotal::{{#ask:[[Magazine::{{FULLPAGENAME}}]]|format=count}}]] {{#if:{{{Issues checked|}}} |{{#set:Issues checked={{{Issues checked|}}}}} (checked)|{{#set:Issues checked=No}} (not checked)}}


Systems: {{#arraymap:{{{Systems|}}}|;|x|[[Systems::x]]}}
Systems: {{#arraymap:{{{Systems|}}}|;|x|[[Systems::x]]}}
Line 22: Line 22:
Groups: {{#ifeq: {{{Groups|}}}| |{{#set:Groups=unknown}}{{{Groups|unknown}}}|{{#arraymap:{{{Groups|}}}|;|xx| {{#set:Groups=xx}} {{#formredlink:target=xx|form=Group}} }} }}
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:{{{Subcollection|}}}| |<div style="display:none;"></div>|Subcollection: {{#arraymap:{{{Subcollection|}}}|;|x|[[Subcollection::x]]}} }}


{{#ifeq:{{{Region|}}}| |<div style="display:none"></div>|Region: {{#arraymap:{{{Region|}}}|;|x|[[Region::x]]}} }}
{{#ifeq:{{{Links|}}}| |<div style="display:none;"></div>|Links: <ul>{{#arraymap: {{{Links|}}}|;|x|<li>[x x]</li>|}}</ul> }}
</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>
</div>


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


=== Issues ===
{{#ask:
{{#ask:
  [[Category:Issue]]
  [[Category:Issue]]
Line 55: Line 52:
  |mainlabel=Issue
  |mainlabel=Issue
}}
}}
Issues checked: [[Issues checked::{{{Issues checked|}}}]]


=== Sources ===
=== Sources ===
{{#arraymap: {{{Source|}}}|;|x|[[Source::x]]}}
{{#arraymap: {{{Source|}}}|;|x|[[Source::x]]}}
----


{{#if:{{{Checked|}}}|{{#set:Checked={{{Checked|}}}}}|{{#set:Checked=No}}}}
{{#if:{{{Checked|}}}|{{#set:Checked={{{Checked|}}}}}|{{#set: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 00:17, 9 December 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.