FANDOM


Mentoring requests The Formula 1 Wiki

What is your username? Are you an admin on the wiki you are asking about?

I am User:Gyarados Magnus and yes, I am an admin on my wiki.

Please link to the wiki (or the specific templates or pages you want help with) here:

The Formula 1 Wiki, Infobox I'm trying to replicate, Draft infobox to replace it with.

What would you like help with?

I would like to colour three of the labels (in gold, silver and bronze respectively), and I have no idea how to, assuming it even is possible at this stage.

Any other information (e.g. links, screenshots, or snippets):

A completed form of the infobox is at this article with the draft infobox of the same article generated in one of my sandboxes.

Responses

Done, see:

You can learn more about the nth type here:

Dessamator (talk) 08:55, December 2, 2015 (UTC)

Thank you, it worked. However, to put it into action I had to employ some fancy trickery, which involved some non-breaking-en-spaces which I only want to appear on the desktop version and not on the mobile version. I know this isn't strictly the new infobox coding but do you know how to do this (again, if possible)? GyaroMaguus 12:06, December 2, 2015 (UTC)

To separate items you can use either lists e.g. <ul>

(see [1]) and hide the bullet using  something like:
.pi-theme-f1 .pi-data-value {
  list-style-type:none; 
}

But because Wikia ignores Global CSS, you may need to use <div>

<div>(german) Michael</div>
<div>Ferrari</div>

Dessamator (talk) 14:28, December 2, 2015 (UTC)

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.