• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Cat more if exists

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 44,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template uses Lua:
  • Module:Cat more if exists

A variant of {{Cat more}} which links only to pages which actually exist

Contents

  • 1 Usage
  • 2 Multiple link targets
  • 3 TemplateData
  • 4 Redirects
  • 5 See also

Usage

{{cat more if exists|Spain}} produces:

{{cat more if exists|xyx1234567 this page no exist}} produces:

Multiple link targets

{{cat more if exists|Spain|Japan|France}} produces:

{{cat more if exists|Planet G45401|Spain|Xyzabcdefistan|Japan|France}} produces:

{{cat more if exists|Planet G45401|Spain|Xyzabcdefistan|South Qwetryopitania}} produces:

{{cat more if exists|Planet G45401|Xyzabcdefistan}} produces:

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Cat more if exists

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
second link2

Second link to another Wiki page, same formatting as the first link. Note: 3 more links 3,4,5 can be added manually

Stringoptional

Redirects

  • {{Category more if exists}}

See also

  • v
  • t
  • e
Hatnote templates for category pages
About
  • {{Category explanation}}
  • {{Cat main}}
  • {{Category main section}}
  • {{Main category}}
  • {{Cat more}}
  • {{Cat more if exists}}
See also
  • {{Category see also}}
  • {{Category see also if exists}}
  • {{Category see also if exists 2}}
  • {{Category pair}}
  • {{Preceding category}}
  • {{Succeeding category}}
Distinguish
  • {{Category distinguish}}
  • {{Category contrast}}
  • Outline
  • Category:Hatnote templates for category pages
  • See also other category-header templates
The above documentation is transcluded from Template:Cat more if exists/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Cat_more_if_exists&oldid=7227"
Categories:
  • Lua-based templates
  • Templates using TemplateData
  • Hatnote templates for category pages
Last edited on 3 October 2020, at 10:20

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 3 October 2020, at 10:20.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop