diff --git a/README.md b/README.md index f273936..76e8d66 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 `
`, 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 `
`); - 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. diff --git a/data/templates.json b/data/templates.json index 229ab86..6fe92ab 100644 --- a/data/templates.json +++ b/data/templates.json @@ -15,9 +15,9 @@ }, "enwiki:828359": { "name": "Center", - "reason": "HTML the wiki shows as text:
", + "reason": "", "revid": 1282577637, - "status": "needs adapting", + "status": "adapted", "title": "Template:Center" }, "enwiki:994397": { diff --git a/templates/Center.wiki b/templates/Center.wiki new file mode 100644 index 0000000..0f5eb91 --- /dev/null +++ b/templates/Center.wiki @@ -0,0 +1,11 @@ + +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/ +
{{{1|}}}
\ No newline at end of file