FANDOM


Forums: Index Requested Templates "Campaign" template


Hi, I have some experience working with templates in the past, but I've only recently returned to the wikia platform. A lot seems to have changed with regards to code, and there's a lot I don't recognize. I've managed to borrow a little code from elsewhere, and feel like I have a marginal understanding of how it functions, but I can't seem to find where it's drawing its color palette from. I can only assume that it's using the wiki's theme, which is problematic for me. Does anyone know how I'd go about changing that and adding custom colors for the background of the title box, and the infobox in general?

Thanks,

Flamefang (talk) 22:58, February 8, 2017 (UTC)

<infobox theme="Battle300">
    <title source="name"></title>
    <group>
    	<header></header>
        <data source="conflict"><label>Conflict</label></data>
        <data source="begin"><label>Begin</label></data>
        <data source="end"><label>End</label></data>	
        <data source="place"><label>Place</label></data>	
        <data source="result"><label>Outcome</label></data>
        <data source="battles"><label>Battles</label></data>		
    </group>
    <group layout="horizontal" show="incomplete">
    	<header>Combatants</header>
        <data source="side1"></data>	
        <data source="side2"></data>
    </group>
    <group layout="horizontal" show="incomplete">
    	<header>Commanders</header>
        <data source="commanders1"></data>	
        <data source="commanders2"></data>
    </group>
    <group layout="horizontal" show="incomplete">
    	<header>Strength</header>
        <data source="forces1"></data>	
        <data source="forces2"></data>
    </group>
    <group layout="horizontal" show="incomplete">
    	<header>Casualties</header>
        <data source="casual1"></data>	
        <data source="casual2"></data>
    </group>
    <group layout="horizontal" show="incomplete">
        <header>Civilian casualties</header>
        <data source="civilian"></data>
    </group>
	<navigation><small>[[Template:Campaign|[Source]]]</small></navigation>
</infobox>

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.