Difference between revisions of "Template:MainPageNav"

From RimWorld Wiki
Jump to navigation Jump to search
(New form of navigation box planned for use on the main page. Currently uses static fields as a placeholder.)
 
(Added parameters)
Line 3: Line 3:
 
<div style="float:left; border-right:1px solid #ACA8A8;" >
 
<div style="float:left; border-right:1px solid #ACA8A8;" >
 
<div style="font-size:16px; background:#D9DBE2; color:#000;padding: 4px; margin-top: -10px; margin-bottom: -10px; overflow: hidden;">
 
<div style="font-size:16px; background:#D9DBE2; color:#000;padding: 4px; margin-top: -10px; margin-bottom: -10px; overflow: hidden;">
<b>Category text</b>
+
<b>[{{{Link|https://ludeon.com/forums/}}} {{{Label|Category Text}}}]</b>
 
</div><div style="padding: 3px; background:#EAECF2;">
 
</div><div style="padding: 3px; background:#EAECF2;">
<center>[[File:LudeonLogoSquare.png|72px|link=https://ludeon.com/forums/|Ludeon Forums]]</center>
+
<center>[[File:{{{Image|LudeonLogoSquare.png}}}|72px|link={{{Link|https://ludeon.com/forums/}}}|{{{Label|Category Text}}}]]</center>
 
</div></div><div style="width:auto; float:left; padding-left: 3px; padding-right: 3px;">
 
</div></div><div style="width:auto; float:left; padding-left: 3px; padding-right: 3px;">
 +
{{{Col1|&#9642; Example<br>
 
&#9642; Example<br>
 
&#9642; Example<br>
&#9642; Example<br>
+
&#9642; Example<br>}}}
&#9642; Example<br>
 
&#9642; Example<br>
 
&#9642; Example
 
 
</div><div style="width:auto; float:left; padding-left: 3px; padding-right: 3px;">
 
</div><div style="width:auto; float:left; padding-left: 3px; padding-right: 3px;">
&#9642; Example<br>
+
{{{Col2|}}}
&#9642; Example<br>
 
&#9642; Example<br>
 
&#9642; Example<br>
 
&#9642; Example
 
 
</div></div></div>
 
</div></div></div>
 
</includeonly><noinclude>{{documentation}}</noinclude>
 
</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 08:52, 8 October 2022

Documentation icon Template documentation[view] [edit] [history] [purge]

This is a template for special navigation boxes on the main page.

Usage

{{MainPageNav
|Link=https://rimworldwiki.com/wiki/Animals
|Label=Cute Animals
|Image=Chinchilla.png
|Col1=
▪ [[Husky]]<br>
▪ [[Labrador retriever]]<br>
▪ [[Yorkshire terrier]]<br>
▪ [[Snowhare]]<br>
|Col2=
▪ [[Guinea pig]]<br>
▪ [[Chinchilla]]<br>
▪ [[Cat]]
}}

produces: