Template:Sclass/core
This template provides essential services to {{sclass}}, {{sclass2}}, {{sclass-}}, and {{sclass2-}}.
Usage
{{sclass}}, {{sclass2}}, {{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|class-name 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.
- the unnamed third parameter (format) should not be confused with the named parameter
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}}
The other templates in this family do the same except that the |format= parameter is different:
{{sclass}}:|format=sclass{{sclass2}}:|format=sclass2{{sclass-}}:|format=sclass-{{sclass2-}}:|format=sclass2-
Test cases for this template and for {{sclass/core/sandbox}} are at the testcases page.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.