Template

Difference between revisions of "Social Snapshot"

From Lacey Green History

 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the "Social Snapshot infobox" form.
+
This is the "Social Snapshot" template.
To create a page with this form, enter the page name below;
+
It should be called in the following format:
if a page with that name already exists, you will be sent to a form to edit that page.
+
<pre>
 
+
{{Social Snapshot
 
+
|Year=
{{#forminput:form=Social Snapshot infobox}}
+
|Village=
 
+
|Author=
</noinclude><includeonly>
+
|Copywrite=
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
+
|Theme=
{{{for template|Social Snapshot}}}
+
|SortKey=
{| class="formtable"
+
}}
! Year:
+
</pre>
| {{{field|Year}}}
+
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;"
 +
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
 +
|-
 +
! Year
 +
| [[Has Year::{{{Year|}}}]]
 +
|-
 +
! Village
 +
| [[Has Village::{{{Village|}}}]]
 +
|-
 +
! Author
 +
| [[Author::{{{Author|}}}]]
 
|-
 
|-
! Village:
+
! Copywrite
| {{{field|Village}}}
+
| [[Copywrite::{{{Copywrite|}}}]]
 
|-
 
|-
! Theme(s):
+
! Theme
| {{{field|Theme(s)}}}
+
| {{#arraymap:{{{Theme|}}}|,|x|[[Has Theme::x]]}}
 
|-
 
|-
! Family:
+
! Social Period
| {{{field|Family}}}
+
| [[Socialperiod::{{{Socialperiod|}}}]]
 
|}
 
|}
{{{end template}}}
 
 
'''Free text:'''
 
 
{{{standard input|free text|rows=10}}}
 
 
 
{{{standard input|summary}}}
 
 
{{{standard input|minor edit}}} {{{standard input|watch}}}
 
  
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
+
{{#ifeq: {{PAGENAMEE}} | 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.