diff --git a/README.md b/README.md index 617c269..a5567c4 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; and `{{Infobox}}`, a table of labelled facts that other infoboxes can be built on. 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; 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). ## Why a separate repository diff --git a/data/templates.json b/data/templates.json index b869412..423ccad 100644 --- a/data/templates.json +++ b/data/templates.json @@ -41,6 +41,13 @@ "status": "adapted", "title": "Template:Main" }, + "enwiki:1252907": { + "name": "Cite web", + "reason": "", + "revid": 753103437, + "status": "adapted", + "title": "Template:Cite web" + }, "enwiki:1331291": { "name": "Technical", "reason": "", diff --git a/templates/Cite web.wiki b/templates/Cite web.wiki new file mode 100644 index 0000000..8e11d19 --- /dev/null +++ b/templates/Cite web.wiki @@ -0,0 +1,15 @@ + +Source: https://en.wikipedia.org/wiki/Template:Cite_web +History: https://en.wikipedia.org/w/index.php?title=Template:Cite_web&action=history +Revision: https://en.wikipedia.org/w/index.php?title=Template:Cite_web&oldid=753103437 (12/05/2016 5:36 AM UTC) +Adapted by phpBB Modders. +Changes: rewritten in plain wiki text without Lua (Module:Citation/CS1) for the common parameters, in Wikipedia's order and wording: author (or last and first), date, title linked to url (to archive-url when there is one), website or work in italics, publisher, archive-url with archive-date, access-date, and quote, in quotation marks instead of a element; links with phpBB's url BBCode; no other names, editors, language, via, page, id, format or url-status options, no checking of dates or URLs and no error messages; removed the source's documentation and categories. +Example: {{Cite web|url=https://www.phpbb.com/|title=phpBB Forum Software|access-date=2026-10-14}} +Example: {{Cite web|url=https://example.com/a|title=Article|last=Smith|first=Jane|date=2025-03-04|website=Example News|publisher=Example Media|access-date=2026-10-14}} +Example: {{Cite web|url=https://example.com/b|title=Page|author=John Doe|date=March 2024|website=Example|archive-url=https://web.archive.org/web/20240501000000/https://example.com/b|archive-date=2024-05-01|access-date=2026-10-14|quote=Some words.}} +Expect: John Doe (March 2024). "Page". Example. Archived from the original on 2024-05-01. Retrieved 2026-10-14. "Some words." +Example: {{Cite web|url=https://example.com/c|title=Release notes|publisher=phpBB Limited|date=1 May 2025}} +Example: {{Cite web|url=https://example.com/d|title=Docs|last=Smith|first=Jane|work=Docs site}} +Example: {{Cite web|url=https://example.com/e|title=Ends with a question?|website=Q&A}} +Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/ +{{#if:{{{last|}}}|{{{last}}}{{#if:{{{first|}}}|, {{{first}}}}}|{{{author|}}}}}{{#if:{{{last|}}}{{{author|}}}|{{#if:{{{date|}}}| ({{{date}}})}}. }}"{{#if:{{{archive-url|}}}|[url={{{archive-url}}}]{{{title}}}[/url]|{{#if:{{{url|}}}|[url={{{url}}}]{{{title}}}[/url]|{{{title}}} }} }}".{{#if:{{{website|}}}| [i]{{{website}}}[/i].|{{#if:{{{work|}}}| [i]{{{work}}}[/i]. }} }}{{#if:{{{publisher|}}}| {{{publisher}}}.}}{{#if:{{{last|}}}{{{author|}}}||{{#if:{{{date|}}}| {{{date}}}. }} }}{{#if:{{{archive-url|}}}| Archived from [url={{{url}}}]the original[/url]{{#if:{{{archive-date|}}}| on {{{archive-date}}} }}.}}{{#if:{{{access-date|}}}| Retrieved {{{access-date}}}.}}{{#if:{{{quote|}}}| "{{{quote}}}"}} \ No newline at end of file