Difference between revisions of "Template:Newspaper ad"

From Wayne County, Ohio Online Resource Center
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
|newspaper_title=Wooster Republican
 
|newspaper_title=Wooster Republican
 
|page_number=4
 
|page_number=4
|industry_sector=Finance & Insurance
+
|industry_sector=Finance and Insurance
 
|subindustry=Insurance Agency
 
|subindustry=Insurance Agency
 
|full_text=40x218 feet, good shade, next to alley and sewer all paid
 
|full_text=40x218 feet, good shade, next to alley and sewer all paid
Line 63: Line 63:
 
  |Organization name={{{organization_name|}}}|+sep=;
 
  |Organization name={{{organization_name|}}}|+sep=;
 
  |Has date={{#var:date}}
 
  |Has date={{#var:date}}
  |Year={{#if:{{{date|{{{year|}}}}}}|{{#time:Y|{{{date|}}}}}}}
+
  |Year={{{year|{{#time:Y|{{#var:date}}}} }}}
 
  |Authored by={{{author|}}}|+sep=;
 
  |Authored by={{{author|}}}|+sep=;
 
  |Newspaper title={{{newspaper_title|}}}
 
  |Newspaper title={{{newspaper_title|}}}
 +
|Page number={{{page_number|}}}
 
  |Subject tag={{{subject_tags|}}}|+sep=;
 
  |Subject tag={{{subject_tags|}}}|+sep=;
 
  |Has image={{#if:{{{image|}}}|File:{{PAGENAME:{{{image|}}}}}}}
 
  |Has image={{#if:{{{image|}}}|File:{{PAGENAME:{{{image|}}}}}}}
Line 93: Line 94:
 
<dl><dt>Author</dt></dl>
 
<dl><dt>Author</dt></dl>
 
<ul class="ul-simple">{{#arraymap:{{{author|}}}|;|@@@|<li>@@@</li>|}}</ul>
 
<ul class="ul-simple">{{#arraymap:{{{author|}}}|;|@@@|<li>@@@</li>|}}</ul>
 +
        </div>
 +
    }}<!--
 +
  -->{{#if:{{{page_number|}}}
 +
        |<div class="d-flex">
 +
<dl><dt>Page number</dt></dl>
 +
<ul class="ul-simple">{{{page_number|}}}</ul>
 
         </div>
 
         </div>
 
     }}<!--
 
     }}<!--
Line 127: Line 134:
  
 
<!--
 
<!--
 
+
{| 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="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 ad]]
 
[[Category:Newspaper ad]]
Line 148: Line 154:
 
       |
 
       |
 
       |^^^
 
       |^^^
       |<li>{{#replace:^^^|>|&#32;>&#32;}}</li><!--
+
       |<li>{{#replace:^^^|>|&#32;>&#32;}}</li>{{#set:
-->{{#set:
+
          |Industry sector={{#explode:^^^|>|0}}
      |Industry sector={{#explode:^^^|>|0}}
+
          |Sub-Industry={{#explode:^^^|>|1}}
      |Sub-Industry={{#explode:^^^|>|1}}
+
        }}
    }}
 
 
   }}</ul>
 
   }}</ul>
 
|}
 
|}
 
 
{{#if:{{{image|}}}|[[File:{{PAGENAME:{{{image|}}}}}|frameless|{{{image_size|1000}}}px]]}}
 
{{#if:{{{image|}}}|[[File:{{PAGENAME:{{{image|}}}}}|frameless|{{{image_size|1000}}}px]]}}
<blockquote>
+
-->
 
{{{full_text|}}}
 
{{{full_text|}}}
</blockquote>
 
 
</includeonly>
 
</includeonly>

Latest revision as of 11:43, 27 August 2022

This is the "Newspaper ad" template.

It should be called in the following format:

{{Newspaper ad
|organization_name=
|image=
|date=
|newspaper_title=
|page_number=
|industry_sector=
|subindustry=
|full_text=
}}

Edit the page to see the template text.

Example:

James C. Fetzer Agency WR19170330p4.png
Newspaper ad
Newspaper title
  • Wooster Republican
Date of publication
  • 1917-03-30
Page number
    4
Organization
Industry
  • Finance and Insurance > Insurance Carriers and Related Activities

40x218 feet, good shade, next to alley and sewer all paid