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}}`, `{{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}}`; `{{Blockquote}}` (phpBB's quote box) and `{{Template link}}`, which shows a template's name in braces as a link; `{{Infobox}}`, a table of labelled facts that other infoboxes can be built on; and `{{Cite web}}`, a citation of a web page in Wikipedia's style. 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}}`; `{{Blockquote}}` (phpBB's quote box) and `{{Template link}}`, which shows a template's name in braces as a link; `{{Infobox}}`, a table of labelled facts that other infoboxes can be built on; `{{Cite web}}`, a citation of a web page in Wikipedia's style; and `{{Navbox}}`, a box of links to related articles that the reader opens and closes (wiki extension 1.1.0-a2 and later). 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
7 changes: 7 additions & 0 deletions data/templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
"status": "adapted",
"title": "Template:Blockquote"
},
"enwiki:995954": {
"name": "Navbox",
"reason": "",
"revid": 1030560841,
"status": "adapted",
"title": "Template:Navbox"
},
"enwiki:1208356": {
"name": "Main",
"reason": "",
Expand Down
10 changes: 10 additions & 0 deletions templates/Navbox.wiki
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<noinclude>
Source: https://en.wikipedia.org/wiki/Template:Navbox
History: https://en.wikipedia.org/w/index.php?title=Template:Navbox&action=history
Revision: https://en.wikipedia.org/w/index.php?title=Template:Navbox&oldid=1030560841 (06/26/2021 6:05 PM UTC)
Adapted by phpBB Modders.
Changes: rewritten in plain wiki text without Lua (Module:Navbox) as a box the reader opens and closes (the wiki's details and summary tags, wiki extension 1.1.0-a2 and later): title, above, below and 20 numbered rows, each a group with its list or a list alone (a group without a list is left out); it starts closed, and state=expanded starts it open, instead of Wikipedia's autocollapse; no view, talk and edit links, image, child navboxes, class, style or list numbering options; removed the source's documentation and categories.
Example: {{Navbox|title=Wiki features|state=expanded|group1=Pages|list1=[[Main Page]] 路 [[Help]]|group2=Tools|list2=[[Search]] 路 [[Recent changes]]|below=More on the wiki}}
Example: {{Navbox|title=Short|state=expanded|list1=Just one list}}
Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/
</noinclude>{{#ifeq:{{{state|}}}|expanded|<details class="navbox" open>|<details class="navbox">}}<summary>{{{title|}}}</summary><table>{{#if:{{{above|}}}|<tr><td colspan="2">{{{above}}}</td></tr>}}{{#if:{{{list1|}}}|<tr>{{#if:{{{group1|}}}|<th>{{{group1}}}</th><td>{{{list1}}}</td>|<td colspan="2">{{{list1}}}</td>}}</tr>}}{{#if:{{{list2|}}}|<tr>{{#if:{{{group2|}}}|<th>{{{group2}}}</th><td>{{{list2}}}</td>|<td colspan="2">{{{list2}}}</td>}}</tr>}}{{#if:{{{list3|}}}|<tr>{{#if:{{{group3|}}}|<th>{{{group3}}}</th><td>{{{list3}}}</td>|<td colspan="2">{{{list3}}}</td>}}</tr>}}{{#if:{{{list4|}}}|<tr>{{#if:{{{group4|}}}|<th>{{{group4}}}</th><td>{{{list4}}}</td>|<td colspan="2">{{{list4}}}</td>}}</tr>}}{{#if:{{{list5|}}}|<tr>{{#if:{{{group5|}}}|<th>{{{group5}}}</th><td>{{{list5}}}</td>|<td colspan="2">{{{list5}}}</td>}}</tr>}}{{#if:{{{list6|}}}|<tr>{{#if:{{{group6|}}}|<th>{{{group6}}}</th><td>{{{list6}}}</td>|<td colspan="2">{{{list6}}}</td>}}</tr>}}{{#if:{{{list7|}}}|<tr>{{#if:{{{group7|}}}|<th>{{{group7}}}</th><td>{{{list7}}}</td>|<td colspan="2">{{{list7}}}</td>}}</tr>}}{{#if:{{{list8|}}}|<tr>{{#if:{{{group8|}}}|<th>{{{group8}}}</th><td>{{{list8}}}</td>|<td colspan="2">{{{list8}}}</td>}}</tr>}}{{#if:{{{list9|}}}|<tr>{{#if:{{{group9|}}}|<th>{{{group9}}}</th><td>{{{list9}}}</td>|<td colspan="2">{{{list9}}}</td>}}</tr>}}{{#if:{{{list10|}}}|<tr>{{#if:{{{group10|}}}|<th>{{{group10}}}</th><td>{{{list10}}}</td>|<td colspan="2">{{{list10}}}</td>}}</tr>}}{{#if:{{{list11|}}}|<tr>{{#if:{{{group11|}}}|<th>{{{group11}}}</th><td>{{{list11}}}</td>|<td colspan="2">{{{list11}}}</td>}}</tr>}}{{#if:{{{list12|}}}|<tr>{{#if:{{{group12|}}}|<th>{{{group12}}}</th><td>{{{list12}}}</td>|<td colspan="2">{{{list12}}}</td>}}</tr>}}{{#if:{{{list13|}}}|<tr>{{#if:{{{group13|}}}|<th>{{{group13}}}</th><td>{{{list13}}}</td>|<td colspan="2">{{{list13}}}</td>}}</tr>}}{{#if:{{{list14|}}}|<tr>{{#if:{{{group14|}}}|<th>{{{group14}}}</th><td>{{{list14}}}</td>|<td colspan="2">{{{list14}}}</td>}}</tr>}}{{#if:{{{list15|}}}|<tr>{{#if:{{{group15|}}}|<th>{{{group15}}}</th><td>{{{list15}}}</td>|<td colspan="2">{{{list15}}}</td>}}</tr>}}{{#if:{{{list16|}}}|<tr>{{#if:{{{group16|}}}|<th>{{{group16}}}</th><td>{{{list16}}}</td>|<td colspan="2">{{{list16}}}</td>}}</tr>}}{{#if:{{{list17|}}}|<tr>{{#if:{{{group17|}}}|<th>{{{group17}}}</th><td>{{{list17}}}</td>|<td colspan="2">{{{list17}}}</td>}}</tr>}}{{#if:{{{list18|}}}|<tr>{{#if:{{{group18|}}}|<th>{{{group18}}}</th><td>{{{list18}}}</td>|<td colspan="2">{{{list18}}}</td>}}</tr>}}{{#if:{{{list19|}}}|<tr>{{#if:{{{group19|}}}|<th>{{{group19}}}</th><td>{{{list19}}}</td>|<td colspan="2">{{{list19}}}</td>}}</tr>}}{{#if:{{{list20|}}}|<tr>{{#if:{{{group20|}}}|<th>{{{group20}}}</th><td>{{{list20}}}</td>|<td colspan="2">{{{list20}}}</td>}}</tr>}}{{#if:{{{below|}}}|<tr><td colspan="2">{{{below}}}</td></tr>}}</table></details>
Loading