Show/Hide in the Overview Heritage table/section?

POSTED: Thu Oct 19, 2017 9:50 pm

So, I was trying to do something on Avi's wiki where it says "95% jackal" and then there's a show/hide thing that shows the percentages. On the table, there's two show/hides for her pack information that work perfectly, but when I do it for her wiki, it ends up breaking it.
Code: Select all
(:toggle hide species:)
>>font-size=11px id=species<<
** 25% [[Resources/Abyssinian Jackal]]
** 25% [[Resources/Algerian Jackal]]
** 10% [[Resources/Side-Striped Jackal]]
** 15% [[Resources/Cape Jackal]]
** 20% [[Resources/Senegalese Jackal]]
>><<


Can it be done? I tried it on Iorek's wiki, too and it breaks it. Is it impossible or is it just bad code?




User avatar
Silverfrost
Luperci
Somebody make me feel alive
The queen of a wretched design
I walk through the fire

POSTED: Thu Oct 19, 2017 10:23 pm

I wrote the first one when I made it for Skana's ridiculous amount of ranks she's had x3

You can't use the >>STYLE<< code within another >>STYLE<< code, at least, not with how I wrote the original coding for my crew. Otherwise, it breaks the wiki because it's trying to close the first >>STYLE<< code.

If you look at how I did the other code, you'll see that I had to put the >>STYLE<< code within the table style code itself.

So, instead of this:

>>font-size=12px padding-top=20px padding-bottom=0px<<
(:table width=100%:)
(:cellnr colspan=4:)
%center bgcolor=#9d9d9d padding-top=10px padding-bottom=0px%'''[++Overview++]'''%%
(:cellnr width=25%:)
%center bgcolor=#cccccc%'''Basics'''%%
(:cell width=30%:)
%center bgcolor=#cccccc%'''Heritage'''%%
(:cell width=25%:)
%center bgcolor=#cccccc%'''NPCs'''%%
(:cell width=20%:)
%center bgcolor=#cccccc%'''Etc.'''%%
(:cellnr:)
* '''Date of Birth''': 09 January 2014
* '''Gender''': Female
* '''Luperci''': Ortus
* '''Residence''': [[#residence|Thackary Village]], [[Packs/Anathema]]
* '''Mate''': [[Characters/Maelyx Nocturne]]

(:cell:)
* '''Family''': [[Families/Phoenix]]
* '''Species''': Jackal-dominant Hybrid
* '''Subspecies''':
** 95% Jackal [^25% [[Resources/Abyssinian Jackal]], 25% [[Resources/Algerian Jackal]], 10% [[Resources/Side-Striped Jackal]], 15% [[Resources/Cape Jackal]], 20% [[Resources/Senegal Jackal]]^]
** 5% Wolf




You need to do this:

(:table width=100% style=font-size:12px; padding-top=20px; padding-bottom=0px;:)
(:cellnr colspan=4:)
%center bgcolor=#9d9d9d padding-top=10px padding-bottom=0px%'''[++Overview++]'''%%
(:cellnr width=25%:)
%center bgcolor=#cccccc%'''Basics'''%%
(:cell width=30%:)
%center bgcolor=#cccccc%'''Heritage'''%%
(:cell width=25%:)
%center bgcolor=#cccccc%'''NPCs'''%%
(:cell width=20%:)
%center bgcolor=#cccccc%'''Etc.'''%%
(:cellnr:)
* '''Date of Birth''': 09 January 2014
* '''Gender''': Female
* '''Luperci''': Ortus
* '''Residence''': [[#residence|Thackary Village]], [[Packs/Anathema]]
* '''Mate''': [[Characters/Maelyx Nocturne]]

(:cell:)
* '''Family''': [[Families/Phoenix]]
* '''Species''': Jackal-dominant Hybrid
* '''Subspecies''':
** 95% Jackal (:toggle hide subspecies:)
>>font-size=11px id=subspecies<<

** 25% [[Resources/Abyssinian Jackal]]
** 25% [[Resources/Algerian Jackal]]
** 10% [[Resources/Side-Striped Jackal]]
** 15% [[Resources/Cape Jackal]]
** 20% [[Resources/Senegalese Jackal]]
>><<
** 5% Wolf



There's a slight spacing indent when you do it, but, it looks like it's only noticeable in bullets that are further indented (i.e. ** is the issue, when you only do *, the indent is not there).
Asura Creo

Loners
Wolfdog
User avatar
Songbird
Moderator Luperci
Meant to fly
in that sky

Wiki Collaboration