Templat:Infobox ship
Penampilan
| Templat ini digunakan di anggaran 42,000 laman dan perubahan mungkin disedari secara meluas. Sila uji perubahan di sublaman templat (kotak pasir atau kes ujian), atau di sublaman pengguna anda sendiri. Pertimbangkan untuk membincangkan perubahan di laman perbincangan sebelum menerapkannya. |
| Templat ini menggunakan Lua: |
This template accepts these named parameters. Positional parameters are not accepted. The positional parameters are:
|sectionn=– the value assigned to these enumerated parameters is a child infobox, typically one of:{{infobox ship/image}}{{infobox ship/career}}{{infobox ship/characteristics}}{{infobox ship/class_overview}}{{infobox ship/service record}}- other infoboxen that can be configured as child infoboxen;
{{Infobox NRHP}}with|embed=yes
- see each template's documentation for parameters supported by those templates
|labeln=– the values assigned to these enumerated parameters are labels for custom infobox entries;nfor|labeln=and|datan=must match|datan=– the values assigned to these enumerated parameters are the data for custom infobox entries;nfor|datan=and|labeln=must match|display_title=– controls display styling of the article titlenone– does no article-title stylingital– uses{{italic title}}to style the article title<article title with markup>– uses{{DISPLAYTITLE:<article title with markup>}}to style the article title- when empty or omitted, attempts to automatically style the article title
|infobox_caption=– controls the infobox captionyes– uses the article title as the infobox caption. The ship's name will be auto-italicized when the article title has a recognized ship prefix (USS, MV, etc) or has a parenthetical disambiguator (year, hull number, etc) or is in the form <nationality> <ship type> <name> (with or without parenthetical disambiguator); this setting overridden by|sclass=2nodab– formats the infobox caption in the same way as the disambiguated article title except that disambiguator(s) are not displayed; for article titles with a parenthetical disambiguator, the disambiguator is omitted from the caption; for article titles in the form <nationality> <ship type> <name> (with or without parenthetical disambiguator), setting|infobox_caption=nodabwill display only <name>; this setting overridden by|sclass=2<other text>– when the assigned value is other than the keywordsyesornodab, that value is used as the infobox caption. Infobox caption text formatting is the responsibility of the editor.- when omitted or present-but-empty: the infobox does not have a caption
|sclass=– when set to2, forces unstyled title and also unstyled infobox caption (if enabled by|infobox_caption=yesor|infobox_caption=nodab); the name is taken from{{sclass2}}which creates links to theme-named-class_articles|showerrs=– for use when auto-styling fails, may give a clue why it failed; requires|infobox_caption=yesor|infobox_caption=nodab; the article should probably not be saved with|showerrs=yes
Kegunaan
[sunting sumber]Kod untuk kapal individu
[sunting sumber]Untuk kotak maklumat kapal individu, sila salin contoh yang sesuai untuk jenis kapal:
Kapal perang (kecuali kapal selam). Select show to expand. |
|---|
{{Infobox ship <!-- warships except submarines -->
|infobox_caption= <!-- keywords: yes, nodab; or caption text -->
|display_title= <!-- keywords: none, ital; or article title with markup -->
|section1={{Infobox ship/image
|image=
|image_size=
|image_caption=
|image_alt=
}}
|section2={{Infobox ship/career
|hide_header=
|country=
|flag=
|name=
|owner=
|namesake=
|ordered=
|builder=
|laid_ down=
|launched=
|acquired=
|commissioned=
|decommissioned=
|in_service=
|out_of_service=
|stricken=
|reinstated=
|honours=
|honors=
|fate=
|status=
|notes=
}}
|section3={{Infobox ship/characteristics
|hide_header=
|header_caption=
|class=
|displacement=
|length=
|beam=
|draught=
|draft=
|propulsion=
|speed=
|range=
|complement=
|sensors=
|EW=
|armament=
|armour=
|armor=
|aircraft=
|aircraft_facilities=
|notes=
}}
}}
|
Kapal selam. Select show to expand. |
|---|
{{Infobox ship <!-- submarines -->
|infobox_caption= <!-- keywords: yes, nodab; or caption text -->
|display_title= <!-- keywords: none, ital; or article title with markup -->
|section1={{Infobox ship/image
|image=
|image_size=
|image_caption=
|image_alt=
}}
|section2={{Infobox ship/career
|hide_header=
|country=
|flag=
|name=
|namesake=
|ordered=
|builder=
|laid_down=
|launched=
|acquired=
|commissioned=
|decommissioned=
|in_service=
|out_of_service=
|stricken=
|reinstated=
|fate=
|status=
}}
|section3={{Infobox ship/characteristics
|hide_header=
|header_caption=
|class=
|displacement=
|length=
|beam=
|draught=
|draft=
|propulsion=
|speed=
|range=
|endurance=
|test_depth=
|complement=
|sensors=
|EW=
|armament=
|notes=
}}
}}
|
Zaman Pelayaran. Select show to expand. |
|---|
{{Infobox ship <!-- age of sail -->
|infobox_caption= <!-- keywords: yes, nodab; or caption text -->
|display_title= <!-- keywords: none, ital; or article title with markup -->
|section1={{Infobox ship/image
|image=
|image_size=
|image_caption=
|image_alt=
}}
|section2={{Infobox ship/career
|hide_header=
|country=
|flag=
|name=
|owner=
|ordered=
|builder=
|original_cost=
|laid_down=
|launched=
|acquired=
|commissioned=
|decommissioned=
|in_service=
|out_of_service=
|renamed=
|stricken=
|reinstated=
|honours=
|honors=
|captured=
|fate=
|status=
|notes=
}}
|section3={{Infobox ship/characteristics
|hide_header=
|header_caption=
|class=
|tons burthen=
|length=
|beam=
|draught=
|draft=
|hold_depth=
|propulsion=
|sail_plan=
|complement=
|armament=
|notes=
}}
}}
|
Kapal komersial. Select show to expand. |
|---|
{{Infobox ship <!-- commercial vessels -->
|infobox_caption= <!-- keywords: yes, nodab; or caption text -->
|display_title= <!-- keywords: none, ital; or article title with markup -->
|section1={{Infobox ship/image
|image=
|image_size=
|image_caption=
|image_alt=
}}
|section2={{Infobox ship/career
|hide_header=
|name=
|owner=
|operator=
|registry=
|route=
|ordered=
|builder=
|original_cost=
|yard_number=
|way_number=
|laid_down=
|launched=
|completed=
|christened=
|acquired=
|maiden_voyage=
|in_service=
|out_of_service=
|identification=
|fate=
|status=
|notes=
}}
|section3={{Infobox ship/characteristics
|hide_header=
|header_caption=
|class=
|type=
|tonnage=
|displacement=
|length=
|beam=
|height=
|draught=
|draft=
|depth=
|decks=
|deck_clearance=
|ramps=
|ice_class=
|sail_plan=
|power=
|propulsion=
|speed=
|capacity=
|crew=
|notes=
}}
}}
|
If none of the above fit, you may use this full setup:
Full code for individual ships. Select show to expand. |
|---|
{{Infobox ship <!-- full code -->
|infobox_caption= <!-- keywords: yes, nodab; or caption text -->
|display_title= <!-- keywords: none, ital; or article title with markup -->
|section1={{Infobox ship/image
|image=
|image_size=
|image_caption=
|image_alt=
}}
|section2={{Infobox ship/career
|hide_header=
|country=
|flag=
|name=
|namesake=
|owner=
|operator=
|registry=
|route=
|ordered=
|awarded=
|builder=
|original_cost=
|yard_number=
|way_number=
|laid_down=
|launched=
|sponsor=
|christened=
|completed=
|acquired=
|commissioned=
|recommissioned=
|decommissioned=
|maiden_voyage=
|in_service=
|out_of_service=
|renamed=
|reclassified=
|refit=
|stricken=
|reinstated=
|homeport=
|identification=
|motto=
|nickname=
|honours=
|honors=
|captured=
|fate=
|status=
|notes=
|badge=
}}
|section3={{Infobox ship/characteristics
|hide_header=
|header_caption=
|class=
|type=
|tonnage=
|displacement=
|tons burthen=
|length=
|beam=
|height=
|draught=
|draft=
|depth=
|hold_depth=
|decks=
|deck_clearance=
|ramps=
|ice_class=
|power=
|propulsion=
|sail_plan=
|speed=
|range=
|endurance=
|test_depth=
|boats=
|capacity=
|troops=
|complement=
|crew=
|time_to_activate=
|sensors=
|EW=
|armament=
|armour=
|armor=
|aircraft=
|aircraft_facilities=
|notes=
}}
}}
|
Kod untuk kelas kapal
[sunting sumber]For infoboxes of ship classes, please copy the appropriate example for the type of ship class:
Kelas kapal perang (kecuali kapal selam). Select show to expand. |
|---|
{{Infobox ship <!-- warship classes -->
|infobox_caption= <!-- keywords: yes, nodab; or caption text -->
|display_title= <!-- keywords: none, ital; or article title with markup -->
|sclass= <!-- keyword: 2 -->
|section1={{Infobox ship/image
|image=
|image_size=
|image_caption=
|image_alt=
}}
|section2={{Infobox ship/class_overview
|builders=
|operators=
|class_before=
|class_after=
|subclasses=
|built_range=
|in_commission_range=
|total_ships_planned=
|total_ships_on_order=
|total_ships_building=
|total_ships_completed=
|total_ships_cancelled=
|total_ships_active=
|total_ships_laid_up=
|total_ships_lost=
|total_ships_retired=
|total_ships_scrapped=
|total_ships_preserved=
}}
|section3={{Infobox ship/characteristics
|hide_header=
|header_caption=
|type=
|displacement=
|length=
|beam=
|draught=
|draft=
|propulsion=
|speed=
|range=
|complement=
|sensors=
|EW=
|armament=
|armour=
|armor=
|aircraft=
|aircraft_facilities=
|notes=
}}
}}
|
Kelas kapal selam. Select show to expand. |
|---|
{{Infobox ship <!-- submarine classes -->
|infobox_caption= <!-- keywords: yes, nodab; or caption text -->
|display_title= <!-- keywords: none, ital; or article title with markup -->
|sclass= <!-- keyword: 2 -->
|section1={{Infobox ship/image
|image=
|image_size=
|image_caption=
|image_alt=
}}
|section2={{Infobox ship/class_overview
|builders=
|operators=
|class_before=
|class_after=
|subclasses=
|built_range=
|in_commission_range=
|total_ships_planned=
|total_ships_on_order=
|total_ships_building=
|total_ships_completed=
|total_ships_cancelled=
|total_ships_active=
|total_ships_laid_up=
|total_ships_lost=
|total_ships_retired=
|total_ships_scrapped=
|total_ships_preserved=
}}
|section3={{Infobox ship/characteristics
|hide_header=
|header_caption=
|type=
|displacement=
|length=
|beam=
|draught=
|draft=
|propulsion=
|speed=
|range=
|endurance=
|test_depth=
|complement=
|sensors=
|EW=
|armament=
|notes=
}}
}}
|
Kelas Zaman Pelayaran. Select show to expand. |
|---|
{{Infobox ship <!-- age of sail classes -->
|infobox_caption= <!-- keywords: yes, nodab; or caption text -->
|display_title= <!-- keywords: none, ital; or article title with markup -->
|sclass= <!-- keyword: 2 -->
|section1={{Infobox ship/image
|image=
|image_size=
|image_caption=
|image_alt=
}}
|section2={{Infobox ship/class_overview
|builders=
|operators=
|class_before=
|class_after=
|subclasses=
|built_range=
|in_commission_range=
|total_ships_planned=
|total_ships_on_order=
|total_ships_building=
|total_ships_completed=
|total_ships_cancelled=
|total_ships_active=
|total_ships_laid_up=
|total_ships_lost=
|total_ships_retired=
|total_ships_scrapped=
|total_ships_preserved=
}}
|section3={{Infobox ship/characteristics
|hide_header=
|header_caption=
|type=
|tons burthen=
|length=
|beam=
|draught=
|draft=
|hold_depth=
|propulsion=
|sail_plan=
|complement=
|armament=
|notes=
}}
}}
|
Kelas kapal komersial. Select show to expand. |
|---|
{{Infobox ship <!-- commercial vessel classes -->
|infobox_caption= <!-- keywords: yes, nodab; or caption text -->
|display_title= <!-- keywords: none, ital; or article title with markup -->
|sclass= <!-- keyword: 2 -->
|section1={{Infobox ship/image
|image=
|image_size=
|image_caption=
|image_alt=
}}
|section2={{Infobox ship/class_overview
|builders=
|operators=
|class_before=
|class_after=
|subclasses=
|built_range=
|in_service_range=
|total_ships_planned=
|total_ships_on_order=
|total_ships_building=
|total_ships_completed=
|total_ships_cancelled=
|total_ships_active=
|total_ships_laid_up=
|total_ships_lost=
|total_ships_retired=
|total_ships_scrapped=
|total_ships_preserved=
}}
|section3={{Infobox ship/characteristics
|hide_header=
|header_caption=
|type=
|tonnage=
|displacement=
|length=
|beam=
|height=
|draught=
|draft=
|depth=
|decks=
|deck_clearance=
|ramps=
|ice_class=
|sail_plan=
|power=
|propulsion=
|speed=
|capacity=
|crew=
|notes=
}}
}}
|
If none of the above fit, you may use this full setup:
Kod penuh untuk kelas kapal. Select show to expand. |
|---|
{{Infobox ship <!-- full code -->
|infobox_caption= <!-- keywords: yes, nodab; or caption text -->
|display_title= <!-- keywords: none, ital; or article title with markup -->
|sclass= <!-- keyword: 2 -->
|section1={{Infobox ship/image
|image=
|image_size=
|image_caption=
|image_alt=
}}
|section2={{Infobox ship/class_overview
|name=
|builders=
|operators=
|class_before=
|class_after=
|subclasses=
|cost=
|built_range=
|in_service_range=
|in_commission_range=
|total_ships_planned=
|total_ships_on_order=
|total_ships_building=
|total_ships_completed=
|total_ships_cancelled=
|total_ships_active=
|total_ships_laid_up=
|total_ships_lost=
|total_ships_retired=
|total_ships_scrapped=
|total_ships_preserved=
}}
|section3={{Infobox ship/characteristics
|hide_header=
|header_caption=
|class=
|type=
|tonnage=
|displacement=
|tons burthen=
|length=
|beam=
|height=
|draught=
|draft=
|depth=
|hold_depth=
|decks=
|deck_clearance=
|ramps=
|ice_class=
|power=
|propulsion=
|sail_plan=
|speed=
|range=
|endurance=
|test_depth=
|boats=
|capacity=
|troops=
|complement=
|crew=
|time_to_activate=
|sensors=
|EW=
|armament=
|armour=
|armor=
|aircraft=
|aircraft_facilities=
|notes=
}}
}}
|