Template:CountryButtonGroup: Difference between revisions
Tags: Undo Reverted |
Tags: Undo Reverted |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{CountryButtonGroup | |||
|records_link={{{records_link}}} | |||
|records_text={{{records_text}}} | |||
|started_link={{{started_link}}} | |||
|started_text=Getting<br>Started | |||
}} | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> |
Revision as of 03:23, 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.