Template:GR Can't find: Difference between revisions

From FamilySearch Wiki
No edit summary
No edit summary
(30 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<br>
<br>
=== What else you can try: ===
{{#if: {{{Section heading|}}}|  <!-- if not using generic header for section -->
<p style="font-size:15px">'''{{{Section heading|}}}'''</p>
|<p style="font-size:15px">'''Why Can't I Find the Record?'''</p>
|}}<nowiki></nowiki>
{{#if: {{{Location|}}}|  <!-- if you want 4 generic links, send Location and Vital type -->
{{#if: {{{Location|}}}|  <!-- if you want 4 generic links, send Location and Vital type -->
   {{#if: {{{Vital type|}}}|
   {{#if: {{{Vital type|}}}|
{{GR print link|Search link=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s#Additional Online Resources|Additional online resources]]|}}<nowiki/>
{{GR print link|
{{GR print link|Search link=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s#Substitute Records|Substitute records]]|}}<nowiki/>
Number of search links=4| 
{{GR print link|Search link=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s#Improve Searching|Improve searching]]|}}<nowiki/>
Search link 1=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s #Additional Records|Additional records]]|
{{GR print link|Search link=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s#Research Help|Research Help]]|}}<nowiki/>
Search link 2=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s#Substitute Records|Substitute records]]|
{{GR print link|Search link=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s#Why the Record may not Exist|Why the record may not exist]]|}}<nowiki/>
Search link 3=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s#Improve searching|Improve searching]]|
|}}<!-- end if Vital type -->
Search link 4=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s#Why the record may not exist|Why the record may not exist]]|
}}<!-- end if Location -->
}}<nowiki></nowiki>
{{#vardefine: i | 1}}{{#while:|{{{Search link {{#var: i}} |}}}|<nowiki/>
|}} <!-- end if Vital type -->
{{GR print link|Search link={{{Search link {{#var:i}}|}}}|}}<nowiki/>
| <!-- else, location not defined and links are passed to this templates -->
{{#vardefine:i|{{#expr: {{#var: i }} + 1 }}}}<nowiki/>
{{GR print link|
}}<nowiki/> <!-- end while loop -->
Number of search links={{{Number of search links|}}}|
Search link 1={{{Search link 1|}}}|
Search link 2={{{Search link 2|}}}|
Search link 3={{{Search link 3|}}}|
Search link 4={{{Search link 4|}}}|
Search link 5={{{Search link 5|}}}|
}}<nowiki></nowiki>
|}}<nowiki></nowiki>
<noinclude>
<noinclude>
:'''Code example 1''':  
:'''Code example 1''':  
  <nowiki>
  <nowiki>
If you wish to use your own links in this section, use the following:
If you wish to use your own links in this section, use the following:
Line 23: Line 34:
   Search link 1=|
   Search link 1=|
   Search link 2=|  
   Search link 2=|  
   Search link 3=|   <!-- make sure not to include Location and Vital Type when sending separate links.
   Search link 3=| <-- Currently handles up to 5 Search links (need extension:variable to change)-->
    .
    .
    .
  }}</nowiki>
  }}</nowiki>
:'''Code example 2''':  
:'''Code example 2''':  
Line 35: Line 43:
   Location=Ohio|
   Location=Ohio|
   Vital type=Birth|  
   Vital type=Birth|  
}}</nowiki>
}}</nowiki></noinclude>
<templatedata>
{
"params": {
"Location": {
"label": "Location",
"description": "The location of the GuidedResearch page.  ONLY send this parameter if you are not sending specific links.",
"example": "Location=Texas  or Location={{PAGENAME}}",
"type": "string",
"default": "null",
"autovalue": "null"
},
"Vital type": {
"label": "Vital type",
"description": "The Vital type that these links will exist in (Birth, Marriage or Death)",
"example": "Vital type=Marriage",
"type": "string",
"default": "null",
"autovalue": "null"
},
"Search link 1": {
"label": "Search link 1",
"description": "If not using the generic links for this section, you need to send specific links.  It's important NOT to send the Location parameter when sending specific links.",
"example": "Search link 1=[[url to page|Name of link]]",
"type": "string",
"default": "null",
"autovalue": "null"
},
"Search link 'n'": {
"label": "Search link 2, Search link 3, etc.",
"description": "As many links as needed in the 'What else you can try' section",
"example": "Search link 2=[[URL to page|Name of link]]",
"type": "string",
"default": "null",
"autovalue": "null"
}
},
"description": "Template:GR Can't find - creates the section 'What else can you can try' on the GuidedResearch pages.  If generic links are to be used for the 4 different links ('Additional Online Resources', 'Substitute records', 'Improve searching', 'Why the record may not exist'), then simply pass in the parameters 'Location' and 'Vital type'.  Otherwise, pass in the detailed links to be used in 'Search link #'."
}
</templatedata>
</noinclude>
<noinclude>[[Category:Guided Research]][[Category:Guided Research Templates]]</noinclude>

Revision as of 19:57, 19 June 2018


Why Can't I Find the Record?

Code example 1:
If you wish to use your own links in this section, use the following:

{{GR Can't find|
  Number of search links=1| 
  Search link 1=|
  Search link 2=| 
  Search link 3=| <-- Currently handles up to 5 Search links (need extension:variable to change)-->
 }}
Code example 2:
If you wish to use the predefined links in this section, only pass Location and Vital type:

{{GR Can't find|
  Location=Ohio|
  Vital type=Birth| 
}}