Difference between revisions of "Template:Newspaper ad"

From Wayne County, Ohio Online Resource Center
Jump to navigation Jump to search
Line 15: Line 15:
 
}}
 
}}
 
</noinclude><includeonly><!--
 
</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
 
-->{{#arraydefine: industries
Line 61: Line 39:
 
  |Media category={{NAMESPACE}}
 
  |Media category={{NAMESPACE}}
 
  |Organization name={{{organization_name|}}}|+sep=;
 
  |Organization name={{{organization_name|}}}|+sep=;
  |Has date={{#var: date}}
+
  |Has date={{{date|}}}
  |Year={{{year|}}}
+
  |Year={{#if:{{{date|}}}|{{#time:Y|{{{date|}}}}}}}
 
  |Authored by={{{author|}}}|+sep=;
 
  |Authored by={{{author|}}}|+sep=;
 
  |Newspaper title={{{newspaper_title|}}}
 
  |Newspaper title={{{newspaper_title|}}}

Revision as of 07:53, 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
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