Template:CountryButtonGroup: Difference between revisions

From FamilySearch Wiki
m (Text replacement - "(hardcoded)" to "(''hardcoded'')")
Tag: Reverted
m (Text replacement - "''(hard)coded''" to "$1coded")
Tag: Manual revert
Line 8: Line 8:
<noinclude>
<noinclude>
== Description ==
== Description ==
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.
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 ==
== Usage ==

Revision as of 14:14, 16 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.