Template:Inset Story: Difference between revisions
From The Seven Sages of Rome
No edit summary |
No edit summary |
||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{Has | <noinclude> | ||
{{#template_params: | |||
|Has Motif (label=Motif) | |||
|Has Summary (label=Summary) | |||
|Has Note (label=Note) | |||
|Has Critical Literature (label=Critical Literature) | |||
|Has Short Description (label=Short Description) | |||
}} | |||
</noinclude> | |||
<includeonly>{{#invoke:Breadcrumb|breadcrumb|CategoryLink=Inset Stories|CategoryName=Inset Story|PAGENAME={{PAGENAME}}}}__NOTOC__<div class="noexcerpt">{{#if:{{{Has Motif|}}}|{{#arraymap:{{{Has Motif|}}}|;|@@@|{{#set:Has Motif=@@@}}<span class="badge badge-pill badge-motif mr-1">{{#formredlink:target=@@@|form=Content}}</span>|}}<br /><br />|}}</div> | |||
{{{Has Summary|}}} | {{{Has Summary|}}} | ||
{{#if:{{{Has Note|}}}| | <div class="noexcerpt"> | ||
== Critical Literature | <div> | ||
{{#if:{{{Has Critical Literature|}}}|{{#arraymap:{{{Has Critical Literature|}}}|;|x|{{#set:Has Critical Literature=x}}{{#formredlink:target=x|form=Modern Research Literature}}|, }}|No critical literature available}} | <div class="row"> | ||
== '''{{PAGENAME}}''' appears in the following | <!-- Left Column --> | ||
{{#ask: | <div class="col-md-6"> | ||
{{#if:{{{Has Note|}}}|{{NoteCard|Note={{{Has Note}}}}}|}} | |||
{| class="wikitable w-100 mb-4" | |||
|- | |||
! colspan="1" | Critical Literature | |||
|- | |||
|{{#if:{{{Has Critical Literature|}}}|{{#arraymap:{{{Has Critical Literature|}}}|;|x|{{#set:Has Critical Literature=x}}{{#formredlink:target=x|form=Modern Research Literature}}|, }}|No critical literature available}} | |||
|} | |||
{| class="wikitable w-100 mb-4" | |||
|- | |||
! colspan="1" | '''{{PAGENAME}}''' appears in the following versions and secondary versions | |||
|- | |||
|{{#ask: | |||
[[Has subobject::<q>[[Has Short Title::{{PAGENAME}}]]</q>]][[Category:Version||Secondary Version]] | |||
|?Has Original Language Of Version=Original Language | |||
|?Has Branch Of Tradition=Branch of Tradition | |||
|?Is Adapted From=Adapted from | |||
|datatables-fixedHeader=true | |||
|class=datatable | |||
|mainlabel=Version | |||
|default=This inset story appears in no versions of the database | |||
}} | |||
|} | |||
</div> | |||
<!-- Right Column --> | |||
<div class="col-md-6"> | |||
{| class="wikitable w-100 mb-4" | |||
|- | |||
! colspan="1" | '''{{PAGENAME}}''' is narrated in the following occurrences | |||
|- | |||
|{{#invoke: NarratorListModule |getNarratorsForShortTitle|{{PAGENAME}}}} | |||
|} | |||
{| class="wikitable w-100 mb-4" | |||
|- | |||
! colspan="1" | '''{{PAGENAME}}''' appears in the following manuscripts | |||
|- | |||
|{{#ask: | |||
[[Has subobject::<q>[[Has Short Title::{{PAGENAME}}]]</q>]][[Category:Manuscript]] | [[Has subobject::<q>[[Has Short Title::{{PAGENAME}}]]</q>]][[Category:Manuscript]] | ||
|?Has Language=Language | |?Has Language=Language | ||
Line 15: | Line 60: | ||
|default=This inset story appears in no manuscripts of the database | |default=This inset story appears in no manuscripts of the database | ||
}} | }} | ||
|} | |||
</div> | |||
</div> | |||
</div> | |||
[[Category:Inset Story]]{{#set:Is Entity Type=Inset Story}}{{#set:Has Short Description={{{Has Short Description|}}}}} | |||
</div> | |||
}} | |||
</includeonly> | </includeonly> |
Latest revision as of 16:05, 26 March 2025
This is the "Inset Story" template.
It should be called in the following format:
{{Inset Story |Has Motif= |Has Summary= |Has Note= |Has Critical Literature= |Has Short Description= }}
Edit the page to see the template text.