Difference between revisions of "Template:Cat more"

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
(Add optional piping per TFD outcome)
imported>Plastikspork
(Add transition code to match syntax of Template:Main)
Line 1: Line 1:
:<div class="boilerplate" id="catmore">''For more information, see '''[[{{{1|{{PAGENAME}}}}}{{#if:{{{2|}}}|{{!}}{{{2|}}}}}]]'''.''</div><noinclude>
+
:<div class="boilerplate" id="catmore">''For more information, see '''[[{{{1|{{PAGENAME}}}}}{{#if:{{{l1|{{{2|}}}}}}|{{!}}{{{l1|{{{2|}}}}}}}}]]'''.''</div><noinclude>
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->{{Documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 21:25, 25 September 2010

For more information, see Cat more.
Template documentation[view] [edit] [history] [purge]

Usage

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

For more information, see WP:WikiProject.

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

For more information, see WikiProject.

Multiple link targets

  • {{cat more|1 BC}} produces:
For more information, see 1 BC.
  • {{cat more|Talk:1 BC|l1=1 BC}} produces:
For more information, see 1 BC.
  • {{cat more|1 BC|2 BC}} produces:
For more information, see 2 BC.
  • {{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC}} produces:
For more information, see 1 BC.
  • {{cat more|1 BC|2 BC|3 BC}} produces:
For more information, see 2 BC.
  • {{cat more|Talk:1 BC|l1=1 BC|Talk:2 BC|l2=2 BC|Talk:3 BC|l3=3 BC}} produces:
For more information, see 1 BC.
  • {{cat more|1 BC|2 BC|3 BC|4 BC}} produces:
For more information, see 2 BC.
  • {{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:
For more information, see 1 BC.
  • {{cat more|1 BC|2 BC|3 BC|4 BC|5 BC}} produces:
For more information, see 2 BC.
  • {{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:
For more information, see 1 BC.

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

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'

Stringoptional
second link2

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

Stringoptional
label second linkl2

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

Stringoptional

Redirects

See also