Document deprecation of the `{pages}` template function
authorMarcel Werk <burntime@woltlab.com>
Mon, 1 Jul 2024 11:17:52 +0000 (13:17 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 1 Jul 2024 11:17:52 +0000 (13:17 +0200)
docs/migration/wsc55/deprecations_removals.md
docs/migration/wsc55/templates.md

index a52dee93451a8ffb02bccdbf6197e08af672dcf7..3f39c9c3f63900d16ea69f389cef339cb3c77b10 100644 (file)
@@ -69,11 +69,12 @@ With version 6.0, we have deprecated certain components and removed several othe
 - `__commentJavaScript` ([WoltLab/WCF#5210](https://github.com/WoltLab/WCF/pull/5210))
 - `commentListAddComment` ([WoltLab/WCF#5210](https://github.com/WoltLab/WCF/pull/5210))
 
-#### Template Modifiers
+#### Template Modifiers/Functions
 
 - `|date` ([WoltLab/WCF#5459](https://github.com/WoltLab/WCF/pull/5459))
 - `|time` ([WoltLab/WCF#5459](https://github.com/WoltLab/WCF/pull/5459))
 - `|plainTime` ([WoltLab/WCF#5459](https://github.com/WoltLab/WCF/pull/5459))
+- `{pages}` ([WoltLab/WCF#5158](https://github.com/WoltLab/WCF/pull/5158))
 
 #### Template Events
 
index f58a2ce71fb0155480625d5be9f1d9ffcb91acbc..d8eb13c8dfff7c89da062a1ac72ea52dad86c1b2 100644 (file)
@@ -53,3 +53,11 @@ Buttons will implicitly submit a form, therefore you should set the `type` attri
 ```
 
 See [WoltLab/WCF#4834](https://github.com/WoltLab/WCF/issues/4834) for more details.
+
+## Pagination
+
+The `{pages}` template function has been deprecated and replaced by the new [`<woltlab-core-pagination>` web component](../../javascript/components_pagination.md).
+
+If you continue to use the `{pages}` template function, it will automatically generate the code for the web component. 
+
+See [WoltLab/WCF#5158](https://github.com/WoltLab/WCF/pull/5158) for more details.