Template:CountryButtonGroup: Difference between revisions

(Created page with "<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>")
 
(Undo revision 6304821 by Wikiadmin (talk))
Tag: Undo
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<div style="display:flex; flex-flow:row wrap; justify-content:flex-start; gap:20px;">
<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="online_records_button">[[{{{records_link}}}|{{{records_text}}}]]</div>
Line 4: Line 5:
<div class="red_online_button">[[{{{started_link}}}|{{{started_text}}}]]</div>
<div class="red_online_button">[[{{{started_link}}}|{{{started_text}}}]]</div>
</div>
</div>
</includeonly>
<noinclude>
== 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.
== Usage ==
Copy the following code and replace the parameter values as needed:
<pre>
{{CountryButtonGroup
|records_link=Page Title
|records_text=Display Text
|started_link=Page Title
|started_text=Display Text
}}
</pre>
== Parameters ==
* '''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<br>Started"). Defaults to "Getting Started" if not provided.
== Example ==
<pre>
{{CountryButtonGroup
|records_link=Afghanistan Online Genealogy Records
|records_text=Afghanistan Online Genealogy Records
|started_link=Afghanistan Getting Started
|started_text=Getting<br>Started
}}
</pre>
This will produce a button group with links to "Afghanistan Online Genealogy Records," "Online Research Help," and "Afghanistan Getting Started."
== Notes ==
* 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.
</noinclude>

Latest revision as of 03:24, 17 May 2025


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.

Usage

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

  • 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

{{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

  • 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.