Template:GR Can't find: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(15 intermediate revisions by 2 users not shown)
Line 3: Line 3:
{{#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/><br>
{{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|Search link=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s#Substitute Records|Substitute records]]|}}<nowiki/><br>
{{GR print link|Search link=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s#Substitute Records|Substitute records]]|}}<nowiki/>
{{GR print link|Search link=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s#Improve searching|Improve searching]]|}}<nowiki/><br>
{{GR print link|Search link=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s#Improve Searching|Improve searching]]|}}<nowiki/>
{{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]]}}
{{GR print link|Search link=[[GuidedResearch:Why Can't I Find the Record - {{{Location|}}} {{{Vital type|}}}s#Research Help|Research Help]]|}}<nowiki/>
|}} <!-- end if Vital type -->
{{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/>
| <!-- else, location not defined and links are passed to this templates -->
|}}<!-- end if Vital type -->
{{#vardefine: i | 1}}{{#while:
}}<!-- end if Location -->
| {{{Search link {{#var: i}} |}}}
{{#vardefine: i | 1}}{{#while:|{{{Search link {{#var: i}} |}}}|<nowiki/>
| <nowiki />
{{GR print link|Search link={{{Search link {{#var:i}}|}}}|}}<nowiki/>
|{{#ifexpr: {{#var: i }} > 1 | <br>|}}
{{#vardefine:i|{{#expr: {{#var: i }} + 1 }}}}<nowiki/>
{{GR print link
}}<nowiki/> <!-- end while loop -->
|Search link={{{Search link {{#var:i}}|}}}|}}
{{#vardefine: i
  | {{#expr: {{#var: i }} + 1 }}
}}  
}} <!-- end while loop -->
}} <!-- end if Location -->
<noinclude>
<noinclude>
:'''Code example 1''':  
:'''Code example 1''':  
Line 29: 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 44: Line 41:
"Location": {
"Location": {
"label": "Location",
"label": "Location",
"description": "The location of the GuidedResearch page.  ",
"description": "The location of the GuidedResearch page.  ONLY send this parameter if you are not sending specific links.",
"example": "Location=Texas",
"example": "Location=Texas or Location={{PAGENAME}}",
"type": "string",
"type": "string",
"default": "null",
"default": "null",
Line 60: Line 57:
"Search link 1": {
"Search link 1": {
"label": "Search link 1",
"label": "Search link 1",
"description": "If not using the generic links for this section, you need to define the links",
"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]]",
"example": "Search link 1=[[url to page|Name of link]]",
"type": "string",
"type": "string",
Line 79: Line 76:
</templatedata>
</templatedata>
</noinclude>
</noinclude>
<noinclude>[[Category:Guided Research Templates]]</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