Difference between revisions of "Template:Cat more/doc"
imported>DePiep m (+cat +doclink) |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (17 intermediate revisions by 15 users not shown) | |||
| Line 8: | Line 8: | ||
==Multiple link targets== | ==Multiple link targets== | ||
| − | * <code><nowiki>{{cat more|1}}</nowiki></code> produces: {{cat more|1}} | + | * <code><nowiki>{{cat more|1 BC}}</nowiki></code> produces: {{cat more|1 BC}} |
| − | * <code><nowiki>{{cat more|Talk:1|l1=1}}</nowiki></code> produces: {{cat more|Talk:1|l1=1}} | + | * <code><nowiki>{{cat more|Talk:1 BC|l1=1 BC}}</nowiki></code> produces: {{cat more|Talk:1 BC|l1=1 BC}} |
| − | * <code><nowiki>{{cat more|1|2}}</nowiki></code> produces: {{cat more|1|2}} | + | * <code><nowiki>{{cat more|1 BC|2 BC}}</nowiki></code> produces: {{cat more|1 BC|2 BC}} |
| − | * <code><nowiki>{{cat more|Talk:1|l1=1|Talk:2|l2=2}}</nowiki></code> produces: {{cat more|Talk:1|l1=1|Talk:2|l2=2}} | + | * <code><nowiki>{{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC}}</nowiki></code> produces: {{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC}} |
| − | * <code><nowiki>{{cat more|1|2|3}}</nowiki></code> produces: {{cat more|1|2|3}} | + | * <code><nowiki>{{cat more|1 BC|2 BC|3 BC}}</nowiki></code> produces: {{cat more|1 BC|2 BC|3 BC}} |
| − | * <code><nowiki>{{cat more|Talk:1|l1=1|Talk:2|l2=2|Talk:3|l3=3}}</nowiki></code> produces: {{cat more|Talk:1|l1=1|Talk:2|l2=2|Talk:3|l3=3}} | + | * <code><nowiki>{{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC|Talk:3 BC|l3=3 BC}}</nowiki></code> produces: {{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC|Talk:3 BC|l3=3 BC}} |
| − | * <code><nowiki>{{cat more|1|2|3|4}}</nowiki></code> produces: {{cat more|1|2|3|4}} | + | * <code><nowiki>{{cat more|1 BC|2 BC|3 BC|4 BC}}</nowiki></code> produces: {{cat more|1 BC|2 BC|3 BC|4 BC}} |
| − | * <code><nowiki>{{cat more|Talk:1|l1=1|Talk:2|l2=2|Talk:3|l3=3|Talk:4|l4=4}}</nowiki></code> produces: {{cat more|Talk:1|l1=1|Talk:2|l2=2|Talk:3|l3=3|Talk:4|l4=4}} | + | * <code><nowiki>{{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC|Talk:3 BC|l3=3 BC|Talk:4 BC|l4=4 BC}}</nowiki></code> produces: {{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC|Talk:3 BC|l3=3 BC|Talk:4 BC|l4=4 BC}} |
| − | * <code><nowiki>{{cat more|1|2|3|4|5}}</nowiki></code> produces: {{cat more|1|2|3|4|5}} | + | * <code><nowiki>{{cat more|1 BC|2 BC|3 BC|4 BC|5 BC}}</nowiki></code> produces: {{cat more|1 BC|2 BC|3 BC|4 BC|5 BC}} |
| − | * <code><nowiki>{{cat more|Talk:1|l1=1|Talk:2|l2=2|Talk:3|l3=3|Talk:4|l4=4|Talk:5|l5=5}}</nowiki></code> produces: {{cat more|Talk:1|l1=1|Talk:2|l2=2|Talk:3|l3=3|Talk:4|l4=4|Talk:5|l5=5}} | + | * <code><nowiki>{{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC|Talk:3 BC|l3=3 BC|Talk:4 BC|l4=4 BC|Talk:5 BC|l5=5 BC}}</nowiki></code> produces: {{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC|Talk:3 BC|l3=3 BC|Talk:4 BC|l4=4 BC|Talk:5 BC|l5=5 BC}} |
| + | |||
| + | == TemplateData == | ||
| + | {{TemplateDataHeader}} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "description": "This templates adds a 'For more information, see ...' statement with a maximum of 5 linked Wiki pages. Each link can be labelled with a user-defined new text. If no label is defined, the link will display with its original page name.", | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "first link", | ||
| + | "type": "string", | ||
| + | "required": true, | ||
| + | "description": "First link to a Wiki page, formatted as 'internal' Wiki-link, f.e. 'WP:WikiProject' or 'articlename'" | ||
| + | }, | ||
| + | "l1": { | ||
| + | "label": "label first link", | ||
| + | "type": "string", | ||
| + | "description": "Format: l1=labeltext. A user-defined label for the first Wiki-link, f.e. 'WP:WikiProject' as first parameter and 'l1=Project' would display 'Project' but link to 'WP:WikiProject'" | ||
| + | }, | ||
| + | "2": { | ||
| + | "label": "second link", | ||
| + | "type": "string", | ||
| + | "description": "Second link to another Wiki page, same formatting as the first link. Note: 3 more links 3,4,5 and (optional) labels l3,l4,l5 can be added manually" | ||
| + | }, | ||
| + | "l2": { | ||
| + | "label": "label second link", | ||
| + | "type": "string", | ||
| + | "description": "Format: l2=labeltext. A user-defined label for the second Wiki-link. Note: 3 more links 3,4,5 and (optional) labels l3,l4,l5 can be added manually" | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </templatedata> | ||
| + | |||
| + | ==Redirects== | ||
| + | * {{Tlx|Category more}} | ||
==See also== | ==See also== | ||
| − | + | {{Category hatnote templates}} | |
| − | |||
| − | |||
| − | |||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
<!--PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. --> | <!--PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. --> | ||
| − | [[Category: | + | [[Category:Hatnote templates for category pages]] |
| − | + | }}</includeonly> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | <includeonly> | ||
Latest revision as of 00:53, 24 April 2020
| 40px | This is a documentation subpage for Template:Cat more. It contains usage information, categories and other content that is not part of the original template page. |
Usage
{{cat more|WP:WikiProject}} produces:
{{cat more|WP:WikiProject|l1=WikiProject}} produces:
Multiple link targets
{{cat more|1 BC}}produces:{{cat more|Talk:1 BC|l1=1 BC}}produces:{{cat more|1 BC|2 BC}}produces:{{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC}}produces:{{cat more|1 BC|2 BC|3 BC}}produces:{{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC|Talk:3 BC|l3=3 BC}}produces:{{cat more|1 BC|2 BC|3 BC|4 BC}}produces:{{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC|Talk:3 BC|l3=3 BC|Talk:4 BC|l4=4 BC}}produces:{{cat more|1 BC|2 BC|3 BC|4 BC|5 BC}}produces:{{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC|Talk:3 BC|l3=3 BC|Talk:4 BC|l4=4 BC|Talk:5 BC|l5=5 BC}}produces:
TemplateData
TemplateData for Cat more
This templates adds a 'For more information, see ...' statement with a maximum of 5 linked Wiki pages. Each link can be labelled with a user-defined new text. If no label is defined, the link will display with its original page name.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| first link | 1 | First link to a Wiki page, formatted as 'internal' Wiki-link, f.e. 'WP:WikiProject' or 'articlename' | String | required |
| label first link | l1 | Format: l1=labeltext. A user-defined label for the first Wiki-link, f.e. 'WP:WikiProject' as first parameter and 'l1=Project' would display 'Project' but link to 'WP:WikiProject' | String | optional |
| second link | 2 | Second link to another Wiki page, same formatting as the first link. Note: 3 more links 3,4,5 and (optional) labels l3,l4,l5 can be added manually | String | optional |
| label second link | l2 | Format: l2=labeltext. A user-defined label for the second Wiki-link. Note: 3 more links 3,4,5 and (optional) labels l3,l4,l5 can be added manually | String | optional |
Redirects
{{Category more}}
See also