Difference between revisions of "Template:Newspaper ad"

From Wayne County, Ohio Online Resource Center
Jump to navigation Jump to search
m (WikiVisor moved page Template:Newspaper Ad to Template:Newspaper ad without leaving a redirect)
Line 14: Line 14:
 
|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
 
}}
 
}}
</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:{{{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
 +
  }}<!--
 +
 
 +
-->{| 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 31: Line 75:
 
|-
 
|-
 
! Industry sector
 
! Industry sector
| [[Industry sector::{{{industry_sector|}}}]]
+
| <ul class="ul-simple">{{#arrayprint: industries
|-
+
      |
! Subindustry
+
      |^^^
| [[Sub-Industry::{{{subindustry|}}}]]
+
      |<li>{{#replace:^^^|>|&#32;>&#32;}}</li><!--
 +
-->{{#set:
 +
      |Industry sector={{#explode:^^^|>|0}}
 +
      |Sub-Industry={{#explode:^^^|>|1}}
 +
    }}
 +
  }}</ul>
 
|}
 
|}
  

Revision as of 06:50, 10 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:

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

James C. Fetzer Agency WR19170330p4.png

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