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

Template:Sclass/core

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
< Template:Sclass
Template documentation[view] [edit] [history] [purge]

This template provides essential services to {{sclass}} and {{sclass2}}. NOT TO BE USED DIRECTLY IN ARTICLE SPACE.

Usage

{{sclass}} and {{sclass2-}} pass all of the parameters received from the article along with a format parameter to {{sclass/core}}. The format parameter, simply the name of the calling template, controls how {{sclass/core}} formats the output. Output format is described in the appropriate template documentation.

{{sclass|class name|ship type|format|ship-type disambiguator|classname disambiguator|format=template name}}
the unnamed third parameter (format) should not be confused with the named parameter |format=. The unnamed third parameter controls how the various parts are assembled and linked. The named |format= parameter controls italics and hyphenation.

In article space the {{sclass}} template is written:

{{sclass|Haskell|attack transport|3}}

{{sclass}} makes a call to {{sclass/core}} that more-or-less amounts to this:

{{sclass/core|Haskell|attack transport|3|||format=sclass}}

Categories, module used

  • Template:Preview warning
The above documentation is transcluded from Template:Sclass/core/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:Sclass/core&oldid=30061"
Last edited on 2 July 2021, at 11:02

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 2 July 2021, at 11:02.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop