Template:GR Page header and text: Difference between revisions

(Used to great Guided Research Page Title and paragraph text immediately following the page title.)
 
No edit summary
 
(42 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
<u>Example 1</u>
<nowiki>
{{GR Page header and text|
  Location=Ohio|
  Page type=Guided Research|  <!-- Current options Guided Research and Can't Find-->
}} </nowiki>
   
<u>Example 2</u>
<nowiki>
{{GR Page header and text|
  Location=Ohio|
  Vital type=birth|
  Page type=Can't find|  <!-- Current options Guided Research and Can't Find-->
  Page title=This is a different title|
  Page text=This is different text|
}}     
</nowiki>
</noinclude>
__NOEDITSECTION__
__NOEDITSECTION__
{{#if {{lc:Page title style|"generic"}}|
{{GR button main}}
  <h1 id="firstHeading" class="firstHeading" lang="en">{{{Location|}}} Guided Research</h1>
{{#switch: {{lc:{{{Page type|}}} }} |
|{{#if {{{Page title}}}| <!-- if not generic and Page title is defined -->
guided research={{#if: {{{Page title|}}}| {{New page title|New title={{{Page title|}}}|}} |
  <h1 id="firstHeading" class="firstHeading" lang="en">{{{Page title|}}}</h1>
{{New page title|New title={{{Location|}}} Guided Research|}}
|<p>An Error has occurred: Page title style = {{{Page title style}}} and Page title = {{{Page title}}}<br>
  |<nowiki></nowiki>}}
|<nowiki></nowiki>}}|<nowiki></nowiki>}}
  {{#if: {{{Page text|}}}|<p>{{{Page text|}}}</p>|
{{#if {{lc:Page text style|"generic"}}|
  <p>FamilySearch identified the most complete online indexes for birth, marriage, and death information.</p><br>
<p>FamilySearch identified the most complete online indexes for birth, marriage, and death information.</p><br><br>
  |<nowiki></nowiki>}}
<p style="font-size:20px">'''Which type of information are you looking for?'''</p><br>
|
|{{#if {{{Page text}}}| <!-- if not generic and Page text is defined -->
guidedresearch={{#if: {{{Page title|}}}| {{New page title|New title={{{Page title|}}}| }} |
{{#if: {{{Page text size|}}}|<h{{{Page text size}}}>{{{Page text}}}</h{{{Page text size}}}>|<p>{{{Page text|}}}</p>}}|<nowiki></nowiki>}}|<nowiki></nowiki>}}
{{New page title|New title={{{Location|}}} Guided Research|}}
<noinclude>
  |<nowiki></nowiki>}}
{{GR Page title and text|
  {{#if: {{{Page text|}}}|<p>{{{Page text|}}}</p>|
Location=Ohio|
  <p>FamilySearch identified the most complete online indexes for birth, marriage, and death information.</p><br>
Page title style=generic|   <!-- generic will print 'Location' Guided Research -->
  |<nowiki></nowiki>}}
Page title=|                 <!-- this must not be blank if Page header style is not generic -->
|
Page text style=generic|     <!-- generic will print generic sentence below the page title -->
can't find=
Page text=|                  <!-- this must not be blank if Page text style is not generic -->
{{{Location|}}} Births - Why can't I find a record?
Page text size=}}     <!-- this is only used if non-generic page text, and it is not required. -->
{{#if: {{{Page title|}}}| {{New page title|New title={{{Page title|}}}| }} |
{{New page title|New title={{{Location|}}} {{{Vital type|}}} - Why can't I find a record?|}}
  |<nowiki></nowiki>}}
  {{#if: {{{Page text|}}}|<p>{{{Page text|}}}</p>|
  <p>This page will give you additional guidance and resources to find {{{lc:Vital type|}}} information for your ancestor. Use this page after first completing the {{lc:{{{Vital type|}}}}} section of the  [[GuidedResearch:{{{Location|}}}|{{{Location|}}} Guided Research]] page.</p><br><br>
|<nowiki></nowiki>}}
|<nowiki></nowiki>}} <!-- end switch statement -->


  Section text=FamilySearch identified the most complete online indexes for birth, marriage, and death information.<br><br>
<noinclude>[[Category:templates|Guided Research]][[Category:Guided Research]][[Category:Guided Research Templates]]</noinclude>
<p style="font-size:20px">'''Which type of information are you looking for?'''</p><br>
|[[Category:templates|{{GR Page header and text}}]]
</noinclude>

Latest revision as of 17:03, 24 June 2021

Example 1

{{GR Page header and text|
  Location=Ohio|
  Page type=Guided Research|   <!-- Current options Guided Research and Can't Find-->
}}  
   

Example 2

{{GR Page header and text|
  Location=Ohio|
  Vital type=birth|
  Page type=Can't find|   <!-- Current options Guided Research and Can't Find-->
  Page title=This is a different title|
  Page text=This is different text|
}}