Template:GuidedResearch Start Here: Difference between revisions

no edit summary
(Created page with "{{#if: {{{Vital type}}} | == Search a {{lc:{{{Vital type}}} }} index == {{plural:{{{Number of search links}}}-1|Search the following database.|For best results, search the fo...")
 
No edit summary
Line 1: Line 1:
{{#if: {{{Vital type}}} |  
<noinclude>
:'''Code example''':
<nowiki>
{{GuidedResearch Start Here|
  Vital type=Birth|
  Number of search links=1|
  Search link 1=|
  Search link 2=|  <!-- etc... -->
}}
</nowiki>
</noinclude>
{{#if: {{{Vital type|}}}|
== Search a {{lc:{{{Vital type}}} }} index ==
== Search a {{lc:{{{Vital type}}} }} index ==
{{plural:{{{Number of search links}}}-1|Search the following database.|For best results, search the following databases in the order listed below.|}}
{{plural:{{{Number of search links}}}-1|Search the following database.|For best results, search the following databases in the order listed below.|}}
=== Start here: ===
=== Start here: ===
<!-- The following needs to be modified so it loops through the Number of search links and outputs the appropriate number of links.  -->
 
{{#if: {{{Search link 1|}}}|*{{{Search link 1}}}|<nowiki></nowiki>}}
{{GuidedResearch print link|
{{#if: {{{Search link 2|}}}|*{{{Search link 2}}}|<nowiki></nowiki>}}
Number of search links={{{Number of search links|}}}|
{{#if: {{{Search link 3|}}}|*{{{Search link 3}}}|<nowiki></nowiki>}}
Search link 1={{{Search link 1|}}}|
{{#if: {{{Search link 4|}}}|*{{{Search link 4}}}|<nowiki></nowiki>}}
Search link 2={{{Search link 2|}}}|
{{#if: {{{Search link 5|}}}|*{{{Search link 5}}}|<nowiki></nowiki>}}
Search link 3={{{Search link 3|}}}|
|<nowiki></nowiki>}}
Search link 4={{{Search link 4|}}}|
Search link 5={{{Search link 5|}}}|}}
<nowiki></nowiki>}} <!-- end original if statement -->
__NOTOC__
__NOTOC__
<noinclude>
<noinclude>
Line 26: Line 39:
:''Vital type'' will be used in creating the heading of the section.  For example, if the Vital type is ''Birth'', the heading will be <br>
:''Vital type'' will be used in creating the heading of the section.  For example, if the Vital type is ''Birth'', the heading will be <br>
:  <h2>Search a birth index</h2>
:  <h2>Search a birth index</h2>
<br>
;Number of search links=|
;Number of search links=|
:''Number of search links'' is used to determine if the description sentence should be singular or plural.  If there is only one search link, the description will be as follows:
:''Number of search links'' is used to determine if the description sentence should be singular or plural.  If there is only one search link, the description will be as follows:
Line 39: Line 51:
;Search link 2=|
;Search link 2=|
;Search link 3=|
;Search link 3=|
:''Search link #'' is the link you wish the user to click, including any text describing that link.  Code that could be used as a link might look like this: <br><br>
:''Search link #'' is the link you wish the user to click, including any text describing that link.  Code that could be used as a link might look like this: <br>
::<nowiki>
::<nowiki>
1800s-2000s: '''<u>[https://www.familysearch.org/search/record/results?count=20&localeSubcountryName=Ohio&query=%2Brecord_country%3A%22United%20States%22%20%2Brecord_subcountry%3A%22United%20States%2COhio%22&collection_id=(1680845%201932106) Ohio Birth Collections by FamilySearch]</u>''' - County births start in 1867 in Ohio; delayed birth records start earlier.
1800s-2000s: '''<u>[https://www.familysearch.org/search/record/results?count=20&localeSubcountryName=Ohio&query=%2Brecord_country%3A%22United%20States%22%20%2Brecord_subcountry%3A%22United%20States%2COhio%22&collection_id=(1680845%201932106) Ohio Birth Collections by FamilySearch]</u>''' - County births start in 1867 in Ohio; delayed birth records start earlier.
Line 48: Line 60:
== Code Example ==
== Code Example ==
Here's an example of code which can be used to call this template.
Here's an example of code which can be used to call this template.
<nowiki>
:'''example''':
<nowiki>
{{GuidedResearch Start Here|
{{GuidedResearch Start Here|
   Vital type=Birth|
   Vital type=Birth|
   Number of search links=1|  
   Number of search links=1|  
   Search link 1=|
   Search link 1=|
   Search link 2=|   <!-- etc... -->
   Search link 2=| <!-- etc... -->
}}
}}
</nowiki>
</nowiki>
</noinclude>
</noinclude>
2,664

edits