Template:Entry: Difference between revisions

From softwear.directory
Jump to navigation Jump to search
No edit summary
No edit summary
 
(19 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>__NOTOC__{{#default_form:Entry}}{{#set: Class=Entry
</noinclude><includeonly>{{Header without filters}}{{#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 55: 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 67: 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|}}}
}}{{Header}}
|Date={{{Date|}}}
<div id="show-article-wrapper-entry">
}}{{#ifeq: {{{Type|}}} | Event
    <div id="show-article">
|<div id="show-event-wrapper">
        <div id="article-title">
<div id="show-event">
            <p class="article-entry-number">[{{{Entry number|}}}]</p>
<div id="event-title">
            <p class="article-people">{{#arraymap:{{{People|}}}|,|x|[[x]]}}</p>
<p class="event-entry-number">[{{{Entry number|}}}]</p>
        </div>
<p class="event-people">{{#arraymap:{{{People|}}}|,|x|[[x]]}}</p>
        <div id="article-content">
</div>
            <div class="article-title-link">
<div id="event-content">
                <p class="article-title">{{{Title|}}}</p>
<div class="event-title-link">
                {{#if: {{{Link|}}} |<p class="external-link-icon">[{{{Link|}}} ↪]</p>| }}
<p class="event-title">{{{Title|}}}</p>
            </div>
<div class="event-link">
            <p class="article-type">{{#arraymap:{{{Type|}}}|,|x|[[x]]}}</p>
{{#if: {{{Link|}}} |<p class="external-link-icon">[{{{Link|}}} <nowiki>[</nowiki>WEB<nowiki>]</nowiki> ]</p>|}}
            {{#ifeq: {{{Book|}}} | Yes  | <p class="article-metadata-label">Book</p>  | }}
</div>
            {{#ifeq: {{{Web|}}} | Yes  | <p class="article-web">Web</p> | }}
</div>
            {{#if: {{{Year|}}} |<p class="article-metadata-label">Year</p>
<p class="article-type">{{#arraymap:{{{Type|}}}|,|x|[[x]]}}</p>
            <p class="article-year">{{{Year|}}}</p>| }}
{{#if: {{{Date|}}} |<p class="article-label-external-reference">Date</p><p class="article-external-reference">{{#time: d.m.y | {{{Date|}}} }}</p>| }}
            {{#ifeq: {{{Has URL|}}} | Yes  | <p class="article-has-url">Has URL ✔</p>  | }}
<p class="article-label-modification-date">Added on</p>
            {{#ifeq: {{{Has PDF|}}} | Yes  | <p class="article-has-pdf">Has PDF ✔</p>  | }}
<div class="article-modification-date">{{#time: d.m.y | {{{Modification date|}}} }}</div>
            {{#if: {{{Internal reference|}}} |<p class="article-metadata-label">Internal reference</p>
</div>
            <p class="article-internal-ref">[[{{{Internal reference|}}}]]</p>| }}
</div>
            {{#if: {{{External reference|}}} |<p class="article-metadata-label">External reference</p>
            <p class="article-external-ref">[{{{External reference|}}} {{{External reference|}}}]</p>| }}
          {{#if: {{{Format of participation|}}} |<p class="article-metadata-label">Format of participation</p>
            <p class="article-format-participation">{{{Format of participation|}}}</p>| }}
            {{#if: {{{Setting|}}} |<p class="article-metadata-label">Setting</p>
            <p class="article-setting">{{{Setting|}}}</p>| }}
            <div class="article-metadata">
                <div class="article-metadata-column">
                    <p class="article-metadata-label">Entity</p>
                    <p class="article-metadata-value">{{{Entity|}}}</p>
                </div>
                <div class="article-metadata-column">
                    <p class="article-metadata-label">Discipline</p>
                    <p class="article-metadata-value">{{{Discipline|}}}</p>
                </div>
                <div class="article-metadata-column">
                    <p class="article-metadata-label">Subject(s)</p>
                    <p class="article-metadata-value">{{{Subject|}}}</p>
                </div>
            </div>
            {{#if: {{{Image|}}} | <div class="article-images">
            <p class="article-label-image"></p>
            {{#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>| }}
            {{#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: {{{Image5|}}} |  <div class="image-container hidden">[[File:{{{Image5|}}}|200px|link=]]<div class="caption-image5" >{{{CaptionImage5|}}}</div></div>| }}</div>| }}
            {{#if: {{{Description|}}} |
            <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>
            <p class="article-quote">"{{{Quote|}}}"</p>| }}
            {{#if: {{{Notes|}}} |<p class="article-label-quote">Notes</p>
            <p class="article-notes">{{{Notes|}}}</p>| }}
            <p class="article-label-modification-date">Added on</p>
            <div class="article-modification-date">{{#time: d m y | {{{Modification date|}}} }}</div>
        </div>
    </div>
</div>
</div>
| <div id="show-article-wrapper-entry">
<div id="show-article">
<div id="show-article-before"></div>
<div id="article-title">
<p class="article-entry-number">[{{{Entry number|}}}]</p>
<p class="article-people">{{#arraymap:{{{People|}}}|,|x|[[x]]}}</p>
</div>
<div id="article-content">
<div class="article-title-link">
<p class="article-title">{{{Title|}}}</p>
<div class="link-pdf">
{{#if: {{{Pdf|}}} |<p class="pdf-link-icon">[{{{Pdf|}}} <nowiki>[</nowiki>PDF<span class="text-symbol">⤴</span><nowiki>]</nowiki> ]</p>|}}
{{#if: {{{Link|}}} |<p class="external-link-icon">[{{{Link|}}} <nowiki>[</nowiki>WEB<span class="text-symbol">⤴</span><nowiki>]</nowiki> ]</p>|}}
</div>
</div>
<p class="article-type">{{#arraymap:{{{Type|}}}|,|x|[[x]]}}</p>
<div class="article-metadata">
<div class="article-metadata-column">
<p class="article-metadata-label">Entity</p>
<p class="article-metadata-value">{{{Entity|}}}</p>
</div>
<div class="article-metadata-column">
<p class="article-metadata-label">Discipline</p>
<p class="article-metadata-value">{{{Discipline|}}}</p>
</div>
<div class="article-metadata-column">
<p class="article-metadata-label">Subject(s)</p>
<p class="article-metadata-value">{{#arraymap:{{{Subject|}}}|,|x|[[x]]}}</p>
</div>
</div>
{{#if: {{{Image|}}} | <div class="article-images">
<p class="article-label-image"></p>
{{#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>| }}
{{#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: {{{Image5|}}} |  <div class="image-container hidden">[[File:{{{Image5|}}}|200px|link=]]<div class="caption-image5" >{{{CaptionImage5|}}}</div></div>| }}</div>| }}
{{#if: {{{Description|}}} |
<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>
<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>
</div>
</div>
}}
[[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.