Template:FS AfLib/doc: Difference between revisions

From FamilySearch Wiki
Line 21: Line 21:


== Sample Code ==
== Sample Code ==
The sample below includes a URL for the society. This data was not supplied with the original data used to populate this template. It is included here only for reference.
<PRE>
<PRE>
{{FS_AfLib
{{FS_AfLib
Line 29: Line 30:
|State=ACT
|State=ACT
|PostCode=  
|PostCode=  
|URL= [https://www.familysearch.org https://www.familysearch.org] }}
|URL= [https://familyhistoryact.org.au/ https://familyhistoryact.org.au/] }}
</PRE>
</PRE>


You can also create the template and parameters as a long string of text:
You can also create the template and parameters as a long string of text:
<PRE>
<PRE>
{{FS_AfLib|Name=Heraldry & Gen. Soc. Of Canberra|Address=Cook Community Hub|Address2= |City=Cook|State=ACT|PostCode= 2614 |URL= [https://www.familysearch.org https://www.familysearch.org] }}
{{FS_AfLib|Name=Heraldry & Gen. Soc. Of Canberra|Address=Cook Community Hub|Address2= |City=Cook|State=ACT|PostCode= 2614 |URL= [https://familyhistoryact.org.au/ https://familyhistoryact.org.au/] }}
</PRE>
</PRE>


== Categories ==
== Categories ==
This template creates the category FamilySearch Affiliate Library on the pages where it is used.
This template creates the category FamilySearch Affiliate Library on the pages where it is used.

Revision as of 14:38, 25 March 2019

Usage[edit source]

This category is used to display the names and contact information for FamilySearch Affiliate Libraries.

The template should be placed on the appropriate state or country Libraries and Archives pages and on the county page where the affiliate library is located.

Entries should go at the end of the article in a level 3 header called FamilySearch Affiliate Libraries.

Parameters[edit source]

This template takes the following parameters:

  • Name - name of the affiliate library
  • Address - main street address
  • Address2 - secondary address
  • City - city
  • State - state
  • PostCode - postal delivery code (or ZIP Code in the USA)
  • URL - website of the affiliate library

If the Address2 or URL parameter is NULL the template will supress the line from displaying. All other values will appear as they are entered into the template.

The data that initially supplied the information to populate the template did not contain a value for the URL parameter.

Sample Code[edit source]

The sample below includes a URL for the society. This data was not supplied with the original data used to populate this template. It is included here only for reference.

{{FS_AfLib
|Name=Heraldry & Gen. Soc. Of Canberra
|Address=Cook Community Hub
|Address2= 
|City=Cook
|State=ACT
|PostCode= 
|URL= [https://familyhistoryact.org.au/ https://familyhistoryact.org.au/] }}

You can also create the template and parameters as a long string of text:

{{FS_AfLib|Name=Heraldry & Gen. Soc. Of Canberra|Address=Cook Community Hub|Address2= |City=Cook|State=ACT|PostCode= 2614 |URL= [https://familyhistoryact.org.au/ https://familyhistoryact.org.au/] }}

Categories[edit source]

This template creates the category FamilySearch Affiliate Library on the pages where it is used.