Template:GR Page header and text: Difference between revisions

From FamilySearch Wiki
(added call to template to create survey button on each GuidedResearch page)
(updated to reflect latest version of wiki (1.32.1) by replacing <h1> with {{DISPLAYTITLE: ______ }})
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__
{{GR button main}}
{{GR button main}}
{{#switch: {{lc:{{{Page type|}}} }} |
{{#switch: {{lc:{{{Page type|}}} }} |
guided research={{#if: {{{Page title|}}}|<h1 id="firstHeading" class="firstHeading" lang="en">{{{Page title|}}}</h1>|
guided research={{#if: {{{Page title|}}}|{{DISPLAYTITLE:{{{Page title|}}} }}|
   <h1 id="firstHeading" class="firstHeading" lang="en">{{{Location|}}} Guided Research</h1>
   {{DISPLAYTITLE:{{{Location|}}} Guided Research}}
   |<nowiki></nowiki>}}
   |<nowiki></nowiki>}}
   {{#if: {{{Page text|}}}|<p>{{{Page text|}}}</p>|
   {{#if: {{{Page text|}}}|<p>{{{Page text|}}}</p>|
Line 30: Line 9:
   |<nowiki></nowiki>}}
   |<nowiki></nowiki>}}
|
|
guidedresearch={{#if: {{{Page title|}}}|<h1 id="firstHeading" class="firstHeading" lang="en">{{{Page title|}}}</h1>|
guidedresearch={{#if: {{{Page title|}}}|{{DISPLAYTITLE:{{{Page title|}}} }}|
   <h1 id="firstHeading" class="firstHeading" lang="en">{{{Location|}}} Guided Research</h1>
   {{DISPLAYTITLE:{{{Location|}}} Guided Research}}
   |<nowiki></nowiki>}}
   |<nowiki></nowiki>}}
   {{#if: {{{Page text|}}}|<p>{{{Page text|}}}</p>|
   {{#if: {{{Page text|}}}|<p>{{{Page text|}}}</p>|
Line 40: Line 19:
can't find=
can't find=
{{{Location|}}} Births - Why can't I find a record?
{{{Location|}}} Births - Why can't I find a record?
   {{#if: {{{Page title|}}}|<h1 id="firstHeading" class="firstHeading" lang="en">{{{Page title|}}}</h1>|
   {{#if: {{{Page title|}}}|{{DISPLAYTITLE:{{{Page title|}}} }}|
   <h1 id="firstHeading" class="firstHeading" lang="en">{{{Location|}}} {{{Vital type}}} - Why can't I find a record?</h1>
   {{DISPLAYTITLE:{{{Location|}}} {{{Vital type}}} - Why can't I find a record?}}
   |<nowiki></nowiki>}}
   |<nowiki></nowiki>}}
   {{#if: {{{Page text|}}}|<p>{{{Page text|}}}</p>|
   {{#if: {{{Page text|}}}|<p>{{{Page text|}}}</p>|

Revision as of 12:57, 21 May 2019