diff --git a/README.md b/README.md index a5567c4..28ee350 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}}`, `{{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 diff --git a/data/templates.json b/data/templates.json index 423ccad..48d5db2 100644 --- a/data/templates.json +++ b/data/templates.json @@ -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": "", diff --git a/templates/Navbox.wiki b/templates/Navbox.wiki new file mode 100644 index 0000000..41cbf80 --- /dev/null +++ b/templates/Navbox.wiki @@ -0,0 +1,10 @@ + +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/ +{{#ifeq:{{{state|}}}|expanded|