Template:Entry: Difference between revisions

From softwear.directory
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
No edit summary
 
(78 intermediate revisions by 2 users not shown)
Line 5: Line 5:
{{Entry
{{Entry
|Entry number=
|Entry number=
|Book=
|Web=
|Year=
|People=
|People=
|Entity=
|Entity=
|Title=
|Title=
|Pdf=
|Link=
|Link=
|Type=
|Type=
|Has URL=
|Has PDF=
|Discipline=
|Discipline=
|Subject=
|Subject=
Line 20: Line 16:
|Reflection=
|Reflection=
|Quote=
|Quote=
|Internal reference=
|External reference=
|External reference=
|Image=
|Image=
Line 32: Line 27:
|Image5=
|Image5=
|CaptionImage5=
|CaptionImage5=
|Notes=
|Format of participation=
|Format of participation=
|Setting=
|Setting=
|Date=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>__NOTITLE____NOTOC__
</noinclude><includeonly>{{Header without filters}}{{#default_form:Entry}}{{#set: Class=Entry
{{#default_form:Entry}}
{{#set: Class=Entry
|Entry number={{{Entry number|}}}
|Entry number={{{Entry number|}}}
|Book={{{Book|}}}
|Web={{{Web|}}}
|Year={{{Year|}}}
|People={{{People|}}} |+sep=,
|People={{{People|}}} |+sep=,
|Entity={{{Entity|}}}
|Entity={{{Entity|}}}
|Title={{{Title|}}}
|Title={{{Title|}}}
|Pdf={{{Pdf|}}}
|Link={{{Link|}}}
|Link={{{Link|}}}
|Type={{{Type|}}}
|Type={{{Type|}}}
Line 57: Line 48:
|Reflection={{{Reflection|}}}
|Reflection={{{Reflection|}}}
|Quote={{{Quote|}}}
|Quote={{{Quote|}}}
|Internal reference={{{Internal reference|}}} |+sep=,
|External reference={{{External reference|}}} |+sep=,
|External reference={{{External reference|}}} |+sep=,
|Image={{{Image|}}}
|Image={{{Image|}}}
Line 69: Line 59:
|Image5={{{Image5|}}}
|Image5={{{Image5|}}}
|CaptionImage5={{{CaptionImage5|}}}
|CaptionImage5={{{CaptionImage5|}}}
|Notes={{{Notes|}}}
|Format of participation={{{Format of participation|}}}
|Format of participation={{{Format of participation|}}}
|Setting={{{Setting|}}}
|Setting={{{Setting|}}}
}}
|Date={{{Date|}}}
{| class="formtable"
}}{{#ifeq: {{{Type|}}} | Event
! Entry number
|<div id="show-event-wrapper">
|-
<div id="show-event">
|{{{Entry number|}}}
<div id="event-title">
|-
<p class="event-entry-number">[{{{Entry number|}}}]</p>
! {{#ifeq: {{{Book|}}} | Yes  | Medium  | {{#ifeq: {{{Web|}}} | Yes  | Medium  | }} }}
<p class="event-people">{{#arraymap:{{{People|}}}|,|x|[[x]]}}</p>
|-
</div>
|{{#ifeq: {{{Book|}}} | Yes  | Book  | }} {{#ifeq: {{{Web|}}} | Yes  | Web  | }}
<div id="event-content">
|-
<div class="event-title-link">
! {{#if: {{{Year|}}} | Year  | }}
<p class="event-title">{{{Title|}}}</p>
|-
<div class="event-link">
|{{{Year|}}}
{{#if: {{{Link|}}} |<p class="external-link-icon">[{{{Link|}}} <nowiki>[</nowiki>WEB<nowiki>]</nowiki> ]</p>|}}
|-
</div>
! {{#if: {{{People|}}} | People  | }}
</div>
|-
<p class="article-type">{{#arraymap:{{{Type|}}}|,|x|[[x]]}}</p>
|{{{People|}}}
{{#if: {{{Date|}}} |<p class="article-label-external-reference">Date</p><p class="article-external-reference">{{#time: d.m.y | {{{Date|}}} }}</p>| }}
|-
<p class="article-label-modification-date">Added on</p>
! {{#if: {{{Entity|}}} | Entity  | }}
<div class="article-modification-date">{{#time: d.m.y | {{{Modification date|}}} }}</div>
|-
</div>
|{{{Entity|}}}
</div>
|-
</div>
! {{#if: {{{Title|}}} | Title  | }}
| <div id="show-article-wrapper-entry">
|-
<div id="show-article">
|{{{Title|}}}
<div id="show-article-before"></div>
|-
<div id="article-title">
! {{#if: {{{Link|}}} | Link  | }}
<p class="article-entry-number">[{{{Entry number|}}}]</p>
|-
<p class="article-people">{{#arraymap:{{{People|}}}|,|x|[[x]]}}</p>
|{{{Link|}}}
</div>
|-
<div id="article-content">
! {{#if: {{{Type|}}} | Type  | }}
<div class="article-title-link">
|-
<p class="article-title">{{{Title|}}}</p>
|{{#if: {{{Type|}}} | {{{Type|}}} | }}
<div class="link-pdf">
|-
{{#if: {{{Pdf|}}} |<p class="pdf-link-icon">[{{{Pdf|}}} <nowiki>[</nowiki>PDF<span class="text-symbol">⤴</span><nowiki>]</nowiki> ]</p>|}}
! {{#ifeq: {{{Has URL|}}} | Yes  | Availability  | {{#ifeq: {{{Has PDF|}}} | Yes  | Availability  | }} }}
{{#if: {{{Link|}}} |<p class="external-link-icon">[{{{Link|}}} <nowiki>[</nowiki>WEB<span class="text-symbol">⤴</span><nowiki>]</nowiki> ]</p>|}}
|-
</div>
|{{#ifeq: {{{Has URL|}}} | Yes  | URL  | }} {{#ifeq: {{{Has PDF|}}} | Yes  | PDF  | }}
</div>
|-
<p class="article-type">{{#arraymap:{{{Type|}}}|,|x|[[x]]}}</p>
! {{#if: {{{Discipline|}}} | Discipline  | }}
<div class="article-metadata">
|-
<div class="article-metadata-column">
|{{{Discipline|}}}
<p class="article-metadata-label">Entity</p>
|-
<p class="article-metadata-value">{{{Entity|}}}</p>
! {{#if: {{{Subject|}}} | Subject(s)  | }}
</div>
|-
<div class="article-metadata-column">
|{{{Subject|}}}
<p class="article-metadata-label">Discipline</p>
|-
<p class="article-metadata-value">{{{Discipline|}}}</p>
! {{#if: {{{Description|}}} | Description  | }}
</div>
|-
<div class="article-metadata-column">
|{{{Description|}}}
<p class="article-metadata-label">Subject(s)</p>
|-
<p class="article-metadata-value">{{#arraymap:{{{Subject|}}}|,|x|[[x]]}}</p>
! {{#if: {{{Reflection|}}} | Reflection  | }}
</div>
|-
</div>
|{{{Reflection|}}}
{{#if: {{{Image|}}} | <div class="article-images">
|-
<p class="article-label-image"></p>
! {{#if: {{{Quote|}}} | Quote  | }}
{{#if: {{{Image|}}} |   <div class="image-container">[[File:{{{Image|}}}|200px|link=]]<div class="caption-image1" >{{{CaptionImage|}}}</div></div>| }}
|-
{{#if: {{{Image2|}}} |   <div class="image-container hidden">[[File:{{{Image2|}}}|200px|link=]]<div class="caption-image2" >{{{CaptionImage2|}}}</div></div>| }}
|{{{Quote|}}}
{{#if: {{{Image3|}}} |   <div class="image-container hidden">[[File:{{{Image3|}}}|200px|link=]]<div class="caption-image3" >{{{CaptionImage3|}}}</div></div>| }}
|-
{{#if: {{{Image4|}}} |   <div class="image-container hidden">[[File:{{{Image4|}}}|200px|link=]]<div class="caption-image4" >{{{CaptionImage4|}}}</div></div>| }}
! {{#if: {{{Internal reference|}}} | References | {{#if: {{{External reference|}}} | References  | }} }}
{{#if: {{{Image5|}}} |   <div class="image-container hidden">[[File:{{{Image5|}}}|200px|link=]]<div class="caption-image5" >{{{CaptionImage5|}}}</div></div>| }}</div>| }}
|-
{{#if: {{{Description|}}} |
|{{#if: {{{Internal reference|}}} | Internal: [[{{{Internal reference|}}}]]  | }} {{#if: {{{External reference|}}} | External: {{{External reference|}}}  | }}
<p class="article-label-description">Description</p>
|-
<div class="article-description">{{{Description|}}}</div>| }}{{#if: {{{Reflection|}}} |<p class="article-label-reflection">Reflection</p><div class="article-reflection">{{{Reflection|}}}</div>| }}{{#if: {{{Quote|}}} |<p class="article-label-quote">Quote</p>
! {{#if: {{{Image|}}} | Image(s) | {{#if: {{{Image2|}}} | Image(s) | }} {{#if: {{{Image3|}}} | Image(s) | }} {{#if: {{{Image4|}}} | Image(s) | }} {{#if: {{{Image5|}}} | Image(s) | }} }}
<p class="article-quote">"{{{Quote|}}}"</p>| }}{{#if: {{{External reference|}}} |<p class="article-label-external-reference">External references</p><p class="article-external-reference">{{#arraymap:{{{External reference|}}}|,|x|x}}</p>| }}{{#if: {{{Format of participation|}}} |<p class="article-label-external-reference">Format of participation</p><p class="article-external-reference">{{{Format of participation|}}}</p>| }}{{#if: {{{Setting|}}} |<p class="article-label-external-reference">Setting</p><p class="article-external-reference">{{{Setting|}}}</p>| }}{{#if: {{{Date|}}} |<p class="article-label-external-reference">Date</p><p class="article-external-reference">{{#time: d.m.y | {{{Date|}}} }}</p>| }}<p class="article-label-modification-date">Added on</p><div class="article-modification-date">{{#time: d.m.y | {{{Modification date|}}} }}</div>
|-
</div>
|{{#if: {{{Image|}}} | [[File:{{{Image|}}}|400px]] | }}
</div>
|-
</div>
|{{#if: {{{CaptionImage|}}} | {{{CaptionImage|}}}  | }}
|-
|{{#if: {{{Image2|}}} | [[File:{{{Image2|}}}|400px]] | }}
|-
|{{#if: {{{CaptionImage2|}}} | {{{CaptionImage2|}}}  | }}
|-
|{{#if: {{{Image3|}}} | [[File:{{{Image3|}}}|400px]] | }}
|-
|{{#if: {{{CaptionImage3|}}} | {{{CaptionImage3|}}| }}
|-
|{{#if: {{{Image4|}}} | [[File:{{{Image4|}}}|400px]]  | }}
|-
|{{#if: {{{CaptionImage4|}}} | {{{CaptionImage4|}}} | }}
|-
|{{#if: {{{Image5|}}} | [[File:{{{Image5|}}}|400px]]  | }}
|-
|{{#if: {{{CaptionImage5|}}} | {{{CaptionImage5|}}}  | }}
|-
! {{#if: {{{Notes|}}} | Notes  | }}
|-
|{{{Notes|}}}
|-
! {{#if: {{{Format of participation|}}} | Format of participation | }}
|-
|{{{Format of participation|}}}
|-
! {{#if: {{{Setting|}}} | Setting | }}
|-
|{{{Setting|}}}
|-
! Related articles
|-
|{{#show: [[Class::Entry]] [[Subject::{{{Subject|}}}]] [[Entry number::!{{{Entry number|}}}]]
    |?Entry number
    |?People
    |?Title
    |?Link
    |?Type
    |?Entity
    |?Discipline
    |?Subject
    |?Description
    |?Reflection
    |?Quote
    |?Image
    |?CaptionImage
    |?Image2
    |?CaptionImage2
    |?Image3
    |?CaptionImage3
    |?Image4
    |?CaptionImage4
    |?Image5
    |?CaptionImage5
    |?Modification date
    |format=plainlist
    |template=ShowEntries
    |limit=4
    |offset=
    |searchlabel=
    |named args=yes
    |order=random
}}
}}
|-
|}


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

Latest revision as of 14:51, 27 June 2024

This is the "Entry" template. It should be called in the following format:

{{Entry
|Entry number=
|People=
|Entity=
|Title=
|Pdf=
|Link=
|Type=
|Discipline=
|Subject=
|Description=
|Reflection=
|Quote=
|External reference=
|Image=
|CaptionImage=
|Image2=
|CaptionImage2=
|Image3=
|CaptionImage3=
|Image4=
|CaptionImage4=
|Image5=
|CaptionImage5=
|Format of participation=
|Setting=
|Date=
}}

Edit the page to see the template text.