From a94260764cac48200e19f7448c146a88b64f9fcf Mon Sep 17 00:00:00 2001 From: William Jacoby Date: Wed, 14 Oct 2026 18:29:43 -0500 Subject: [PATCH] Add 11 templates: hatnotes, message boxes, Blockquote and Template link Hatnotes Distinguish, For, Other uses and Redirect, rewritten without Lua; message boxes Cleanup, Confusing, Technical, Primary sources and Expand section on the Ambox here; Blockquote as phpBB's quote BBCode; and Template link. Every Example line matches English Wikipedia on the seed-forum wiki board, or its Expect line where the difference is deliberate (Wikipedia-only links and talk-page wording). Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- data/templates.json | 81 +++++++++++++++++++++++++++++++++- templates/Blockquote.wiki | 11 +++++ templates/Cleanup.wiki | 14 ++++++ templates/Confusing.wiki | 12 +++++ templates/Distinguish.wiki | 12 +++++ templates/Expand section.wiki | 11 +++++ templates/For.wiki | 11 +++++ templates/Other uses.wiki | 9 ++++ templates/Primary sources.wiki | 12 +++++ templates/Redirect.wiki | 12 +++++ templates/Technical.wiki | 14 ++++++ templates/Template link.wiki | 9 ++++ 13 files changed, 207 insertions(+), 3 deletions(-) create mode 100644 templates/Blockquote.wiki create mode 100644 templates/Cleanup.wiki create mode 100644 templates/Confusing.wiki create mode 100644 templates/Distinguish.wiki create mode 100644 templates/Expand section.wiki create mode 100644 templates/For.wiki create mode 100644 templates/Other uses.wiki create mode 100644 templates/Primary sources.wiki create mode 100644 templates/Redirect.wiki create mode 100644 templates/Technical.wiki create mode 100644 templates/Template link.wiki diff --git a/README.md b/README.md index 8bfea84..f273936 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}}` and `{{About}}`; the message boxes `{{Ambox}}`, `{{Update}}`, `{{Unreferenced}}`, `{{More citations needed}}` and `{{Under construction}}`; the stub boxes `{{Asbox}}` and `{{Stub}}`; and the inline helpers `{{Nowrap}}`, `{{Small}}` and `{{Large}}`. 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}}` 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). ## Why a separate repository diff --git a/data/templates.json b/data/templates.json index f9295b4..229ab86 100644 --- a/data/templates.json +++ b/data/templates.json @@ -1,4 +1,11 @@ { + "enwiki:693634": { + "name": "Other uses", + "reason": "", + "revid": 1284734559, + "status": "adapted", + "title": "Template:Other uses" + }, "enwiki:726079": { "name": "Stub", "reason": "", @@ -8,11 +15,18 @@ }, "enwiki:828359": { "name": "Center", - "reason": "needs a
to centre its text, and phpBB has no centring BBCode out of the box", + "reason": "HTML the wiki shows as text:
", "revid": 1282577637, - "status": "not adaptable", + "status": "needs adapting", "title": "Template:Center" }, + "enwiki:994397": { + "name": "Blockquote", + "reason": "", + "revid": 1317335651, + "status": "adapted", + "title": "Template:Blockquote" + }, "enwiki:1208356": { "name": "Main", "reason": "", @@ -20,6 +34,20 @@ "status": "adapted", "title": "Template:Main" }, + "enwiki:1331291": { + "name": "Technical", + "reason": "", + "revid": 1303524764, + "status": "adapted", + "title": "Template:Technical" + }, + "enwiki:1331311": { + "name": "Confusing", + "reason": "", + "revid": 1264164820, + "status": "adapted", + "title": "Template:Confusing" + }, "enwiki:1440745": { "name": "Unreferenced", "reason": "", @@ -27,6 +55,13 @@ "status": "adapted", "title": "Template:Unreferenced" }, + "enwiki:1487430": { + "name": "Template link", + "reason": "", + "revid": 1270893692, + "status": "adapted", + "title": "Template:Template link" + }, "enwiki:1627975": { "name": "Nowrap", "reason": "", @@ -34,6 +69,13 @@ "status": "adapted", "title": "Template:Nowrap" }, + "enwiki:1649987": { + "name": "Redirect", + "reason": "", + "revid": 827943535, + "status": "adapted", + "title": "Template:Redirect" + }, "enwiki:1721254": { "name": "See also", "reason": "", @@ -55,6 +97,13 @@ "status": "adapted", "title": "Template:Update" }, + "enwiki:1808502": { + "name": "For", + "reason": "", + "revid": 1362897750, + "status": "adapted", + "title": "Template:For" + }, "enwiki:2385304": { "name": "Small", "reason": "", @@ -76,6 +125,34 @@ "status": "adapted", "title": "Template:About" }, + "enwiki:2756747": { + "name": "Primary sources", + "reason": "", + "revid": 1324617792, + "status": "adapted", + "title": "Template:Primary sources" + }, + "enwiki:3406012": { + "name": "Distinguish", + "reason": "", + "revid": 1137476713, + "status": "adapted", + "title": "Template:Distinguish" + }, + "enwiki:6184450": { + "name": "Expand section", + "reason": "", + "revid": 1333246242, + "status": "adapted", + "title": "Template:Expand section" + }, + "enwiki:7215892": { + "name": "Cleanup", + "reason": "", + "revid": 1367072181, + "status": "adapted", + "title": "Template:Cleanup" + }, "enwiki:8183126": { "name": "Large", "reason": "", diff --git a/templates/Blockquote.wiki b/templates/Blockquote.wiki new file mode 100644 index 0000000..95e0097 --- /dev/null +++ b/templates/Blockquote.wiki @@ -0,0 +1,11 @@ + +Source: https://en.wikipedia.org/wiki/Template:Blockquote +History: https://en.wikipedia.org/w/index.php?title=Template:Blockquote&action=history +Revision: https://en.wikipedia.org/w/index.php?title=Template:Blockquote&oldid=1317335651 (10/17/2025 4:04 PM UTC) +Adapted by phpBB Modders. +Changes: rewritten with phpBB's quote BBCode instead of the Lua module (Module:Quotation),
and TemplateStyles the wiki does not have; the author, title and source follow the text after a dash, inside the quote; no character, multiline, style or class options; removed the source's documentation and categories. +Example: {{Blockquote|Wikis are fun.}} +Example: {{Blockquote|Wikis are fun.|A. Writer|My Book|1999}} +Example: {{Blockquote|text=Short.|author=Someone}} +Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/ +[quote]{{{text|{{{quote|{{{1|}}}}}}}}}{{#if:{{{author|{{{2|}}}}}}{{{title|{{{3|}}}}}}{{{source|{{{4|}}}}}}| — {{{author|{{{2|}}}}}}{{#if:{{{author|{{{2|}}}}}}|{{#if:{{{title|{{{3|}}}}}}|, }}}}{{{title|{{{3|}}}}}}{{#if:{{{author|{{{2|}}}}}}{{{title|{{{3|}}}}}}|{{#if:{{{source|{{{4|}}}}}}|, }}}}{{{source|{{{4|}}}}}}}}[/quote] \ No newline at end of file diff --git a/templates/Cleanup.wiki b/templates/Cleanup.wiki new file mode 100644 index 0000000..d71996e --- /dev/null +++ b/templates/Cleanup.wiki @@ -0,0 +1,14 @@ + +Source: https://en.wikipedia.org/wiki/Template:Cleanup +History: https://en.wikipedia.org/w/index.php?title=Template:Cleanup&action=history +Revision: https://en.wikipedia.org/w/index.php?title=Template:Cleanup&oldid=1367072181 (07/31/2026 8:17 PM UTC) +Adapted by phpBB Modders. +Changes: rewritten in plain wiki text for the Ambox here; "Wikipedia's quality standards" reads "the wiki's quality standards", and the links to Wikipedia's help pages are left out; a missing reason says so in the box instead of showing an error; a full stop is added to a reason without one, as Terminate sentence does; no small, talk or category options; bold with BBCode; removed the source's documentation and categories. +Example: {{Cleanup|reason=the article mixes two topics}} +Expect: This article may require cleanup to meet the wiki's quality standards. The specific problem is: the article mixes two topics. Please help improve this article if you can. +Example: {{Cleanup|section|reason=Unclear wording!}} +Expect: This section may require cleanup to meet the wiki's quality standards. The specific problem is: Unclear wording! Please help improve this section if you can. +Example: {{Cleanup}} +Expect: This article may require cleanup to meet the wiki's quality standards. No cleanup reason has been specified. Please help improve this article if you can. +Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/ +{{Ambox|issue=This {{{1|article}}} may [b]require cleanup[/b] to meet the wiki's quality standards.{{#if:{{{reason|}}}| The specific problem is: [b]{{{reason}}}{{#switch:{{#sub:{{{reason}}}|-1}}|.|!|?=|#default=.}}[/b]}}|fix={{#if:{{{reason|}}}||No cleanup reason has been specified. }}Please help improve this {{{1|article}}} if you can.|date={{{date|}}}}} \ No newline at end of file diff --git a/templates/Confusing.wiki b/templates/Confusing.wiki new file mode 100644 index 0000000..b0b1a19 --- /dev/null +++ b/templates/Confusing.wiki @@ -0,0 +1,12 @@ + +Source: https://en.wikipedia.org/wiki/Template:Confusing +History: https://en.wikipedia.org/w/index.php?title=Template:Confusing&action=history +Revision: https://en.wikipedia.org/w/index.php?title=Template:Confusing&oldid=1264164820 (12/20/2024 9:32 PM UTC) +Adapted by phpBB Modders. +Changes: rewritten in plain wiki text for the Ambox here; left out the sentence about a discussion on the talk page, which the wiki does not have, and the links to Wikipedia's help pages; no small, talk or category options; bold with BBCode; removed the source's documentation and categories. +Example: {{Confusing}} +Expect: This article may be confusing or unclear to readers. Please help clarify the article. +Example: {{Confusing|section|reason=the steps are out of order}} +Expect: This section may be confusing or unclear to readers. In particular, the steps are out of order. Please help clarify the section. +Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/ +{{Ambox|issue=This {{{1|article}}} [b]may be confusing or unclear to readers[/b].{{#if:{{{reason|}}}| In particular, {{{reason}}}.}}|fix=Please help clarify the {{{1|article}}}.|date={{{date|}}}}} \ No newline at end of file diff --git a/templates/Distinguish.wiki b/templates/Distinguish.wiki new file mode 100644 index 0000000..4f98572 --- /dev/null +++ b/templates/Distinguish.wiki @@ -0,0 +1,12 @@ + +Source: https://en.wikipedia.org/wiki/Template:Distinguish +History: https://en.wikipedia.org/w/index.php?title=Template:Distinguish&action=history +Revision: https://en.wikipedia.org/w/index.php?title=Template:Distinguish&oldid=1137476713 (02/04/2023 9:16 PM UTC) +Adapted by phpBB Modders. +Changes: rewritten in plain wiki text without Lua (Module:Distinguish): up to four articles, listed as A, A or B, or A, B, or C; the text option replaces the list; no selfref option; shown in italics instead of the hatnote style, since the wiki allows no
; before "or", since #if trims a plain space there; removed the source's documentation and categories. +Example: {{Distinguish|Main Page}} +Example: {{Distinguish|Installation|Upgrading}} +Example: {{Distinguish|A|B|C}} +Example: {{Distinguish|text=the forum's own search}} +Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/ +[i]Not to be confused with {{#if:{{{text|}}}|{{{text}}}|[[{{{1}}}]]{{#if:{{{2|}}}|{{#if:{{{3|}}}|,| or}} [[{{{2}}}]]}}{{#if:{{{3|}}}|,{{#if:{{{4|}}}|| or}} [[{{{3}}}]]}}{{#if:{{{4|}}}|, or [[{{{4}}}]]}}}}.[/i] \ No newline at end of file diff --git a/templates/Expand section.wiki b/templates/Expand section.wiki new file mode 100644 index 0000000..e586f7b --- /dev/null +++ b/templates/Expand section.wiki @@ -0,0 +1,11 @@ + +Source: https://en.wikipedia.org/wiki/Template:Expand_section +History: https://en.wikipedia.org/w/index.php?title=Template:Expand_section&action=history +Revision: https://en.wikipedia.org/w/index.php?title=Template:Expand_section&oldid=1333246242 (01/16/2026 4:02 PM UTC) +Adapted by phpBB Modders. +Changes: rewritten in plain wiki text for the Ambox here; the link to the edit page and the "Find sources" search links are left out; no image, small, talk or category options; bold with BBCode; removed the source's documentation and categories. +Example: {{Expand section}} +Example: {{Expand section|examples of each setting}} +Example: {{Expand section|with=a list of options|punctuation=no}} +Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/ +{{Ambox|issue=This section [b]needs expansion[/b]{{#if:{{{with|}}}| with: {{{with}}}|{{#if:{{{for|}}}| with: {{{for}}}|{{#if:{{{1|}}}| with: {{{1}}} }} }} }}{{#ifeq:{{{punctuation|}}}{{{period|}}}|no||.}} You can help by adding missing information.|date={{{date|}}}}} \ No newline at end of file diff --git a/templates/For.wiki b/templates/For.wiki new file mode 100644 index 0000000..b989d05 --- /dev/null +++ b/templates/For.wiki @@ -0,0 +1,11 @@ + +Source: https://en.wikipedia.org/wiki/Template:For +History: https://en.wikipedia.org/w/index.php?title=Template:For&action=history +Revision: https://en.wikipedia.org/w/index.php?title=Template:For&oldid=1362897750 (07/06/2026 10:03 PM UTC) +Adapted by phpBB Modders. +Changes: rewritten in plain wiki text without Lua (Module:For): one use and up to three articles, listed as A, A and B, or A, B, and C, or the board's disambiguation page when no article is given; shown in italics instead of the hatnote style, since the wiki allows no
; before "and", since #if trims a plain space there; removed the source's documentation and categories. +Example: {{For|the forum software|PhpBB}} +Example: {{For|the installer|Installation|Upgrading}} +Example: {{For|other things|A|B|C}} +Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/ +[i]For {{{1|other uses}}}, see {{#if:{{{2|}}}|[[{{{2}}}]]{{#if:{{{3|}}}|{{#if:{{{4|}}}|,| and}} [[{{{3}}}]]}}{{#if:{{{4|}}}|,{{#if:{{{5|}}}|| and}} [[{{{4}}}]]}}{{#if:{{{5|}}}|, and [[{{{5}}}]]}}|[[{{PAGENAME}} (disambiguation)]]}}.[/i] \ No newline at end of file diff --git a/templates/Other uses.wiki b/templates/Other uses.wiki new file mode 100644 index 0000000..14a20e5 --- /dev/null +++ b/templates/Other uses.wiki @@ -0,0 +1,9 @@ + +Source: https://en.wikipedia.org/wiki/Template:Other_uses +History: https://en.wikipedia.org/w/index.php?title=Template:Other_uses&action=history +Revision: https://en.wikipedia.org/w/index.php?title=Template:Other_uses&oldid=1284734559 (04/09/2025 11:36 AM UTC) +Adapted by phpBB Modders. +Changes: rewritten in plain wiki text without Lua (Module:Other uses): no article gives the board's disambiguation page, one article links to it; no further options; shown in italics instead of the hatnote style, since the wiki allows no
; removed the source's documentation and categories. +Example: {{Other uses|Wiki (disambiguation)}} +Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/ +[i]For other uses, see [[{{{1|{{PAGENAME}} (disambiguation)}}}]].[/i] \ No newline at end of file diff --git a/templates/Primary sources.wiki b/templates/Primary sources.wiki new file mode 100644 index 0000000..fc64c42 --- /dev/null +++ b/templates/Primary sources.wiki @@ -0,0 +1,12 @@ + +Source: https://en.wikipedia.org/wiki/Template:Primary_sources +History: https://en.wikipedia.org/w/index.php?title=Template:Primary_sources&action=history +Revision: https://en.wikipedia.org/w/index.php?title=Template:Primary_sources&oldid=1324617792 (11/28/2025 6:10 PM UTC) +Adapted by phpBB Modders. +Changes: rewritten in plain wiki text for the Ambox here; left out the biography (BLP) wording and the "Find sources" search links, which are for Wikipedia, and the links to Wikipedia's help pages; no image, small, talk or category options; bold with BBCode; removed the source's documentation and categories. +Example: {{Primary sources}} +Expect: This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources. +Example: {{Primary sources|section}} +Expect: This section relies excessively on references to primary sources. Please improve this section by adding secondary or tertiary sources. +Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/ +{{Ambox|issue=This {{{1|article}}} [b]relies excessively on references to primary sources[/b].|fix=Please improve this {{{1|article}}} by adding secondary or tertiary sources.|date={{{date|}}}}} \ No newline at end of file diff --git a/templates/Redirect.wiki b/templates/Redirect.wiki new file mode 100644 index 0000000..bcdd118 --- /dev/null +++ b/templates/Redirect.wiki @@ -0,0 +1,12 @@ + +Source: https://en.wikipedia.org/wiki/Template:Redirect +History: https://en.wikipedia.org/w/index.php?title=Template:Redirect&action=history +Revision: https://en.wikipedia.org/w/index.php?title=Template:Redirect&oldid=827943535 (02/27/2018 5:34 PM UTC) +Adapted by phpBB Modders. +Changes: rewritten in plain wiki text without Lua (Module:Redirect hatnote): the redirect's name, then up to two pairs of a use and its article; an empty use reads "other uses", and a missing article gives the redirect's disambiguation page; no "and" lists, selfref or category options; shown in italics instead of the hatnote style, since the wiki allows no
; removed the source's documentation and categories. +Example: {{Redirect|Docs}} +Example: {{Redirect|Docs|the documentation team|Documentation team}} +Example: {{Redirect|Docs||Documents}} +Example: {{Redirect|Docs|the team|Documentation team|the files|Documents}} +Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/ +[i]"{{{1}}}" redirects here. For {{#if:{{{2|}}}|{{{2}}}|other uses}}, see [[{{#if:{{{3|}}}|{{{3}}}|{{{1}}} (disambiguation)}}]].{{#if:{{{5|}}}| For {{#if:{{{4|}}}|{{{4}}}|other uses}}, see [[{{{5}}}]].}}[/i] \ No newline at end of file diff --git a/templates/Technical.wiki b/templates/Technical.wiki new file mode 100644 index 0000000..eec4d54 --- /dev/null +++ b/templates/Technical.wiki @@ -0,0 +1,14 @@ + +Source: https://en.wikipedia.org/wiki/Template:Technical +History: https://en.wikipedia.org/w/index.php?title=Template:Technical&action=history +Revision: https://en.wikipedia.org/w/index.php?title=Template:Technical&oldid=1303524764 (07/31/2025 1:57 PM UTC) +Adapted by phpBB Modders. +Changes: rewritten in plain wiki text for the Ambox here; the links to the edit page and Wikipedia's help pages are left out; no small, talk or category options; bold with BBCode; removed the source's documentation and categories. +Example: {{Technical}} +Expect: This article may be too technical for most readers to understand. Please help improve it to make it understandable to non-experts, without removing the technical details. +Example: {{Technical|section}} +Expect: This section may be too technical for most readers to understand. Please help improve it to make it understandable to non-experts, without removing the technical details. +Example: {{Technical|introduction}} +Expect: This article's lead section may be too technical for most readers to understand. Please help improve it to make it understandable to non-experts. +Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/ +{{Ambox|issue={{#ifeq:{{{1|}}}|introduction|This article's lead section|This {{{1|article}}}}} [b]may be too technical for most readers to understand[/b].|fix=Please help improve it to make it understandable to non-experts{{#ifeq:{{{1|}}}|introduction|.|, without removing the technical details.}}|date={{{date|}}}}} \ No newline at end of file diff --git a/templates/Template link.wiki b/templates/Template link.wiki new file mode 100644 index 0000000..f4ca372 --- /dev/null +++ b/templates/Template link.wiki @@ -0,0 +1,9 @@ + +Source: https://en.wikipedia.org/wiki/Template:Template_link +History: https://en.wikipedia.org/w/index.php?title=Template:Template_link&action=history +Revision: https://en.wikipedia.org/w/index.php?title=Template:Template_link&oldid=1270893692 (01/21/2025 7:19 PM UTC) +Adapted by phpBB Modders. +Changes: the braces are written as character entities so they show as text; no nowrap , which the wiki does not allow; removed the source's documentation and categories. +Example: {{Template link|Main}} +Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/ +{{[[Template:{{{1}}}|{{{1}}}]]}} \ No newline at end of file