Werthead Posted August 29, 2009 Share Posted August 29, 2009 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. Link to comment Share on other sites More sharing options...
Evrach Posted August 29, 2009 Share Posted August 29, 2009 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.lagardedenuit.com/wiki/index.ph...ille_du_Trident Link to comment Share on other sites More sharing options...
Werthead Posted August 29, 2009 Author Share Posted August 29, 2009 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. Link to comment Share on other sites More sharing options...
Evrach Posted August 29, 2009 Share Posted August 29, 2009 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.westeros.org/index.php/Blackfyre_RebellionIf you have any other question about wiki syntax ; don't hesitate. Link to comment Share on other sites More sharing options...
Werthead Posted August 29, 2009 Author Share Posted August 29, 2009 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. Link to comment Share on other sites More sharing options...
Scafloc Posted August 30, 2009 Share Posted August 30, 2009 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. Link to comment Share on other sites More sharing options...
Evrach Posted August 30, 2009 Share Posted August 30, 2009 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. Link to comment Share on other sites More sharing options...
Evrach Posted August 30, 2009 Share Posted August 30, 2009 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.