Template:Summary: Difference between revisions

From Wikisum
No edit summary
Tag: Reverted
No edit summary
Tag: Undo
Line 1: Line 1:
<includeonly>
<div class="summary-card">{{#if:{{{Author|}}}|<div class="summary-card__author">[[:Category:{{{Author}}}|{{{Author}}}]]{{#if:{{NAMESPACE}}||[[Category:{{{Author}}}]]}}{{#if:{{{Author2|}}}|<br/>[[:Category:{{{Author2}}}|{{{Author2}}}]]{{#if:{{NAMESPACE}}||[[Category:{{{Author2}}}]]}}}}</div>|{{#if:{{NAMESPACE}}||[[Category:No author]]}}}}
<div class="summary-card">
<div class="summary-card__title">{{{Title}}}</div>{{#if:{{{Subtitle|}}}|<div class="summary-card__subtitle">{{{Subtitle}}}</div>|}}<div class="summary-card__original-title"><!--
{{#if:{{{Author|}}}|<div class="summary-card__author">[[:Category:{{{Author}}}|{{{Author}}}]]{{#if:{{{Author2|}}}|<br/>[[:Category:{{{Author2}}}|{{{Author2}}}]]}}</div>|}}
-->{{#if:{{{Original Title|}}}|{{{Original Title}}}{{#if:{{{Year of publication|}}}|&nbsp;&middot;&#32;}}}}<!--
<div class="summary-card__title">{{{Title}}}</div>
-->{{#if:{{{Year of publication|}}}|{{{Year of publication}}}|{{#if:{{NAMESPACE}}||[[Category:No year of publication]]}}}}<!--
{{#if:{{{Subtitle|}}}|<div class="summary-card__subtitle">{{{Subtitle}}}</div>|}}
-->{{#if:{{{Wikidata|}}}|&nbsp;<span style="vertical-align: text-bottom">[[File:Wikidata.svg|20px|link=https://www.wikidata.org/wiki/{{{Wikidata}}}]]</span>}}<!--
<div class="summary-card__original-title">
-->{{#if:{{{Wikisource|}}}|&nbsp;<span style="vertical-align: text-bottom">[[File:Wikisource-logo.svg|20px|link=https://en.wikisource.org/wiki/{{anchorencode:{{{Wikisource}}}}}]]</span>}}<!--
{{#if:{{{Original Title|}}}|{{{Original Title}}}{{#if:{{{Year of publication|}}}|&nbsp;&middot;&#32;}}}}
--></div><div class="summary-card__genre">Summary of {{#switch: {{{Literary form}}}
{{#if:{{{Year of publication|}}}|{{{Year of publication}}}|}}
| novel = a Novel{{#if:{{NAMESPACE}}||[[Category:Novels]]}}
{{#if:{{{Wikidata|}}}|&nbsp;<span style="vertical-align: text-bottom">[[File:Wikidata.svg|20px|link=https://www.wikidata.org/wiki/{{{Wikidata}}}]]</span>}}
| poem = a Poem{{#if:{{NAMESPACE}}||[[Category:Poems]]}}
{{#if:{{{Wikisource|}}}|&nbsp;<span style="vertical-align: text-bottom">[[File:Wikisource-logo.svg|20px|link=https://en.wikisource.org/wiki/{{anchorencode:{{{Wikisource}}}}}]]</span>}}
| short story = a Short Story{{#if:{{NAMESPACE}}||[[Category:Short stories]]}}
</div>
| #default = a Book{{#if:{{NAMESPACE}}||[[Category:No genre]]}}
<div class="summary-card__genre">Summary of {{LiteraryForm|{{{Literary form}}}|Title}}{{#if:{{{Cycle|}}}|<br/>from the Cycle «{{{Cycle}}}»}}</div>
}}{{#if:{{{Cycle|}}}|<br/>from the Cycle «{{{Cycle}}}»}}</div>{{#if:{{{Microsummary|}}}
{{#if:{{{Microsummary|}}}|<div class="microsummary"><span class="microsummary-title">Microsummary</span><span class="microsummary-divider">:</span> <span class="microsummary-content">{{{Microsummary|}}}</span></div>|}}
| <div class="microsummary"><span class="microsummary-title">Microsummary</span><span class="microsummary-divider">:</span> <span class="microsummary-content">{{{Microsummary|}}}</span></div>{{#seo:|description={{{Microsummary|}}}}}|
{{#if:{{NAMESPACE}}||<div class="toc_center" style="margin-top:16px">__TOC__</div>}}
}}{{#if:{{NAMESPACE}}||<div class="toc_center" style="margin-top:16px">__TOC__</div>}}</div>{{#if:{{NAMESPACE}}||[[Category:All summaries|{{#ifeq: {{#pos:{{PAGENAME}}|The }} | 0 | {{#sub:{{PAGENAME}}|4}} | {{PAGENAME}} }}]]}}
</div>
 
{{#if:{{{Author|}}}|{{#if:{{NAMESPACE}}||[[Category:{{{Author}}}]]}}{{#if:{{{Author2|}}}|{{#if:{{NAMESPACE}}||[[Category:{{{Author2}}}]]}}}}|{{#if:{{NAMESPACE}}||[[Category:No author]]}}}
{{#if:{{{Year of publication|}}}|{{#if:{{NAMESPACE}}||[[Category:{{{Year of publication}}}]]}}|{{#if:{{NAMESPACE}}||[[Category:No year of publication]]}}}
{{#if:{{{Literary form|}}}|{{#if:{{NAMESPACE}}||[[Category:{{LiteraryForm|{{{Literary form}}}|plural}}]]}}|{{#if:{{NAMESPACE}}||[[Category:No genre]]}}}
{{#if:{{NAMESPACE}}||[[Category:All summaries|{{#ifeq: {{#pos:{{PAGENAME}}|The }} | 0 | {{#sub:{{PAGENAME}}|4}} | {{PAGENAME}} }}]]}}
{{#if:{{{Microsummary|}}}|{{#seo:|description={{{Microsummary|}}}}}}
</includeonly>

Revision as of 17:34, 24 May 2023

{{{Title}}}
Summary of a Book