Template:GR Can't find: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<br>
<br>
{{#if: {{{Section heading|}}}|  <!-- if not using generic header for section -->
=== What else you can try: ===
=== {{{Section heading|}}}: ===
<!-- <p style="font-size:15px">'''{{{Section heading|}}}'''</p> -->
|=== Why Can't I Find the Record? ===
<!--<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|
{{GR print link|Search link=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s#Additional Online Resources|Additional online resources]]|}}<nowiki/>
Number of search links=4| 
{{GR print link|Search link=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s#Substitute Records|Substitute records]]|}}<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#Improve Searching|Improve searching]]|}}<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#Research Help|Research Help]]|}}<nowiki/>
Search link 3=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s#Improve searching|Improve searching]]|
{{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 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 Vital type -->
}}<nowiki></nowiki>
}}<!-- end if Location -->
|}} <!-- end if Vital type -->
{{#vardefine: i | 1}}{{#while:|{{{Search link {{#var: i}} |}}}|<nowiki/>
| <!-- else, location not defined and links are passed to this templates -->
{{GR print link|Search link={{{Search link {{#var:i}}|}}}|}}<nowiki/>
{{GR print link|
{{#vardefine:i|{{#expr: {{#var: i }} + 1 }}}}<nowiki/>
Number of search links={{{Number of search links|}}}|
}}<nowiki/> <!-- end while loop -->
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 36: Line 23:
   Search link 1=|
   Search link 1=|
   Search link 2=|  
   Search link 2=|  
   Search link 3=| <-- Currently handles up to 5 Search links (need extension:variable to change)-->
   Search link 3=|   <!-- make sure not to include Location and Vital Type when sending separate links.
    .
    .
    .
  }}</nowiki>
  }}</nowiki>
:'''Code example 2''':  
:'''Code example 2''':  
Line 45: Line 35:
   Location=Ohio|
   Location=Ohio|
   Vital type=Birth|  
   Vital type=Birth|  
}}</nowiki></noinclude>
}}</nowiki>
<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>
Approver, Batcheditor, Moderator, Patroller, Protector, Reviewer, Bots, Bureaucrats, editor, Interface administrators, pagecreator, pagedeleter, Page Ownership admin, Push subscription managers, smwadministrator, smwcurator, smweditor, Suppressors, Administrators, Upload Wizard campaign editors, Widget editors
795,753

edits