Skip to content

Add Small and Large, record Center as not adaptable, and catch more in the fetcher - #11

Merged
bonelifer merged 1 commit into
mainfrom
size-templates
Oct 14, 2026
Merged

bonelifer merged 1 commit into
mainfrom
size-templates

Conversation

@bonelifer

Copy link
Copy Markdown
Contributor

Templates

  • Small and Large use phpBB's [size=85] and [size=120] BBCode in place of the <span style="font-size: …%"> the wiki doesn't allow, which gives the same size. Both match Wikipedia's text in compare_template.py, and they're recorded as adapted.
  • Center is recorded as not adaptable: it needs a <div>, and phpBB has no centring BBCode out of the box.

Fetcher

  • HTML other than tables is now flagged under "Needs adapting" (e.g. "HTML the wiki shows as text: "). Center and the size templates came through unflagged before.
  • A name that's only a redirect on the wiki is no longer fetched under the alias. The fetcher prints where it points (e.g. "Smaller: redirects to Template:Small; use 'Small'") and writes nothing. Before, Smaller and Big were fetched as copies of Small and Large, and Small's record entry carried the name "Smaller". Those copies were removed and the record repaired. Asbox, a redirect to Article stub box, stays under the name Wikipedia's stub templates call it by, with its attribution already pointing at Article stub box.
  • 2 new tests.

Claude ran compare_template.py on all 14 templates on the seed-forum wiki board: all 32 examples pass. Claude also checked that every record entry's name matches its title, apart from the Asbox alias.


Investigated and written by Claude on behalf of William Jacoby (bonelifer).

🤖 Generated with Claude Code

…n the fetcher

Small and Large use phpBB's [size=85] and [size=120] BBCode in place of
the <span style="font-size"> the wiki does not allow; both match
Wikipedia's text. Center needs a <div> and phpBB has no centring
BBCode, so it is recorded as not adaptable.

fetch_template.py now flags HTML other than tables (Center and the size
templates came through unflagged), and stops on a name that is only a
redirect on the wiki, saying where it points, instead of writing a copy
under the alias name: Smaller and Big had been fetched as copies of
Small and Large, and Small's record entry carried the name Smaller.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bonelifer
bonelifer merged commit 90bcb5a into main Oct 14, 2026
2 checks passed
@bonelifer
bonelifer deleted the size-templates branch October 14, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant