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
2 changes: 1 addition & 1 deletion 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}}` 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

Expand Down
81 changes: 79 additions & 2 deletions data/templates.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"enwiki:693634": {
"name": "Other uses",
"reason": "",
"revid": 1284734559,
"status": "adapted",
"title": "Template:Other uses"
},
"enwiki:726079": {
"name": "Stub",
"reason": "",
Expand All @@ -8,32 +15,67 @@
},
"enwiki:828359": {
"name": "Center",
"reason": "needs a <div> to centre its text, and phpBB has no centring BBCode out of the box",
"reason": "HTML the wiki shows as text: <div>",
"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": "",
"revid": 1363280785,
"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": "",
"revid": 1330232496,
"status": "adapted",
"title": "Template:Unreferenced"
},
"enwiki:1487430": {
"name": "Template link",
"reason": "",
"revid": 1270893692,
"status": "adapted",
"title": "Template:Template link"
},
"enwiki:1627975": {
"name": "Nowrap",
"reason": "",
"revid": 692794261,
"status": "adapted",
"title": "Template:Nowrap"
},
"enwiki:1649987": {
"name": "Redirect",
"reason": "",
"revid": 827943535,
"status": "adapted",
"title": "Template:Redirect"
},
"enwiki:1721254": {
"name": "See also",
"reason": "",
Expand All @@ -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": "",
Expand All @@ -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": "",
Expand Down
11 changes: 11 additions & 0 deletions templates/Blockquote.wiki
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<noinclude>
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), <blockquote> 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/
</noinclude>[quote]{{{text|{{{quote|{{{1|}}}}}}}}}{{#if:{{{author|{{{2|}}}}}}{{{title|{{{3|}}}}}}{{{source|{{{4|}}}}}}|&#10;— {{{author|{{{2|}}}}}}{{#if:{{{author|{{{2|}}}}}}|{{#if:{{{title|{{{3|}}}}}}|,&#32;}}}}{{{title|{{{3|}}}}}}{{#if:{{{author|{{{2|}}}}}}{{{title|{{{3|}}}}}}|{{#if:{{{source|{{{4|}}}}}}|,&#32;}}}}{{{source|{{{4|}}}}}}}}[/quote]
14 changes: 14 additions & 0 deletions templates/Cleanup.wiki
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<noinclude>
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/
</noinclude>{{Ambox|issue=This {{{1|article}}} may [b]require cleanup[/b] to meet the wiki's quality standards.{{#if:{{{reason|}}}|&#32;The specific problem is: [b]{{{reason}}}{{#switch:{{#sub:{{{reason}}}|-1}}|.|!|?=|#default=.}}[/b]}}|fix={{#if:{{{reason|}}}||No cleanup reason has been specified.&#32;}}Please help improve this {{{1|article}}} if you can.|date={{{date|}}}}}
12 changes: 12 additions & 0 deletions templates/Confusing.wiki
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<noinclude>
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/
</noinclude>{{Ambox|issue=This {{{1|article}}} [b]may be confusing or unclear to readers[/b].{{#if:{{{reason|}}}|&#32;In particular, {{{reason}}}.}}|fix=Please help clarify the {{{1|article}}}.|date={{{date|}}}}}
12 changes: 12 additions & 0 deletions templates/Distinguish.wiki
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<noinclude>
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 <div>; &#32; 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/
</noinclude>[i]Not to be confused with {{#if:{{{text|}}}|{{{text}}}|[[{{{1}}}]]{{#if:{{{2|}}}|{{#if:{{{3|}}}|,|&#32;or}} [[{{{2}}}]]}}{{#if:{{{3|}}}|,{{#if:{{{4|}}}||&#32;or}} [[{{{3}}}]]}}{{#if:{{{4|}}}|,&#32;or [[{{{4}}}]]}}}}.[/i]
11 changes: 11 additions & 0 deletions templates/Expand section.wiki
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<noinclude>
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/
</noinclude>{{Ambox|issue=This section [b]needs expansion[/b]{{#if:{{{with|}}}|&#32;with: {{{with}}}|{{#if:{{{for|}}}|&#32;with: {{{for}}}|{{#if:{{{1|}}}|&#32;with: {{{1}}} }} }} }}{{#ifeq:{{{punctuation|}}}{{{period|}}}|no||.}} You can help by adding missing information.|date={{{date|}}}}}
11 changes: 11 additions & 0 deletions templates/For.wiki
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<noinclude>
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 <div>; &#32; 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/
</noinclude>[i]For {{{1|other uses}}}, see {{#if:{{{2|}}}|[[{{{2}}}]]{{#if:{{{3|}}}|{{#if:{{{4|}}}|,|&#32;and}} [[{{{3}}}]]}}{{#if:{{{4|}}}|,{{#if:{{{5|}}}||&#32;and}} [[{{{4}}}]]}}{{#if:{{{5|}}}|,&#32;and [[{{{5}}}]]}}|[[{{PAGENAME}} (disambiguation)]]}}.[/i]
9 changes: 9 additions & 0 deletions templates/Other uses.wiki
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<noinclude>
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 <div>; 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/
</noinclude>[i]For other uses, see [[{{{1|{{PAGENAME}} (disambiguation)}}}]].[/i]
12 changes: 12 additions & 0 deletions templates/Primary sources.wiki
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<noinclude>
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/
</noinclude>{{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|}}}}}
12 changes: 12 additions & 0 deletions templates/Redirect.wiki
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<noinclude>
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 <div>; 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/
</noinclude>[i]"{{{1}}}" redirects here. For {{#if:{{{2|}}}|{{{2}}}|other uses}}, see [[{{#if:{{{3|}}}|{{{3}}}|{{{1}}} (disambiguation)}}]].{{#if:{{{5|}}}|&#32;For {{#if:{{{4|}}}|{{{4}}}|other uses}}, see [[{{{5}}}]].}}[/i]
14 changes: 14 additions & 0 deletions templates/Technical.wiki
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<noinclude>
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/
</noinclude>{{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|}}}}}
9 changes: 9 additions & 0 deletions templates/Template link.wiki
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<noinclude>
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 <span>, 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/
</noinclude>&#123;&#123;[[Template:{{{1}}}|{{{1}}}]]&#125;&#125;
Loading