Difference between revisions of "Template:Newspaper clipping"

From Wayne County, Ohio Online Resource Center
Jump to navigation Jump to search
 
(36 intermediate revisions by 3 users not shown)
Line 3: Line 3:
  
 
Example:
 
Example:
{{Newspaper Clipping
+
{{Newspaper clipping
 
|Organization_name=Commercial House (Congress Ohio)
 
|Organization_name=Commercial House (Congress Ohio)
|image=Page 4 of Jacksonian,published in Wooster, Ohio on Thursday, December 13th, 1883.jpeg|thumbnail
 
 
|date=1883/12/13
 
|date=1883/12/13
 
|newspaper_title=The Jacksonian
 
|newspaper_title=The Jacksonian
 +
|image=Page 4 of Jacksonian,published in Wooster, Ohio on Thursday, December 13th, 1883.jpeg
 
|page_number=4
 
|page_number=4
|Newspaper_section=Congress
+
|newspaper_section=Congress
 +
|subject_tags=Union Hotel, Commercial House, W. S. Brown, Congress, Hotel
 
|full_text=W. S. {{Surname|Brown}} has purchased the hotel property known as the [[Union Hotel]]. He has gone to a great expense in overhauling and refitting the same. It will hereafter be known as the Commercial House. Mrs. Brown is favorably known as a landlady, and guests will receive a cordial welcome, and I am sure if the stop at the Commercial once they will stop again. PEACEFUL RULER.
 
|full_text=W. S. {{Surname|Brown}} has purchased the hotel property known as the [[Union Hotel]]. He has gone to a great expense in overhauling and refitting the same. It will hereafter be known as the Commercial House. Mrs. Brown is favorably known as a landlady, and guests will receive a cordial welcome, and I am sure if the stop at the Commercial once they will stop again. PEACEFUL RULER.
|subject_tags=Union Hotel, Commercial House, W. S. Brown, Congress, Hotel
 
 
}}
 
}}
</noinclude><includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
+
</noinclude><includeonly><!--
 +
 
 +
-->{{#vardefine: date|{{#if:{{{date|}}}|{{{date|}}}|{{#if:{{{day|}}}
 +
    |{{#time:Y/m/d|{{{year|}}}-{{padleft:{{{month|}}}|2}}-{{padleft:{{{day|}}}|2}}}}
 +
    |{{#if: {{{month|}}}
 +
        |{{#time: M Y|{{#switch: {{{month|}}}
 +
            |1|01=January
 +
            |2|02=February
 +
            |3|03=March
 +
            |4|04=April
 +
            |5|05=May
 +
            |6|06=June
 +
            |7|07=July
 +
            |8|08=August
 +
            |9|09=September
 +
            |10=October
 +
            |11=November
 +
            |12=December
 +
          }} {{{year|}}}}}
 +
        |{{{year|}}}
 +
      }}
 +
    }}
 +
  }}
 +
}}<!--
 +
 
 +
-->{{#arraydefine: industries
 +
    |{{#arraymap:{{{organization_name|}}}
 +
        |;
 +
        |@@@
 +
        |{{#ask: [[-Has subobject::@@@]][[Industry sector::+]]
 +
          |?Industry sector
 +
          |?Sub-Industry
 +
          |mainlabel=-
 +
          |headers=hide
 +
          |format=array
 +
          |sep=;
 +
          |propsep= >
 +
          |manysep=;
 +
        }}
 +
        |;
 +
      }}
 +
    |;
 +
    |unique
 +
  }}<!--
 +
 
 +
-->{{#set:
 +
|Media category={{NAMESPACE}}
 +
|Organization name={{{organization_name|}}}|+sep=;
 +
|Has date={{#var: date}}
 +
|Year={{{year|{{#time:Y|{{#var:date}}}} }}}
 +
|Authored by={{{author|}}}|+sep=;
 +
|Newspaper title={{{newspaper_title|}}}
 +
|Newspaper section={{{newspaper_section|}}}
 +
|Page number={{{page_number|}}}
 +
|Subject tag={{{subject_tags|}}}|+sep=;
 +
|Has image={{#if:{{{image|}}}|File:{{PAGENAME:{{{image|}}}}}}}
 +
}}<!--
 +
 
 +
--><div class="wcpl-infobox">{{#if:{{{image|}}}
 +
  |<div class="wcpl-infobox-image">[[Image:{{PAGENAME:{{{image|}}}}}|class=wcpl-infobox-image|560px]]</div>
 +
  |[[File:Wiki.png|link=|class=wcpl-infobox-image]]
 +
}}
 +
  <div class="wcpl-infobox-section {{#if:{{{image|}}}||wcpl-infobox-image}}">
 +
    <div class="wcpl-infobox-section-header" style="text-align:center">{{PAGENAME}}</div>
 +
    <div class="wcpl-infobox-section-body"><!--
 +
  -->{{#if:{{{newspaper_title|}}}
 +
        |<div class="d-flex">
 +
<dl><dt>Newspaper title</dt></dl>
 +
<ul class="ul-simple"><li>{{{newspaper_title|}}}</li></ul>
 +
        </div>
 +
    }}<!--
 +
  -->{{#if:{{#var:date}}
 +
        |<div class="d-flex">
 +
<dl><dt>Date of publication</dt></dl>
 +
<ul class="ul-simple"><li>{{#var:date}}</li></ul>
 +
        </div>
 +
    }}<!--
 +
  -->{{#if:{{{author|}}}
 +
        |<div class="d-flex">
 +
<dl><dt>Author</dt></dl>
 +
<ul class="ul-simple">{{#arraymap:{{{author|}}}|;|@@@|<li>@@@</li>|}}</ul>
 +
        </div>
 +
    }}<!--
 +
  -->{{#if:{{{newspaper_section|}}}
 +
        |<div class="d-flex">
 +
<dl><dt>Section</dt></dl>
 +
<ul class="ul-simple">{{{newspaper_section|}}}</ul>
 +
        </div>
 +
    }}<!--
 +
  -->{{#if:{{{page_number|}}}
 +
        |<div class="d-flex">
 +
<dl><dt>Page number</dt></dl>
 +
<ul class="ul-simple">{{{page_number|}}}</ul>
 +
        </div>
 +
    }}<!--
 +
  -->{{#if:{{{organization_name|}}}
 +
        |<div class="d-flex">
 +
<dl><dt>Organization</dt></dl>
 +
<ul class="ul-simple">{{#arraymap:{{{organization_name|}}}|;|@@@|<li>[[@@@]]</li>|}}</ul>
 +
        </div><!--
 +
 
 +
-->{{#ifexpr:{{#arraysize: industries}}>0|
 +
        <div class="d-flex">
 +
<dl><dt>Industry</dt></dl>
 +
<ul class="ul-simple">{{#arrayprint: industries
 +
      |
 +
      |^^^
 +
      |<li>{{#replace:^^^|>|&#32;>&#32;}}</li><!--
 +
-->{{#set:
 +
      |Industry sector={{#explode:^^^|>|0}}
 +
      |Sub-Industry={{#explode:^^^|>|1}}
 +
    }}
 +
  }}</ul>
 +
        </div>
 +
}}
 +
}}<!--
 +
  -->{{#if:{{{subject_tags|}}}
 +
        |<div class="d-flex">
 +
<dl><dt>Subject tags</dt></dl>
 +
<ul class="ul-simple">{{#arraymap:{{{subject_tags|}}}|;|@@@|<li>@@@</li>|}}</ul>
 +
        </div>
 +
    }}
 +
    </div>
 +
  </div>
 +
</div>
  
 +
<!--
 +
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
 
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
 +
[[Category:Newspaper Clipping]]
 
|-
 
|-
 
! Organization name
 
! Organization name
| [[Organization name::{{{organization_name|}}}]]
+
| <ul class="ul-simple">{{#arraymap:{{{organization_name|}}}|;|@@@|<li>[[@@@]]</li>|}}</ul>
 
|-
 
|-
 
! Date of publication
 
! Date of publication
Line 35: Line 162:
 
| {{{subject_tags|}}}
 
| {{{subject_tags|}}}
 
|-
 
|-
 +
! Industry sector
 +
| <ul class="ul-simple">{{#arrayprint: industries
 +
      |
 +
      |^^^
 +
      |<li>{{#replace:^^^|>|&#32;>&#32;}}</li>{{#set:
 +
        |Industry sector={{#explode:^^^|>|0}}
 +
        |Sub-Industry={{#explode:^^^|>|1}}
 +
      }}
 +
  }}</ul>
 
|}
 
|}
  
[[File:{{{image|}}}|frameless|1000x1000px|]]
+
[[File:{{{image|}}}|frameless|1000x1000px|]] -->
<blockquote>
 
 
{{{full_text|}}}
 
{{{full_text|}}}
</blockquote>
 
 
</includeonly>
 
</includeonly>

Latest revision as of 18:33, 24 August 2022

This is the "Newspaper clipping" template.

It should be called in the following format:

{{Newspaper clipping
|organization_name=
|image=
|date=
|newspaper_title=
|page_number=
|full_text=
|subject_tags=
}}

Edit the page to see the template text.

Example:

Page 4 of Jacksonian,published in Wooster, Ohio on Thursday, December 13th, 1883.jpeg
Newspaper clipping
Newspaper title
  • The Jacksonian
Date of publication
  • 1883/12/13
Section
    Congress
Page number
    4
Subject tags
  • Union Hotel, Commercial House, W. S. Brown, Congress, Hotel

W. S. Brown has purchased the hotel property known as the Union Hotel. He has gone to a great expense in overhauling and refitting the same. It will hereafter be known as the Commercial House. Mrs. Brown is favorably known as a landlady, and guests will receive a cordial welcome, and I am sure if the stop at the Commercial once they will stop again. PEACEFUL RULER.