Template:CountryButtonGroup: Difference between revisions

From FamilySearch Wiki
(Undo revision 6304821 by Wikiadmin (talk))
Tag: Undo
m (Text replacement - "<div style="display:flex; flex-flow:row wrap; justify-content:flex-start; gap:20px;">↵<div class="online_records_button">[[{{{records_link}}}|{{{records_text}}}]]</div>↵<div class="community_button">Online<br>Research Help</div>↵<div class="red_online_button">[[{{{started_link}}}|{{{started_text}}}]]</div>↵</div>" to "{{CountryButtonGroup |records_link={{{records_link}}} |records_text={{{records_text}}} |started_link={{{star...)
Tag: Reverted
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="display:flex; flex-flow:row wrap; justify-content:flex-start; gap:20px;">
{{CountryButtonGroup
<div class="online_records_button">[[{{{records_link}}}|{{{records_text}}}]]</div>
|records_link={{{records_link}}}
<div class="community_button">[[Online Research Help|Online<br>Research Help]]</div>
|records_text={{{records_text}}}
<div class="red_online_button">[[{{{started_link}}}|{{{started_text}}}]]</div>
|started_link={{{started_link}}}
</div>
|started_text=Getting<br>Started
}}
 
</includeonly>
</includeonly>
<noinclude>
<noinclude>

Revision as of 03:06, 17 May 2025


Description[edit source]

This template creates a flexible button group for country-specific genealogy pages, displaying three buttons: one for online records, one for online research help (hardcoded), and one for getting started.

Usage[edit source]

Copy the following code and replace the parameter values as needed:

{{CountryButtonGroup
|records_link=Page Title
|records_text=Display Text
|started_link=Page Title
|started_text=Display Text
}}

Parameters[edit source]

  • records_link: The wiki page title for the online records link (e.g., "Afghanistan Online Genealogy Records"). Required.
  • records_text: The display text for the records button (e.g., "Afghanistan Online Genealogy Records"). Defaults to "Online Genealogy Records" if not provided.
  • started_link: The wiki page title for the getting started link (e.g., "Afghanistan Getting Started"). Required.
  • started_text: The display text for the getting started button (e.g., "Getting
    Started"). Defaults to "Getting Started" if not provided.

Example[edit source]

{{CountryButtonGroup
|records_link=Afghanistan Online Genealogy Records
|records_text=Afghanistan Online Genealogy Records
|started_link=Afghanistan Getting Started
|started_text=Getting<br>Started
}}

This will produce a button group with links to "Afghanistan Online Genealogy Records," "Online Research Help," and "Afghanistan Getting Started."

Notes[edit source]

  • The "Online Research Help" button is hardcoded and does not require parameters.
  • If `records_link` or `started_link` is missing, a greyed-out placeholder text will appear.
  • The template uses inline CSS for styling. Ensure the classes `online_records_button`, `community_button`, and `red_online_button` are defined in your wiki's stylesheet.