Difference between revisions of "Template:Newspaper ad"
Jump to navigation
Jump to search
Line 69: | Line 69: | ||
|Has image={{#if:{{{image|}}}|File:{{PAGENAME:{{{image|}}}}}}} | |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:{{{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:^^^|>| > }}</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="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;" |
Revision as of 10: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
- Newspaper title
- Wooster Republican
- Date of publication
- 1917-03-30
- Organization
- Industry
- Finance and Insurance > Insurance Carriers and Related Activities
Newspaper ad | |
---|---|
Organization name | |
Date of publication | 1917-03-30 |
Newspaper title | Wooster Republican |
Page number | 4 |
Industry sector |
|
40x218 feet, good shade, next to alley and sewer all paid