Template

Difference between revisions of "Social Snapshot"

From Lacey Green History

 
(27 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
<pre>
 
<pre>
 
{{Social Snapshot
 
{{Social Snapshot
|Headline=
 
 
|Year=
 
|Year=
 +
|Village=
 
|Author=
 
|Author=
 
|Copywrite=
 
|Copywrite=
 
|Theme=
 
|Theme=
 +
|SortKey=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</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>
 +
{| 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>
|-
 
! Headline
 
| [[Has Headline::{{{Headline|}}}]]
 
 
|-
 
|-
 
! Year
 
! Year
Line 32: Line 32:
 
! Theme
 
! Theme
 
| {{#arraymap:{{{Theme|}}}|,|x|[[Has Theme::x]]}}
 
| {{#arraymap:{{{Theme|}}}|,|x|[[Has Theme::x]]}}
 +
|-
 +
! Social Period
 +
| [[Socialperiod::{{{Socialperiod|}}}]]
 +
|}
  
|}
+
{{#ifeq: {{PAGENAMEE}} | Social_Snapshot ||
[[Category:Social Snapshot]]
+
  {{#if: {{{SortKey|}}}
 +
    |
 +
    [[Category:Social Snapshot|{{{SortKey}}}]]
 +
    |
 +
    [[Category:Social Snapshot]]
 +
  }}
 +
  {{#if: {{{Socialperiod|}}}
 +
    |
 +
    {{#if: {{{SortKey|}}}
 +
      |
 +
      [[{{{Socialperiod}}}|{{{SortKey}}}]]
 +
      |
 +
      [[{{{Socialperiod}}}]]
 +
    }}
 +
    |
 +
  }}
 +
}}
 
</includeonly>
 
</includeonly>

Latest revision as of 12:14, 4 October 2020

This is the "Social Snapshot" template. It should be called in the following format:

{{Social Snapshot
|Year=
|Village=
|Author=
|Copywrite=
|Theme=
|SortKey=
}}

Edit the page to see the template text.