Template:Libraries and Societies: Difference between revisions

From FamilySearch Wiki
No edit summary
(Added to Category To Be Reviewed.)
 
(33 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "Libraries and Societies" template.
This is the "Libraries and Societies" template.
</noinclude><includeonly>
{{#cargo_declare:_table=Libraries_and_Societies
|Title=String
|Image=File
|Description=Text
|Email=Email
|Website=URL
|Contact_Form=URL
|Newsletter=URL
|Facebook=URL
|Twitter=URL
|Instagram=URL
|Membership=Text
|Address=String
|Directions_Link=String
|Directions_URL=URL
|Directions=Text
|Coordinates=Coordinates
|Mailing_Address=String
|Phone=String
|Phone_2=String
|Other_Contact=String
|Events_Link=String
|Events_URL=URL
|Events_Description=Text
|Hours_Link=String
|Hours_URL=URL
|Hours=Text
|Closures=Text
|Services=Text
|Hardware_Software=Text
|Current_projects=Text
|Online_Collections=List (,) of String
|Approval=String
}}
</noinclude><includeonly>{{#cargo_store:_table=Libraries_and_Societies
|Title={{{Title|}}}
|Image={{{Image|}}}
|Description={{{Description|}}}
|Email={{{Email|}}}
|Website={{{Website|}}}
|Contact_Form={{{Contact Form|}}}
|Newsletter={{{Newsletter|}}}
|Facebook={{{Facebook|}}}
|Twitter={{{Twitter|}}}
|Instagram={{{Instagram|}}}
|Membership={{{Membership|}}}
|Address={{{Address|}}}
|Directions_Link={{{Directions Link|}}}
|Directions_URL={{{Directions URL|}}}
|Directions={{{Directions|}}}
|Coordinates={{{Coordinates|}}}
|Mailing_Address={{{Mailing Address|}}}
|Phone={{{Phone|}}}
|Phone_2={{{Phone 2|}}}
|Other_Contact={{{Other Contact|}}}
|Events_Link={{{Events Link|}}}
|Events_URL={{{Events URL|}}}
|Events_Description={{{Events Description|}}}
|Hours_Link={{{Hours Link|}}}
|Hours_URL={{{Hours URL|}}}
|Hours={{{Hours|}}}
|Closures={{{Closures|}}}
|Services={{{Services|}}}
|Hardware_Software={{{Hardware Software|}}}
|Current_projects={{{Current projects|}}}
|Online_Collections={{{Online Collections|}}}
|Approval={{{Approval|}}}
}}
<!-- Info boxes row #1 -->
{{Libraries and Societies section
| Section Title =
| Section Content =
 
{{Libraries and Societies resources
| Resources Title = About Us
| Resources Content =
* {{ #if: {{{Website|}}} | Website: {{{Website|}}} }}
* {{ #if: {{{Newsletter|}}} | Blog/Newsletter: {{{Newsletter|}}} }}
{{{Description|}}}
{{{Description|}}}
<!-- NAVIGATION -->
}}
<div style="display: flex; flex-flow: row wrap; justify-content: center; align-items: center; margin-bottom:1em;">
 
<div style="margin: .5em .5em 0; flex: 1; text-align: center;" class="fs-button">{{ #if: {{{Website|}}} | [{{{Website|}}} Website] }}</div>
{{Libraries and Societies resources
<div style="margin: .5em .5em 0; flex: 1; text-align: center;" class="fs-button">[[#Our Resources|Our Resources]]</div>
| Resources Title = Contact Us
<div style="margin: .5em .5em 0; flex: 1; text-align: center;" class="fs-button">{{ #if: {{{Events URL|}}} | [{{{Events URL|}}} Classes and Events] | [[#Classes and Events|Classes and Events]] }}
| Resources Content =
* {{ #if: {{{Website|}}} | Website: {{{Website|}}} }}
* {{ #if: {{{Email|}}} | Email: [mailto:{{{Email|}}} {{{Email|}}}] }}
* {{ #if: {{{Contact Form|}}} | Contact Us Form: {{{Contact Form|}}} }}
* {{ #if: {{{Phone|}}} | Phone: {{{Phone|}}} }}
* {{ #if: {{{Phone 2|}}} | Phone: {{{Phone 2|}}} }}
{{ #if: {{{Mailing Address|}}} |
* Mailing Address: {{{Mailing Address|}}} }}
{{ #if: {{{Other Contact|}}} |
* Other Contact: [{{{Other Contact|}}} Other Contact] }}
* Social Media:
<div style="display:flex; flex-wrap:nowrap; justify-content:space-evenly; max-width:300px;">
<div style="margin:5px; text-align:center;">{{#if: {{{Facebook|}}} | [[File:Facebook-Logo.png|50xpx|link={{{Facebook|}}}]] | [[File:Facebook-Logo-Grey.png|50xpx|link=]] }}</div>
<div style="margin:5px; text-align:center;">{{#if: {{{Instagram|}}} | [[File:Instagram-Logo.png|50xpx|link={{{Instagram|}}}]] | [[File:Instagram-Logo-Grey.png|50xpx|link=]] }}</div>
<div style="margin:5px; text-align:center;">{{#if: {{{Twitter|}}} | [[File:Twitter-Logo.png|50xpx|link={{{Twitter|}}}]] | [[File:Twitter-Logo-Grey.png|50xpx|link=]] }}</div>
</div>
</div>
</div>
}}
<!-- END NAVIGATION -->
 
<!-- Info boxes -->
{{Libraries and Societies resources
| Resources Title = {{PAGENAME}}
| Resources Content =
{{{!}} style="text-align:center; margin:auto;"
{{!}}-
{{!}} <center>{{ #if: {{{Image|}}} | [[{{{Image|}}}|250px]] | [[File:Construction-icon-blue.png|250px|link=]] }}</center>
{{!}}}
}}
}}
<!-- END Info boxes row #1 -->
 
<!-- Info boxes row #2 -->
{{Libraries and Societies section
{{Libraries and Societies section
| Section Title =  
| Section Title =  
| Section Content = {{Libraries and Societies resources
| Section Content =  
| Resources Title = Contact Us
 
{{Libraries and Societies resources
| Resources Title = Resources/Services
| Resources Content =
| Resources Content =
'''Email''': {{ #if: {{{Email|}}} | [mailto:{{{Email|}}} {{{Email|}}}] }}<br>
* {{ #if: {{{Membership|}}} | * Membership:
'''Telephone''': {{ #if: {{{Phone|}}} | {{{Phone|}}} }}<br>
<div style="margin:-20px 0 0 50px; white-space:pre-wrap;">
{{ #if: {{{Phone 2|}}} | '''Telephone 2''': {{{Phone 2|}}}<br> }}
{{ #if: {{{Membership|}}} | {{{Membership|}}} }}
{{ #if: {{{Newsletter|}}} | [{{{Newsletter|}}} Newsletter]<br> }}
</div> }}
{{ #if: {{{Facebook|}}} | [{{{Facebook|}}} Facebook]<br> }}
* {{ #if: {{{Services|}}} | * Research Services:
{{ #if: {{{Other Contact|}}} | [{{{Other Contact|}}} Other Contact]<br> }}
<div style="margin:-20px 0 0 50px; white-space:pre-wrap;">
'''Physical Address''':<br>
{{ #if: {{{Services|}}} | {{{Services|}}} }}
{{ #if: {{{Address|}}} | <span style="overflow-wrap: break-word; word-wrap: break-word; -ms-word-break: break-all; word-break: break-word;">[https://www.google.com/maps/dir/Current+Location/{{#replace:{{urlencode:{{{Address|}}}|QUERY}}|%0A|}} {{#replace:{{#replace:{{urlencode:{{{Address|}}}|WIKI}}|%0A|}}|_|<nowiki/> <nowiki/>}}]</span><br>}}
</div> }}
'''Mailing Address''':<br>
* {{ #if: {{{Hardware Software|}}} | * Scanners:
{{ #if: {{{Mailing Address|}}} | {{{Mailing Address|}}}<br>}}
<div style="margin:-20px 0 0 50px; white-space:pre-wrap;">
'''Directions''':<br>
{{ #if: {{{Hardware Software|}}} | {{{Hardware Software|}}} }}
{{ #if: {{{Directions|}}} | {{{Directions|}}} }}
</div> }}
* {{ #if: {{{Events URL|}}} | [{{{Events URL|}}} Classes Link] }}
* {{ #if: {{{Events Description|}}} | * Classes:
<div style="margin:-20px 0 0 50px; white-space:pre-wrap;">
{{ #if: {{{Events Description|}}} | {{{Events Description|}}} }}
</div> }}
}}
}}
{{Libraries and Societies resources
{{Libraries and Societies resources
| Resources Title = Hours/Closures
| Resources Title = Visit Us
| Resources Content =
| Resources Content =
'''Hours''':<br>
* Physical Address: {{ #if: {{{Address|}}} | [https://www.google.com/maps/dir/Current+Location/{{#replace:{{urlencode:{{{Address|}}}|QUERY}}|%0A|}} {{#replace:{{#replace:{{urlencode:{{{Address|}}}|WIKI}}|%0A|}}|_|<nowiki/> <nowiki/>}}] }}<br><br>
<div style="margin:-30px 0 -30px 0; white-space:pre-wrap;">
* Directions: {{ #if: {{{Directions URL|}}} | {{{Directions URL|}}} }}
{{ #if: {{{Directions|}}} |
<div style="margin:-20px 0 0 50px; white-space:pre-wrap;">
{{{Directions|}}}
</div> }}
* Hours: {{ #if: {{{Hours URL|}}} | {{{Hours URL|}}} }}
{{ #if: {{{Hours|}}} |
<div style="margin:-20px 0 0 50px; white-space:pre-wrap;">
{{{Hours|}}}
{{{Hours|}}}
</div><br>
</div>
'''Closures''':<br>
* Closures:
<div style="margin:-20px 0 0 50px; white-space:pre-wrap;">
{{{Closures|}}}
{{{Closures|}}}
</div>
}}
}}
}}


{{Libraries and Societies resources
{{Libraries and Societies resources
| Resources Title = Our Location
| Resources Title = Map
| Resources Content =
| Resources Content =
<center>{{ #if: {{{Image|}}} | [[{{{Image|}}}|250px]]}}</center>
<center>{{#cargo_display_map:point={{{Coordinates|}}}|width=400px|service=googlemaps}}</center><br><br>
<center>'''[https://www.familysearch.org/centers/locations/ Other FamilySearch Affiliates nearby]'''</center>
}}
}}
}}
}}
<!-- END Info boxes -->
<!-- END Info boxes row #2 -->


==Our Resources==
<!-- Info boxes row #3 (full row) -->
{| style="float:right; margin-right:25px"
{{Libraries and Societies section
|-
| Section Title =  
| style="padding-right:0px" |
| Section Content =  
|{{#cargo_display_map:point={{{Coordinates|}}}|width=400px|format=leaflet}}<br><br>
<center>'''[https://www.familysearch.org/centers/locations/ Other FamilySearch Affiliates nearby]'''</center>
|}
===Online Collections===
{{{Online Collections|}}}


===Other Collections===
{{Libraries and Societies resources
====Services (genealogy)====
| Resources Title = Genealogy Collections
{{{Services|}}}
| Resources Content =


====Genealogical/Featured Collections====
<div style="display:flex; flex-wrap:wrap; justify-content:center;"> <!-- Genealogy row -->
{{{Collections|}}}
<div style="margin:5px; text-align:left; flex: 1 1 150px;"> <!-- Genealogy column left -->
'''Online:'''
{{#cargo_query:table=OnlineCollectionsForm|fields=Display|where=_pageName="{{PAGENAME}}" AND Location="Online"|default=|format=ul}}
</div> <!-- END Genealogy column left -->
<div style="margin:5px; text-align:left; flex: 1 1 150px;"> <!-- Genealogy column right -->
'''Onsite:'''
{{#cargo_query:table=OnlineCollectionsForm|fields=Display|where=_pageName="{{PAGENAME}}" AND Location="Onsite"|default=|format=ul}}
</div> <!-- END Genealogy column right -->
</div> <!-- END Genealogy row -->
}}


===Additional Resources===
{{Libraries and Societies resources
====Online databases/collections/software====
| Resources Title = More Details
{{{Online services|}}}
| Resources Content =
<div style="margin:-20px 0 0 50px; white-space:pre-wrap;">
{{{Current projects|}}}
</div>


====Hardware and software====
}}
{{{Hardware Software|}}}
}}
<!-- END Info boxes row #3 (full row) -->




==Current projects==
{{{Current projects|}}}
{{ #if: {{{Events Description|}}} |
==Classes and Events==
}}
{{{Events Description|}}}


[[Category:Libraries and Societies Form]]
[[Category:Libraries and Societies Form]]
{{#ifeq: {{{Approval|}}} | No | [[Category:To Be Reviewed]] }}
{{DISPLAYTITLE:{{{Title|}}} }}
{{DISPLAYTITLE:{{{Title|}}} }}
__NOTOC__
__NOTOC__

Latest revision as of 16:54, 22 March 2023

This is the "Libraries and Societies" template. This template defines the table "Libraries_and_Societies". View table.