Talk:Non-US frequently asked questions

Python section generation
The following Python script creates the FAQs section.

If Python is not available locally, run the script online with Repl.it, or similar. For example, for Repl.it, copy-and-paste the code into the source code editing window (left panel), and press "Run>". The output window (right panel) will contain the section formatted in wikitext.

There is a more conventional approach
I realize that wiki markup is not the best syntax in the world but introducing another programming language will just make this harder, not easier, to maintain. On Wikipedia, they have Template:FAQ that we could import. Two advantages to this approach, no additional syntax/language knowledge is required and second the Bogleheads wiki would benefit from consistency with Wikipedia's approach. --Peculiar Investor 14:24, 9 February 2021 (EST)
 * Unless I'm missing something, the top-level Template:FAQ appears to be designed primarily for use as a small component of a larger page, rather than for creating a complete FAQ page. In particular, to use it to its fullest requires a sub-page, and pages in Main cannot have sub-pages. Cobbling together something out of its lower-level components seems possible though, perhaps a bunch of Template:FAQ rows, within either a simple collapsible table or Template:FAQ group start and Template:FAQ group end.
 * I dislike the visuals of the styles these templates use. For example, their relentless use of bold for all questions and group headings will be tiring when spread over an entire page. Some of that can I think be tailored by changing 'FAQ .../styles.css', but not all.
 * Given that none these three templates seems to be terribly complicated though, one option would be to roll our own private versions. In practice, I think we could manage perfectly well with just a home-grown version of 'FAQ row', since that is where all the the maintenance. Not quite as congruent with Wikipedia, and some user convenience compromises compared to a Python generator program, but maintainable without having to edit and run Python. --TedSwippet 05:26, 10 February 2021 (EST)
 * Addendum. The most recent page version renders using only Mediawiki features; no further Python requirement. --TedSwippet 17:20, 10 February 2021 (EST)