Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Ready-made templates for the [phpBB Modders wiki extension](https://github.com/phpbbmodders/phpbb-ext-wiki), adapted from Wikipedia's and other Wikimedia wikis' for what the wiki can do, so a board can start with a useful set instead of writing every template from nothing.

So far [`templates/`](templates/) holds the hatnotes `{{Main}}`, `{{See also}}`, `{{Further}}`, `{{About}}`, `{{Distinguish}}`, `{{For}}`, `{{Other uses}}` and `{{Redirect}}`; the message boxes `{{Ambox}}`, `{{Update}}`, `{{Unreferenced}}`, `{{More citations needed}}`, `{{Primary sources}}`, `{{Cleanup}}`, `{{Confusing}}`, `{{Technical}}`, `{{Expand section}}` and `{{Under construction}}`; the stub boxes `{{Asbox}}` and `{{Stub}}`; the inline helpers `{{Nowrap}}`, `{{Small}}` and `{{Large}}`; and `{{Blockquote}}` (phpBB's quote box) and `{{Template link}}`, which shows a template's name in braces as a link. The plan for this repository is in the wiki extension's [`docs/TODO/todo-wiki-templates-repo.md`](https://github.com/phpbbmodders/phpbb-ext-wiki/blob/main/docs/TODO/todo-wiki-templates-repo.md).
So far [`templates/`](templates/) holds the hatnotes `{{Main}}`, `{{See also}}`, `{{Further}}`, `{{About}}`, `{{Distinguish}}`, `{{For}}`, `{{Other uses}}` and `{{Redirect}}`; the message boxes `{{Ambox}}`, `{{Update}}`, `{{Unreferenced}}`, `{{More citations needed}}`, `{{Primary sources}}`, `{{Cleanup}}`, `{{Confusing}}`, `{{Technical}}`, `{{Expand section}}` and `{{Under construction}}`; the stub boxes `{{Asbox}}` and `{{Stub}}`; the inline helpers `{{Nowrap}}`, `{{Small}}`, `{{Large}}` and `{{Center}}`; and `{{Blockquote}}` (phpBB's quote box) and `{{Template link}}`, which shows a template's name in braces as a link. The plan for this repository is in the wiki extension's [`docs/TODO/todo-wiki-templates-repo.md`](https://github.com/phpbbmodders/phpbb-ext-wiki/blob/main/docs/TODO/todo-wiki-templates-repo.md).

## Why a separate repository

Expand All @@ -14,7 +14,7 @@ Only templates that work as plain wiki text with parameters:

- hatnotes (`{{Main}}`, `{{See also}}`, `{{Further}}`, `{{About}}`);
- message boxes ("needs references", "out of date", "under construction", stub);
- small inline helpers (`{{Nowrap}}`, `{{Small}}`, `{{Large}}`; `{{Center}}` needs a `<div>`, so it's recorded as not adaptable);
- small inline helpers (`{{Nowrap}}`, `{{Small}}`, `{{Large}}`, `{{Center}}`, which needs the wiki extension 1.1.0-a2 or later for `<center>`);
- simplified infobox, citation and navbox templates that take the same parameter names as Wikipedia's.

Left out: Lua modules (`{{#invoke:}}`) and the templates that need them, TemplateStyles (CSS inside a template), and anything whose source page says it is not plain CC BY-SA.
Expand Down
4 changes: 2 additions & 2 deletions data/templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
},
"enwiki:828359": {
"name": "Center",
"reason": "HTML the wiki shows as text: <div>",
"reason": "",
"revid": 1282577637,
"status": "needs adapting",
"status": "adapted",
"title": "Template:Center"
},
"enwiki:994397": {
Expand Down
11 changes: 11 additions & 0 deletions templates/Center.wiki
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<noinclude>
Source: https://en.wikipedia.org/wiki/Template:Center
History: https://en.wikipedia.org/w/index.php?title=Template:Center&action=history
Revision: https://en.wikipedia.org/w/index.php?title=Template:Center&oldid=1282577637 (03/27/2025 8:18 AM UTC)
Adapted by phpBB Modders.
Changes: rewritten with the wiki's center tag, which shows as a centred block, instead of a div with the "center" class; no style option, since the wiki lets no style attribute through; no check for unknown parameters (Lua) or tracking categories; removed the source's documentation and categories.
Example: {{Center|This text is centred.}}
Example: {{Center|[b]A centred heading line[/b]}}
Expect: A centred heading line
Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/
</noinclude><center>{{{1|}}}</center>
Loading