FANDOM


  • I have just set up a Fakémon wiki and I am just about to create a page for the first one. I need to create an infobox. As I can't code in HTML, I copied the code from this. For some reason, this happened. Can someone help me?

      Loading editor
    • Hi there, I recommend that you create your own infobox. Infobox Builder is really easy to use and I think it will work better for you than copying code.

        Loading editor
    • TheGoldenPatrik1 wrote:
      Hi there, I recommend that you create your own infobox. Infobox Builder is really easy to use and I think it will work better for you than copying code.

      I want it to look like that though.

        Loading editor
    • Ah, well actually that infobox looks like that mostly due to sitewide CSS, not to its actual code.

        Loading editor
    • How do you change it?

        Loading editor
    • Change what? The infobox's appearance?

        Loading editor
    • u did not copy necessary templates (roundy, color etc). that's why ur template is broken. try to use special:export page to export the template with dependencies.

        Loading editor
    • TheGoldenPatrik1 wrote:
      Change what? The infobox's appearance?

      Ya

        Loading editor
    • Ok I've created all the templates and stuff and now I have this. What should I do now?

        Loading editor
    • u did not. i suggest to contact to source wiki's admins and ask them for help. cuz guys, that created the template, will know how to copy it to another wiki.

        Loading editor
    • Instead of separate "roundy" and color templates, would it be easier to combine into a single template? I have created Template:PokemonCell using your purple color and default data locations using {{{1}}} and {{{2}}}

      style="border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -icab-border-radius: 10px; -o-border-radius: 10px; background: #C183C1; padding:2px; vertical-align:top" | '''{{{1}}}'''
        {| width="100%" style="border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -icab-border-radius: 10px; -o-border-radius: 10px; background:#FFF;"
        | {{{2}}}
        |}
      


      Template:PokemonCell is used in Template:PokemonInfobox. Template:PokemonInfobox becomes a layout template with minimal coding. The default locations {{{1}}} are replaced with infobox labels like Type and {{{2}}} are replaced with infobox labels like {{{type}}}

      {| style="border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -icab-border-radius: 10px; -o-border-radius: 10px; float:right; text-align:center; width:33%; max-width:400px; min-width:350px; background:#A040A0; border: 3px solid #6f027c; padding:2px; margin:0 0 1em 1em"
      
      |-
      | colspan="3" width="75%" style="background:#FFF;" |
      {| width="100%" style="background:none;"
      | width="50%" | <big><big>'''{{{name|{{PAGENAME}} }}}'''</big></big>
      | <span lang="ja">'''{{{jname|Japanese}}}'''</span> <br/>''{{{tmname|Romanisation}}}''
      |}
      
        |-
        | colspan="4" |
          {| width="100%" style="border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -icab-border-radius: 10px; -o-border-radius: 10px; background:#FFF;"
          | [[File:{{{image}}}|300px]]
          |}
      
      |-
      | width=100% colspan=4 {{PokemonCell|Type|{{{type}}} }}
      
      |-
      | width=50% colspan=2 {{PokemonCell|Ability|{{{ability}}} }}
      | width=50% colspan=2 {{PokemonCell|Hidden Abilities|{{{hidden abilities}}} }}
      
      |-
      | width=50% colspan=2 {{PokemonCell|Gender ratio|{{{gender ratio}}} }}
      | width=50% colspan=2 {{PokemonCell|Catch rate|{{{catch rate}}} }}
      
      |-
      | width=100% colspan=4 style="border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -icab-border-radius: 10px; -o-border-radius: 10px; background: #C183C1; padding:2px;" | '''Breeding'''
      {| width=100% style="margin-top:-0.5em"
      | width=50% colspan=2 {{PokemonCell|Egg group|{{{egg group}}} }} 
      | width=50% colspan=2 {{PokemonCell|Hatch time|{{{hatch time}}} }}
      |}
      
      |-
      | width=50% colspan=2 {{PokemonCell|Height|{{{height}}} }}
      | width=50% colspan=2 {{PokemonCell|Weight|{{{weight}}} }}
      
      |-
      | width=50% colspan=2 {{PokemonCell|Base experience yield|{{{base experience yield}}} }}
      | width=50% colspan=2 {{PokemonCell|Leveling rate|{{{leveling rate}}} }}
      
      |-
      | width=100% colspan=4 {{PokemonCell|EV yield|{{{ev yield}}} }}
      
      |-
      | width=50% colspan=2 {{PokemonCell|Body style|{{{body style}}} }}
      | width=50% colspan=2 {{PokemonCell|Footprint|{{{footprint}}} }}
      
      |-
      | width=50% colspan=2 {{PokemonCell|Pokédex color|{{{pokédex color}}} }}
      | width=50% colspan=2 {{PokemonCell|Base friendship|{{{base friendship}}} }}
      
      |}
      
      PokemonInfobox
      {{PokemonInfobox
       | name             = Shrubria
       | jname            = ハリブ
       | tmname           = Haribu
       | image            = Shrubria.png
      
       | type             = Grass
       | ability          = Overgrow
       | hidden abilities = Grass Pelt
       | gender ratio     = 87.5% male <br> 12.5% female
       | catch rate       = 45 (5.9%)
       | egg group        = Grass and Field
       | hatch time       = 5865 steps
       | height           = 1'08" m 
       | weight           = 15.7 lbs. kg 
       | base experience yield = 30 
       | leveling rate    = Unknown
       | ev yield         = Unknown
       | body style       = ?
       | footprint        = ?
       | pokédex color    = Green
       | base friendship  = 70
      }}
      


      My infobox has basic functions

      • expects all cells to be used
      • no bar for Gender ratio
      • no color boxes for EV yield
        Loading editor
    • TableWiz wrote:
      Instead of separate "roundy" and color templates, would it be easier to combine into a single template? I have created Template:PokemonCell using your purple color and default data locations using {{{1}}} and {{{2}}}
      style="border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -icab-border-radius: 10px; -o-border-radius: 10px; background: #C183C1; padding:2px; vertical-align:top" | '''{{{1}}}'''
        {| width="100%" style="border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -icab-border-radius: 10px; -o-border-radius: 10px; background:#FFF;"
        | {{{2}}}
        |}
      


      Template:PokemonCell is used in Template:PokemonInfobox. Template:PokemonInfobox becomes a layout template with minimal coding. The default locations {{{1}}} are replaced with infobox labels like Type and {{{2}}} are replaced with infobox labels like {{{type}}}

      {| style="border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -icab-border-radius: 10px; -o-border-radius: 10px; float:right; text-align:center; width:33%; max-width:400px; min-width:350px; background:#A040A0; border: 3px solid #6f027c; padding:2px; margin:0 0 1em 1em"
      
      |-
      | colspan="3" width="75%" style="background:#FFF;" |
      {| width="100%" style="background:none;"
      | width="50%" | <big><big>'''{{{name|{{PAGENAME}} }}}'''</big></big>
      | <span lang="ja">'''{{{jname|Japanese}}}'''</span> <br/>''{{{tmname|Romanisation}}}''
      |}
      
        |-
        | colspan="4" |
          {| width="100%" style="border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -icab-border-radius: 10px; -o-border-radius: 10px; background:#FFF;"
          | [[File:{{{image}}}|300px]]
          |}
      
      |-
      | width=100% colspan=4 {{PokemonCell|Type|{{{type}}} }}
      
      |-
      | width=50% colspan=2 {{PokemonCell|Ability|{{{ability}}} }}
      | width=50% colspan=2 {{PokemonCell|Hidden Abilities|{{{hidden abilities}}} }}
      
      |-
      | width=50% colspan=2 {{PokemonCell|Gender ratio|{{{gender ratio}}} }}
      | width=50% colspan=2 {{PokemonCell|Catch rate|{{{catch rate}}} }}
      
      |-
      | width=100% colspan=4 style="border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; -icab-border-radius: 10px; -o-border-radius: 10px; background: #C183C1; padding:2px;" | '''Breeding'''
      {| width=100% style="margin-top:-0.5em"
      | width=50% colspan=2 {{PokemonCell|Egg group|{{{egg group}}} }} 
      | width=50% colspan=2 {{PokemonCell|Hatch time|{{{hatch time}}} }}
      |}
      
      |-
      | width=50% colspan=2 {{PokemonCell|Height|{{{height}}} }}
      | width=50% colspan=2 {{PokemonCell|Weight|{{{weight}}} }}
      
      |-
      | width=50% colspan=2 {{PokemonCell|Base experience yield|{{{base experience yield}}} }}
      | width=50% colspan=2 {{PokemonCell|Leveling rate|{{{leveling rate}}} }}
      
      |-
      | width=100% colspan=4 {{PokemonCell|EV yield|{{{ev yield}}} }}
      
      |-
      | width=50% colspan=2 {{PokemonCell|Body style|{{{body style}}} }}
      | width=50% colspan=2 {{PokemonCell|Footprint|{{{footprint}}} }}
      
      |-
      | width=50% colspan=2 {{PokemonCell|Pokédex color|{{{pokédex color}}} }}
      | width=50% colspan=2 {{PokemonCell|Base friendship|{{{base friendship}}} }}
      
      |}
      
      PokemonInfobox
      {{PokemonInfobox
       | name             = Shrubria
       | jname            = ハリブ
       | tmname           = Haribu
       | image            = Shrubria.png
      
       | type             = Grass
       | ability          = Overgrow
       | hidden abilities = Grass Pelt
       | gender ratio     = 87.5% male <br> 12.5% female
       | catch rate       = 45 (5.9%)
       | egg group        = Grass and Field
       | hatch time       = 5865 steps
       | height           = 1'08" m 
       | weight           = 15.7 lbs. kg 
       | base experience yield = 30 
       | leveling rate    = Unknown
       | ev yield         = Unknown
       | body style       = ?
       | footprint        = ?
       | pokédex color    = Green
       | base friendship  = 70
      }}
      


      My infobox has basic functions

      • expects all cells to be used
      • no bar for Gender ratio
      • no color boxes for EV yield

      Thanks! That worked amazing!

        Loading editor
    • Just how do the links work?

        Loading editor
    • Hi

        Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message