Wikia One Piece
Wikia One Piece
Baris 1: Baris 1:
 
{| class="toccolours" align="center" width=95% style="border:1px solid #FFF0B3; margin-bottom:5px;" title="{{{template|{{PAGENAME}}}}}"
 
{| class="toccolours" align="center" width=95% style="border:1px solid #FFF0B3; margin-bottom:5px;" title="{{{template|{{PAGENAME}}}}}"
 
|
 
|
{| align="center" class="collapsible collapsed" style="position: relative; font-size: 90%; clear: both; text-align: center; width: 100%;" border="0" cellpadding="1" cellspacing="1"
+
{| align="center" class="mw-collapsible mw-collapsed" style="position: relative; font-size: 90%; clear: both; text-align: center; width: 100%;" border="0" cellpadding="1" cellspacing="1"
 
|-
 
|-
 
!align=center class="cs {{{colorscheme|}}}" {{#if:{{{colorscheme|}}}||style="color:#{{{textcolor|000000}}}; background:#{{{backcolor|FFFFFF}}};"}} <!--
 
!align=center class="cs {{{colorscheme|}}}" {{#if:{{{colorscheme|}}}||style="color:#{{{textcolor|000000}}}; background:#{{{backcolor|FFFFFF}}};"}} <!--
Baris 82: Baris 82:
 
-->|
 
-->|
 
{{!}}colspan=2{{!}}
 
{{!}}colspan=2{{!}}
{{{!}} align="center" class="collapsible" style="clear: both; text-align: center; width: 100%;" border="0" cellpadding="1" cellspacing="1"
+
{{{!}} align="center" class="mw-collapsible" style="clear: both; text-align: center; width: 100%;" border="0" cellpadding="1" cellspacing="1"
 
{{!}}-
 
{{!}}-
 
!align=center class="cs {{{colorscheme1|{{{colorscheme|}}}}}}" {{#if:{{{colorscheme1|{{{colorscheme|}}}}}}||style="color:#{{{textcolor1|{{{textcolor|000000}}}}}}; background:#{{{backcolor1|{{{backcolor|FFFFFF}}}}}};"}} colspan=2 {{!}}<!--
 
!align=center class="cs {{{colorscheme1|{{{colorscheme|}}}}}}" {{#if:{{{colorscheme1|{{{colorscheme|}}}}}}||style="color:#{{{textcolor1|{{{textcolor|000000}}}}}}; background:#{{{backcolor1|{{{backcolor|FFFFFF}}}}}};"}} colspan=2 {{!}}<!--
Baris 163: Baris 163:
 
-->|
 
-->|
 
{{!}}colspan=2{{!}}
 
{{!}}colspan=2{{!}}
{{{!}} align="center" class="collapsible" style="clear: both; text-align: center; width: 100%;" border="0" cellpadding="1" cellspacing="1"
+
{{{!}} align="center" class="mw-collapsible" style="clear: both; text-align: center; width: 100%;" border="0" cellpadding="1" cellspacing="1"
 
{{!}}-
 
{{!}}-
 
!align=center class="cs {{{colorscheme2|{{{colorscheme|}}}}}}" {{#if:{{{colorscheme2|{{{colorscheme|}}}}}}||style="color:#{{{textcolor2|{{{textcolor|000000}}}}}}; background:#{{{backcolor2|{{{backcolor|FFFFFF}}}}}};"}} colspan=2 {{!}} <!--
 
!align=center class="cs {{{colorscheme2|{{{colorscheme|}}}}}}" {{#if:{{{colorscheme2|{{{colorscheme|}}}}}}||style="color:#{{{textcolor2|{{{textcolor|000000}}}}}}; background:#{{{backcolor2|{{{backcolor|FFFFFF}}}}}};"}} colspan=2 {{!}} <!--
Baris 244: Baris 244:
 
-->|
 
-->|
 
{{!}}colspan=2{{!}}
 
{{!}}colspan=2{{!}}
{{{!}} align="center" class="collapsible" style="clear: both; text-align: center; width: 100%;" border="0" cellpadding="1" cellspacing="1"
+
{{{!}} align="center" class="mw-collapsible" style="clear: both; text-align: center; width: 100%;" border="0" cellpadding="1" cellspacing="1"
 
{{!}}-
 
{{!}}-
 
!align=center class="cs {{{colorscheme3|{{{colorscheme|}}}}}}" {{#if:{{{colorscheme3|{{{colorscheme|}}}}}}||style="color:#{{{textcolor3|{{{textcolor|000000}}}}}}; background:#{{{backcolor3|{{{backcolor|FFFFFF}}}}}};"}} colspan=2 {{!}} <!--
 
!align=center class="cs {{{colorscheme3|{{{colorscheme|}}}}}}" {{#if:{{{colorscheme3|{{{colorscheme|}}}}}}||style="color:#{{{textcolor3|{{{textcolor|000000}}}}}}; background:#{{{backcolor3|{{{backcolor|FFFFFF}}}}}};"}} colspan=2 {{!}} <!--
Baris 325: Baris 325:
 
-->|
 
-->|
 
{{!}}colspan=2{{!}}
 
{{!}}colspan=2{{!}}
{{{!}} align="center" class="collapsible" style="clear: both; text-align: center; width: 100%;" border="0" cellpadding="1" cellspacing="1"
+
{{{!}} align="center" class="mw-collapsible" style="clear: both; text-align: center; width: 100%;" border="0" cellpadding="1" cellspacing="1"
 
{{!}}-
 
{{!}}-
 
!align=center class="cs {{{colorscheme4|{{{colorscheme|}}}}}}" {{#if:{{{colorscheme4|{{{colorscheme|}}}}}}||style="color:#{{{textcolor4|{{{textcolor|000000}}}}}}; background:#{{{backcolor4|{{{backcolor|FFFFFF}}}}}};"}} colspan=2 {{!}} <!--
 
!align=center class="cs {{{colorscheme4|{{{colorscheme|}}}}}}" {{#if:{{{colorscheme4|{{{colorscheme|}}}}}}||style="color:#{{{textcolor4|{{{textcolor|000000}}}}}}; background:#{{{backcolor4|{{{backcolor|FFFFFF}}}}}};"}} colspan=2 {{!}} <!--
Baris 406: Baris 406:
 
-->|
 
-->|
 
{{!}}colspan=2{{!}}
 
{{!}}colspan=2{{!}}
{{{!}} align="center" class="collapsible" style="clear: both; text-align: center; width: 100%;" border="0" cellpadding="1" cellspacing="1"
+
{{{!}} align="center" class="mw-collapsible" style="clear: both; text-align: center; width: 100%;" border="0" cellpadding="1" cellspacing="1"
 
{{!}}-
 
{{!}}-
 
!align=center class="cs {{{colorscheme5|{{{colorscheme|}}}}}}" {{#if:{{{colorscheme5|{{{colorscheme|}}}}}}||style="color:#{{{textcolor5|{{{textcolor|000000}}}}}}; background:#{{{backcolor5|{{{backcolor|FFFFFF}}}}}};"}} colspan=2 {{!}} <!--
 
!align=center class="cs {{{colorscheme5|{{{colorscheme|}}}}}}" {{#if:{{{colorscheme5|{{{colorscheme|}}}}}}||style="color:#{{{textcolor5|{{{textcolor|000000}}}}}}; background:#{{{backcolor5|{{{backcolor|FFFFFF}}}}}};"}} colspan=2 {{!}} <!--

Revisi per 27 Juli 2013 14.31

[v · e · ?]
{{{title}}}
{{{class0.1}}}: {{{info0.1}}}
{{{class0.2}}}: {{{info0.2}}}
{{{class0.3}}}: {{{info0.3}}}
{{{title1}}}
{{{class1.1}}}: {{{info1.1}}}
{{{class1.2}}}: {{{info1.2}}}
{{{class1.3}}}: {{{info1.3}}}
{{{title2}}}
{{{class2.1}}}: {{{info2.1}}}
{{{class2.2}}}: {{{info2.2}}}
{{{class2.3}}}: {{{info2.3}}}
{{{title3}}}
{{{class3.1}}}: {{{info3.1}}}
{{{class3.2}}}: {{{info3.2}}}
{{{class3.3}}}: {{{info3.3}}}
Template-info.svg  Templat Dokumentasi (untuk templat di atas, kadang-kadang tersembunyi atau tak terlihat) (lihat - sunting - riwayat)

This template is the base template for every navibox.

Example of use of this template: Template:Alabasta Navibox

[v · e · ?]
Alabasta
Keluarga Kerajaan: Nefertari Cobra  •  Nefertari Titi   •  Nefertari Vivi
Staf Istana: Igaram  •  Chaka  •  Pell  •  Koza  •  Pasukan Bebek Penagih Super Spot (Karoo  •  Matsuge)  •  Terracotta  •  Pengawal Tsumegeri   •  Ho  •  Maidy
Suna Suna Clan dan Pemberontak: Erik  •  Farafra  •  Okame  •  Kebi  •  Natto
Rainbase: Baroque Works  (Crocodile  •  Nico Robin)  •  Ultraking  •  Tentara Bayaran Koala
Warga Lainnya: Yoshimoto  •  Toto  •  Aswa  •  Potsun  •  Kappa  •  Hasami  •  Agotogi  •  Bajak Laut Barbar  (Barbarossa  •  Rasa  •  Zaba)  •  Kamonegi   •  Camus   •  Scorpion   •  Chip dan Dip   •  Popo 
Kemampuan
Buah Iblis: Tori Tori no Mi, Model: Falcon  •  Inu Inu no Mi, Model: Jackal  •  Suna Suna no Mi   •  Hana Hana no Mi   •  Toge Toge no Mi  •  Inu Inu no Mi, Model: Dachshund  •  Mogu Mogu no Mi  •  Bomu Bomu no Mi  •  Kilo Kilo no Mi
Senjata: Peacock Slashers  •  Flintlock .44 Caliber 6 Shot Revolver
Dukungan: Hero Water
Artikel terkait
Lokasi: Alubarna (Makam Raja)  •  Rainbase (Makan Malam Hujan)  •  Gurun Sandora (Sungai Sandora  •  Nanohana (Spice Bean)  •  Erumalu  •  Kafe Spiders  •  Melias   •  Ido   •  Badland   •  Yuba  •  Katorea)  •  Tamarisk  •  Suiren  •  S.Mart
Arc Cerita: Arc Alabasta  •  Arc Post-Enies Lobby  •  Chapter 0  •  Arc Pascaperang  •  Arc Pulau Whole Cake  •  Arc Reverie
Cerita Sampul: Gedatsu's Accidental Blue-Sea Life  •  From the Decks of the World  •  From the Decks of the World: The 500,000,000 Man Arc
Lainnya: Bubuk Penari  •  Operasi Utopia  •  Reverie

How to Use It

The template is composed of 2 different parts:

  • the "title" parts which are coloured and centered (Alabasta,Abilities)
  • the "class" parts which contain the informative articles (Anime only, Locations...)

Title Parts

The "title" parts have 2 parameters:

  • title (or title1, title2...): contents of the title bar, which can be a link.
  • colorscheme (or colorscheme1, colorscheme2...): color scheme of the title bar.

The non-numbered title and colorscheme parameters refer to the main title of the navibox (the one that's seen when the navibox is collapsed). The others are numbered from 1 to 5. The number is associated to the title position in the final template.

If one of the subtitles have no associated color scheme, the main color scheme is used. If there exists no color scheme corresponding to the color you want, you can use the backcolor and/or textcolor optional parameters (also declined in main/numbered versions). Those arguments override the specified color scheme, if any.


Examples
  • The title Alabasta which is the main title and link to Alabasta is coded like this:
 |title=[[Alabasta]]
 |colorscheme=AlabastaColors
  • The title Related Articles which is the second subtitle and and doesn't link to any page is coded like this:
 |title2=Related Articles
(note that we don't have to specify colorcheme2 since we want it to be the same as the main color scheme
  • Suppose that, for some reason, we want to use different colors for this last title, for which no color scheme exists:
 |title2=Related Articles
 |backcolor2=123456
 |textcolor2=ABCDEF
(note that the # is omitted in the color hex-code)


Class Parts

The class parts have 2 parameters:

  • class: contents of the class written in bold black in the left part of the table, which can be a link.
  • info : the class' list of articles.

Each parameter is associated with 2 numbers in the form x.y. x refers to the title number (0 for the main classes), y refers to the position of the class in the table (there can be 5 subtitle sections (not including the main one) which can have up to 10 classes each).

Examples
  • The class Devil Fruit based which is the first class of the first subsection (x=1, y=1) and links to Devil Fruit is coded like this:
 |class1.1=[[Devil Fruit|Devil Fruit Based]]
 |info1.1={{Navibox/info
            | [[Tori Tori no Mi, Model: Falcon]]
            | [[Inu Inu no Mi, Model: Jackal]]
          }}
(note the use of Template:Navibox/info for the list to be displayed properly.)
  • The class Others which is the 4th class of the second subsection (x=2, y=4) and doesn't link to any page is coded like this:
 |class2.4=Others
 |info2.4={{Navibox/info
            | [[Dance Powder]]
            | [[Suna Suna Clan]]
          }}
Notes
  • Beware of the position of the x and y numbers in the parameters (x can be between 0 and 5, y can be between 1 and 10)
  • Classes are optional, i.e. a title can have no associated class section. This is used mainly for the main classes (numbered 0), see Template:Devil Fruits.
  • Class names and info are optional too. In a subsection, only the title is mandatory.
  • Use Template:Navibox/info in the info parameters, for the list to be displayed properly.

Organisation

A typical organisation for this template would be something like this :

{{Navibox
  |template={{subst:PAGENAME}}
  |title=[[Enel|yyyy]]
  |colorscheme=MarinesColors

  |class0.1=[[One Piece|tata]]
  |info0.1={{Navibox/info
             | [[Eiichiro Oda|Gabba Gabba]]
             | [[Shanks|Hey]]
           }}
  |class0.2=[[Marshall D. Teach|tete]]
  |info0.2={{Navibox/info
             | [[Edward Newgate|Whoopee]]
             | [[Nami|Yee-ha]]
           }}
  
  |title1=yyy
  |class1.1=[[Tony Tony Chopper|toto]] 
  |info1.1={{Navibox/info
             | [[Magellan|abc]]
             | [[Hody Jones|def]]
           }}
  |class1.2=tata
  |info1.2={{Navibox/info
             | [[Bell-mère|aaaaa]]
             | [[Usopp|zzzzzzzz]]
           }}
}}

This would output:

[v · e · ?]
yyyy
tata: Gabba Gabba  •  Hey
tete: Whoopee  •  Yee-ha
yyy
toto: abc  •  def
tata: aaaaa  •  zzzzzzzz

Most Common Mistakes

This paragraph describes the most common errors that one can make when using this template, please read them carefully as they contain useful information.

There Are Some Abnormal Signs

If something like {{{title}}} appears, it probably means that you forgot to set a parameter. Cf above for the good use of parameters.

Some Parts Are Missing or in a Bad Place

The maximum number for subtitles is 5 (+ the main title), the maximum number of classes is 10, if you have parameter like title6 or class3.11, they are not displayed.

Beware of the classes number not referring to the good title section. Something like this won't work, since the second class is badly numbered:

 |title1
 |class1.1
 |class2.1
Kunjungi Templat:Navibox/doc untuk mengedit teks ini! (Bagaimana ini bekerja?) (segarkan teks ini - kenapa?)