Skip to content

Add Nowrap, and keep template calls out of header text - #10

Merged
bonelifer merged 1 commit into
mainfrom
nowrap
Oct 14, 2026
Merged

bonelifer merged 1 commit into
mainfrom
nowrap

Conversation

@bonelifer

Copy link
Copy Markdown
Contributor

Nowrap

Template calls in headers

  • A template's header is the documentation on its page on a board, so a template call written in it is run there. Changes lines that mentioned #if, #replace, SITENAME and the In use template inside braces would have shown wrong text, or a link to a missing template. They now name them in plain words.
  • The "Needs adapting" flag fetch_template.py writes is now "Lua (#invoke)".
  • check_headers.py refuses {{ or }} in any header line except Example: and Expect:, with a test. The README explains why.

Claude ran tools/compare_template.py on all twelve templates on the seed-forum wiki board after the change: all 30 examples pass. Claude also checked that Nowrap's output holds non-breaking spaces.


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

🤖 Generated with Claude Code

Nowrap turns every space into a non-breaking one with #replace and an
empty search (phpbb-ext-wiki#65), since the wiki allows no <span>; both
examples match Wikipedia. Marked adapted.

The header is the template page's documentation on a board, so calls in
it run there: Changes lines mentioning {{#if:}}, {{#replace:}},
{{SITENAME}} or {{In use}} now name them in plain words, the Lua flag
fetch_template.py writes is "Lua (#invoke)", and check_headers.py
refuses {{ or }} in any header line but Example and Expect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bonelifer
bonelifer merged commit 6b89730 into main Oct 14, 2026
2 checks passed
@bonelifer
bonelifer deleted the nowrap branch October 14, 2026 21:55
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