Difference between revisions of "Template:Cat more/doc"

From blackwiki
Jump to navigation Jump to search
imported>Dpleibovitz
(Use </includeonly> properly)
imported>GermanJoe
(+ templatedata)
Line 18: Line 18:
 
* <code><nowiki>{{cat more|1|2|3|4|5}}</nowiki></code> produces: {{cat more|1|2|3|4|5}}
 
* <code><nowiki>{{cat more|1|2|3|4|5}}</nowiki></code> produces: {{cat more|1|2|3|4|5}}
 
* <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|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}}
 +
 +
== 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": "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 and (optional) labels can be added manually"
 +
},
 +
"l2": {
 +
"label": "label second link",
 +
"type": "string",
 +
"description": "User-defined label for the second Wiki-link. Note: 3 more links and (optional) labels can be added manually"
 +
}
 +
}
 +
}
 +
</templatedata>
  
 
==See also==
 
==See also==

Revision as of 13:21, 30 July 2013

Usage

{{cat more|WP:WikiProject}} produces:

{{cat more|WP:WikiProject|l1=WikiProject}} produces:

Multiple link targets

  • {{cat more|1}} produces:
  • {{cat more|Talk:1|l1=1}} produces:
  • {{cat more|1|2}} produces:
  • {{cat more|Talk:1|l1=1|Talk:2|l2=2}} produces:
  • {{cat more|1|2|3}} produces:
  • {{cat more|Talk:1|l1=1|Talk:2|l2=2|Talk:3|l3=3}} produces:
  • {{cat more|1|2|3|4}} produces:
  • {{cat more|Talk:1|l1=1|Talk:2|l2=2|Talk:3|l3=3|Talk:4|l4=4}} produces:
  • {{cat more|1|2|3|4|5}} produces:
  • {{cat more|Talk:1|l1=1|Talk:2|l2=2|Talk:3|l3=3|Talk:4|l4=4|Talk:5|l5=5}} produces:

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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.

Template parameters

ParameterDescriptionTypeStatus
first link1

First link to a Wiki page, formatted as 'internal' Wiki-link, f.e. 'WP:WikiProject' or 'articlename'

Stringrequired
label first linkl1

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'

Stringoptional
second link2

Second link to another Wiki page, same formatting as the first link. Note: 3 more links and (optional) labels can be added manually

Stringoptional
label second linkl2

User-defined label for the second Wiki-link. Note: 3 more links and (optional) labels can be added manually

Stringoptional

See also