Template:GR sidebar: Difference between revisions

From FamilySearch Wiki
m (category)
((copied from beta) to 'tighten' the vertical layout; extract styles into MediaWiki:Common.css; remove colspan in single column table)
Line 1: Line 1:
{| style="float:right; width:24%; margin-left:10px; border-spacing:0px; border:1px solid gray;position:relative;padding-top:20px; background:white;"
{| class="sidebar"
|-
|-
<!-- | colspan="2" style="text-align:center;background: #87B940; font-size:12pt"|'''{{{Location|}}} Guided Research Additional Help''' -->
! class="sidebar-heading" |{{{Vital type|}}}: What Else Can You Try
 
| colspan="2" style="text-align:center; background: #DCDAD1; font-size:12pt"|'''What Else Can You Try'''
|-
|-
| colspan="2" style="padding:10px;" |  
| style="padding:0 10px;" |  
{{#if: {{{Search link 1|}}}|  <!-- if Search link 1 exists, then print out links -->
{{#if: {{{Search link 1|}}}|  <!-- if Search link 1 exists, then print out links -->
{{#vardefine: i | 1}}{{#while:
{{#vardefine: i | 1}}{{#while:
Line 23: Line 21:
{{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#Why the record may not exist|Why the record may not exist]]}}
|}} <!-- end if Search link 1 -->
|}} <!-- end if Search link 1 -->
|-------
| colspan="2" style="text-align:center; background: #DCDAD1; font-size:12pt"|'''General Research'''
|-
|-
| colspan="2" |  
! class="sidebar-heading" | General Research
*[[{{{Location|}}}|{{{Location|}}} Genealogy]]
|-
|}<noinclude>[[Category:Sidebar templates]][[Category:Templates|Guided Research]][[Category:Guided Research]][[Category:Guided Research Templates]]</noinclude>
|
* [[{{{Location|}}}|{{{Location|}}} Genealogy]]
|}<noinclude>[[Category:Sidebar templates]][[Category:Guided Research Template]]</noinclude>
<noinclude>
<noinclude>
:'''Code example 1''':  
:'''Code example 1''':  

Revision as of 00:43, 20 January 2021

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

{{GR sidebar|
  Location={{PAGENAME}}|  <!-- Note: Vital type is not needed if sending specific links -->
  Search link 1=|
  Search link 2=| 
  Search link 3=| 
 }}
Code example 2:
If you wish to use the predefined links in this section, only pass Location and Vital type:

{{GR sidebar|
  Location={{PAGENAME}}|
  Vital type=Birth| 
}}

Template:GR sidebar - 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 #'.

Template parameters

ParameterDescriptionTypeStatus
LocationLocation

The location of the GuidedResearch page.

Default
null
Example
Location=Texas
Auto value
null
Stringoptional
Vital typeVital type

The Vital type that these links will exist in (Birth, Marriage or Death)

Default
null
Example
Vital type=Marriage
Auto value
null
Stringoptional
Search link 1Search link 1

If not using the generic links for this section, you need to define the links

Default
null
Example
Search link 1=[[url to page|Name of link]]
Auto value
null
Stringoptional
Search link 2, Search link 3, etc.Search link 'n'

As many links as needed in the 'What else you can try' section

Default
null
Example
Search link 2=[[URL to page|Name of link]]
Auto value
null
Stringoptional