Template:Entry: Difference between revisions

From softwear.directory
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
No edit summary
Tag: Reverted
Line 38: Line 38:
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>__NOTITLE____NOTOC__
</noinclude><includeonly>__NOTOC__
{{#default_form:Entry}}
{{#default_form:Entry}}
{{#set: Class=Entry
{{#set: Class=Entry
Line 73: Line 73:
|Setting={{{Setting|}}}
|Setting={{{Setting|}}}
}}  
}}  
{| class="formtable"
{{Header}}
! Entry number
<div id="show-article-wrapper">
|-
    <div id="show-article">
|{{{Entry number|}}}
        <div id="show-article-before"></div>
|-
        <div id="close-button">[close]</div>
! {{#ifeq: {{{Book|}}} | Yes  | Medium  | {{#ifeq: {{{Web|}}} | Yes  | Medium  | }} }}
        <div id="article-title">
|-
            <p class="article-entry-number">{{{Entry number|}}}</p>
|{{#ifeq: {{{Book|}}} | Yes  | Book  | }} {{#ifeq: {{{Web|}}} | Yes  | Web  | }}
            <p class="article-people">{{{People|}}}</p>
|-
        </div>
! {{#if: {{{Year|}}} | Year  | }}
        <div id="article-content">
|-
            <div class="article-title-link">
|{{{Year|}}}
                <p class="article-title">{{{Title|}}}</p>
|-
                <span class="external-link-icon">[{{{External reference|}}} ↪]</span>
! {{#if: {{{People|}}} | People  | }}
            </div>
|-
           
|{{{People|}}}
            <p class="article-type">{{{Type|}}}</p>
|-
           
! {{#if: {{{Entity|}}} | Entity  | }}
            <div class="article-metadata">
|-
                <div class="article-metadata-column">
|{{{Entity|}}}
                    <p class="article-metadata-label">Entity</p>
|-
                    <p class="article-metadata-value">{{{Entity|}}}</p>
! {{#if: {{{Title|}}} | Title  | }}
                </div>
|-
                <div class="article-metadata-column">
|{{{Title|}}}
                    <p class="article-metadata-label">Discipline</p>
|-
                    <p class="article-metadata-value">{{{Discipline|}}}</p>
! {{#if: {{{Link|}}} | Link  | }}
                </div>
|-
                <div class="article-metadata-column">
|{{{Link|}}}
                    <p class="article-metadata-label">Subject(s)</p>
|-
                    <p class="article-metadata-value">{{{Subject|}}}</p>
! {{#if: {{{Type|}}} | Type  | }}
                </div>
|-
            </div>
|{{#if: {{{Type|}}} | {{{Type|}}}  | }}
           
|-
            <div class="article-images">
! {{#ifeq: {{{Has URL|}}} | Yes  | Availability  | {{#ifeq: {{{Has PDF|}}} | Yes  | Availability  | }} }}
            {{#if: {{{Image|}}} | <div class="image1">[[File:{{{Image|}}}|400px|link=]]<div class="caption-image1" >{{{CaptionImage|}}}</div></div>| }}
|-
            {{#if: {{{Image2|}}} | <div class="image2">[[File:{{{Image2|}}}|400px|link=]]<div class="caption-image2" >{{{CaptionImage2|}}}</div></div>| }}
|{{#ifeq: {{{Has URL|}}} | Yes  | URL  | }} {{#ifeq: {{{Has PDF|}}} | Yes  | PDF  | }}
            {{#if: {{{Image3|}}} | <div class="image3">[[File:{{{Image3|}}}|400px|link=]]<div class="caption-image3" >{{{CaptionImage3|}}}</div></div>| }}
|-
            {{#if: {{{Image4|}}} | <div class="image4">[[File:{{{Image4|}}}|400px|link=]]<div class="caption-image4" >{{{CaptionImage4|}}}</div></div>| }}
! {{#if: {{{Discipline|}}} | Discipline  | }}
            {{#if: {{{Image5|}}} | <div class="image5">[[File:{{{Image5|}}}|400px|link=]]<div class="caption-image5" >{{{CaptionImage5|}}}</div></div>| }}
|-
            </div>
|{{{Discipline|}}}
           
|-
            <p class="article-label-description">Description</p>
! {{#if: {{{Subject|}}} | Subject(s)  | }}
            <div class="article-description">{{{Description|}}}</div>
|-
           
|{{{Subject|}}}
            <p class="article-label-reflection">Reflection</p>
|-
            <div class="article-reflection">{{{Reflection|}}}</div>
! {{#if: {{{Description|}}} | Description  | }}
           
|-
            <p class="article-label-quote">Quote</p>
|{{{Description|}}}
            <p class="article-quote">"{{{Quote|}}}"</p>
|-
           
! {{#if: {{{Reflection|}}} | Reflection  | }}
            <p class="article-label-modification-date">Added on</p>
|-
            <div class="article-modification-date">{{#time: d m y | {{{Modification date|}}} }}</div>
|{{{Reflection|}}}
        </div>
|-
    </div>
! {{#if: {{{Quote|}}} | Quote  | }}
    <div id="related-articles">
|-
        <div class="related-articles-label">Related Articles</div>
|{{{Quote|}}}
        <div class="related-articles-container">
|-
        {{#show: [[Class::Entry]] [[Subject::{{{Subject|}}}]] [[Entry number::!{{{Entry number|}}}]]
! {{#if: {{{Internal reference|}}} | References | {{#if: {{{External reference|}}} | References  | }} }}
        |?Entry number
|-
        |?People
|{{#if: {{{Internal reference|}}} | Internal: [[{{{Internal reference|}}}]]  | }} {{#if: {{{External reference|}}} | External: {{{External reference|}}}  | }}
        |?Title
|-
        |?Link
! {{#if: {{{Image|}}} | Image(s) | {{#if: {{{Image2|}}} | Image(s) | }} {{#if: {{{Image3|}}} | Image(s) | }} {{#if: {{{Image4|}}} | Image(s) | }} {{#if: {{{Image5|}}} | Image(s) | }} }}
        |?Type
|-
        |?Entity
|{{#if: {{{Image|}}} | [[File:{{{Image|}}}|400px]] | }}
        |?Discipline
|-
        |?Subject
|{{#if: {{{CaptionImage|}}} | {{{CaptionImage|}}}  | }}
        |?Description
|-
        |?Reflection
|{{#if: {{{Image2|}}} | [[File:{{{Image2|}}}|400px]] | }}
        |?Quote
|-
        |?Image
|{{#if: {{{CaptionImage2|}}} | {{{CaptionImage2|}}}  | }}
        |?CaptionImage
|-
        |?Image2
|{{#if: {{{Image3|}}} | [[File:{{{Image3|}}}|400px]] | }}
        |?CaptionImage2
|-
        |?Image3
|{{#if: {{{CaptionImage3|}}} | {{{CaptionImage3|}}}  | }}
        |?CaptionImage3
|-
        |?Image4
|{{#if: {{{Image4|}}} | [[File:{{{Image4|}}}|400px]] | }}
        |?CaptionImage4
|-
        |?Image5
|{{#if: {{{CaptionImage4|}}} | {{{CaptionImage4|}}}  | }}
        |?CaptionImage5
|-
        |?Modification date
|{{#if: {{{Image5|}}} | [[File:{{{Image5|}}}|400px]] | }}
        |format=plainlist
|-
        |template=ShowEntries
|{{#if: {{{CaptionImage5|}}} | {{{CaptionImage5|}}}  | }}
        |limit=4
|-
        |offset=
! {{#if: {{{Notes|}}} | Notes  | }}
        |searchlabel=
|-
        |named args=yes
|{{{Notes|}}}
        |order=random
|-
        }}
! {{#if: {{{Format of participation|}}} | Format of participation  | }}
        </div>
|-
    </div>
|{{{Format of participation|}}}
</div>
|-
! {{#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
}}
|-
|}


<div class="footer">
<div class="simpleSearch">{{#widget:Searchbar}}</div>
<div class="nrs"><div class="button-open-nrs">{{#widget: Button link|buttontext=[ Nr.s ]}}</div></div>
</div>
[[Category:Entries]]
[[Category:Entries]]
</includeonly>
</includeonly>

Revision as of 15:23, 28 January 2024

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

{{Entry
|Entry number=
|Book=
|Web=
|Year=
|People=
|Entity=
|Title=
|Link=
|Type=
|Has URL=
|Has PDF=
|Discipline=
|Subject=
|Description=
|Reflection=
|Quote=
|Internal reference=
|External reference=
|Image=
|CaptionImage=
|Image2=
|CaptionImage2=
|Image3=
|CaptionImage3=
|Image4=
|CaptionImage4=
|Image5=
|CaptionImage5=
|Notes=
|Format of participation=
|Setting=
}}

Edit the page to see the template text.