The Latest News
Connect with Us
Notable Releases
From the Store
A Game of Thrones
A Game of Thrones
Amazon.co.uk Hardcover
Featured Sites
License Holders

Jump to content


Templates


  • Please log in to reply
7 replies to this topic

#1 Werthead

Werthead

    Immortal Robot from the Future

  • Forum Moderators
  • PipPipPipPipPipPipPipPip
  • 20,370 posts

Posted 28 August 2009 - 09:49 PM

Anyone have any idea on how to copy over Wikipedia templates (with citation!) without going stark raving mad?

I've been fiddling around trying to get a good military template that can be used for battles and wars, and the one on Wikipedia is excellent. The only problem is that it is built on a whole foundation involving other templates. I worked out that to copy it onto the Wiki would involve copying several other templates and getting them to line up with one another and work properly, which I suspect will be astonishingly tedious.

#2 Evrach

Evrach

    Squire

  • Members
  • PipPipPipPip
  • 229 posts

Posted 29 August 2009 - 02:54 AM

You can use La Garde de Nuit's template and modify coulours & size at your convenience, it's almost the same structure that wikipedia's one but there's no other minor templates to make it work.

Sample with Battle of the Trident : http://www.lagardede...ille_du_Trident

Edited by Evrach, 29 August 2009 - 03:59 AM.


#3 Werthead

Werthead

    Immortal Robot from the Future

  • Forum Moderators
  • PipPipPipPipPipPipPipPip
  • 20,370 posts

Posted 29 August 2009 - 02:25 PM

If I'd read that a bit earlier, that might have led to less frustration ;)

Anyway, using Wikia, I ended up creating a reasonable infobox that looks good (could probably do to change the colours to something more SoIaF-ish, but for now it's okay). When I translated it to WoIaF, it didn't work. Putting exactly the same code into the Blackfyre Rebellion page on WoIaF as on Wikia resulted in the formatting going beserk, half the table shooting off the left-hand side of the page and the other half disappearing off the right and ballsing up all the sidebars.

Anyway, I reverted that but can't work out what's wrong. Something to do with the spacing I imagine, since Wikia and Wikipedia use exactly the same commands for colours and everything else.

#4 Evrach

Evrach

    Squire

  • Members
  • PipPipPipPip
  • 229 posts

Posted 29 August 2009 - 04:01 PM

Lol ; that's a little chaotical template, but you're right, it works.
In fact the error was in the {{!}} template.
I corrected it.
Now the template work : http://awoiaf.wester...kfyre_Rebellion

If you have any other question about wiki syntax ; don't hesitate.

Edited by Evrach, 29 August 2009 - 04:07 PM.


#5 Werthead

Werthead

    Immortal Robot from the Future

  • Forum Moderators
  • PipPipPipPipPipPipPipPip
  • 20,370 posts

Posted 29 August 2009 - 04:58 PM

Excellent :)

I wanted to add a 'Battles' sub-category between 'Location' and 'Result', but one that would only appear if used (using the 'IF' command), as you wouldn't want it appearing in an entry on an individual battle*. Any idea on how to do that? Every time I tried it didn't seem to work.

* i.e. you wouldn't want a 'battles' subcategory appearing on the entry for 'Battle of the Redgrass Field' but for 'Blackfyre Rebellion' you could have a battles subcategory including the Redgrass Field, or for the War of the Five Kings you could list the battles of Oxcross, the Blackwater, Duskendale etc.

#6 Scafloc

Scafloc

    Noble

  • Members
  • PipPipPipPipPipPipPip
  • 585 posts

Posted 29 August 2009 - 07:26 PM

Other option is using the battlebox template. It is used at Battle of the Trident. <br>
Most parameters are the same. I saw that the template on wikia has a coloured section. Feel free to change the battlebox template.

Edited by Scafloc, 29 August 2009 - 07:26 PM.


#7 Evrach

Evrach

    Squire

  • Members
  • PipPipPipPip
  • 229 posts

Posted 30 August 2009 - 03:31 AM

View PostWerthead, on Aug 29 2009, 23.58, said:

Excellent :)

I wanted to add a 'Battles' sub-category between 'Location' and 'Result', but one that would only appear if used (using the 'IF' command), as you wouldn't want it appearing in an entry on an individual battle*. Any idea on how to do that? Every time I tried it didn't seem to work.

* i.e. you wouldn't want a 'battles' subcategory appearing on the entry for 'Battle of the Redgrass Field' but for 'Blackfyre Rebellion' you could have a battles subcategory including the Redgrass Field, or for the War of the Five Kings you could list the battles of Oxcross, the Blackwater, Duskendale etc.

With the "if" command, it's easy to do. I'll do this as soon as I have time to do it.

#8 Evrach

Evrach

    Squire

  • Members
  • PipPipPipPip
  • 229 posts

Posted 30 August 2009 - 03:57 AM

Done ; in fact I added "if" commands for all the parameters ; so if there is a war/battle, you don't know the date,result or location, you can use easily the box.

Scafloc > The battlebox template is an infobox 1.0 ; without any parser function ; the new box is an infobox 2.0 with parser functions ^^.
It's that that allow us to use the "if" command for exemple ; and many other commands not used here.