Skip to content

Show a template's documentation and its text on its own page - #51

Merged
bonelifer merged 1 commit into
mainfrom
feature/wiki-template-page
Oct 13, 2026
Merged

bonelifer merged 1 commit into
mainfrom
feature/wiki-template-page

Conversation

@bonelifer

Copy link
Copy Markdown
Contributor

The page of a Template: article now makes sense. It used to show <noinclude> as text and work out its own calls with no parameters, so an infobox template showed up scrambled.

  • Documentation. What stands inside <noinclude> is shown as the page's text, rendered like an article, with its calls worked out so it can show examples.
  • Template text. Below it, the text an article gets (the page without <noinclude>, and with <includeonly> tags removed) is shown in a code box as it is written, not worked out.
  • Use count. A line says how many articles use the template ("Used in 1 article.", or "Not used in any article yet."). What links here still lists them.
  • <includeonly> text is left off the page, and no <noinclude> or <includeonly> tag is shown. Ordinary articles are unchanged.
  • README and the TODO plan are updated.

Tests

  • Unit tests: 221 tests, 514 assertions, all pass. New case for reading the documentation parts.
  • A new browser test passes 9 of 9 on phpBB 3.3.19 with SQLite, 4.0.0-a3-dev with SQLite and PostgreSQL 16, and on MySQL 8.0 as well; it covers documentation with a live example, the unworked template text, the use count and the list, an ordinary article, and an unused template.
  • The earlier template browser test (its check of the template page updated) passes on all four boards.

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

The page of a Template: article showed <noinclude> as text and worked out its own calls
with no parameters. It now shows the documentation (the noinclude parts, with their
calls worked out so they can show examples), then the template text as written, and how
many articles use it. includeonly text is left off the page.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@bonelifer
bonelifer merged commit 34e2874 into main Oct 13, 2026
58 checks passed
@bonelifer
bonelifer deleted the feature/wiki-template-page branch October 13, 2026 01:39
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