Difference between revisions of "Template:MainPageNav"

From RimWorld Wiki
Jump to navigation Jump to search
m (Updated formatting, set constant height)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
<div style="height: 110px; border:1px solid #A8A8AC; background:#EAECF2; color:#000; overflow: auto; display: flex;">
+
<div style="min-height:125px; border:1px solid #A8A8AC; background:#EAECF2; color:#000; overflow: auto; display:flex;">
 
<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: -4px; margin-bottom: -4px; overflow: hidden; white-space: nowrap;">
 
<div style="font-size:16px; background:#D9DBE2; color:#000;padding: 4px; margin-top: -4px; margin-bottom: -4px; overflow: hidden; white-space: nowrap;">
 
<center><b>[{{{Link|https://ludeon.com/forums/}}} {{{Label|Category Text}}}]</b></center>
 
<center><b>[{{{Link|https://ludeon.com/forums/}}} {{{Label|Category Text}}}]</b></center>
</div><div style="padding: 3px; background:#EAECF2;">
+
</div><div style="padding: 6px; background:#EAECF2;">
 
<center>[[File:{{{Image|LudeonLogoSquare.png}}}|72px|link={{{Link|https://ludeon.com/forums/}}}|{{{Label|Category Text}}}]]</center>
 
<center>[[File:{{{Image|LudeonLogoSquare.png}}}|72px|link={{{Link|https://ludeon.com/forums/}}}|{{{Label|Category Text}}}]]</center>
</div></div><div style="width:50%; float:left; padding-left: 5px; padding-right: 3px;">
+
</div></div><div style="width:50%; float:left; padding-left: 5px; padding-right: 3px; overflow: visible; white-space: nowrap;">
 
{{{Col1|&#9642; Example<br>
 
{{{Col1|&#9642; Example<br>
 
&#9642; Example<br>
 
&#9642; Example<br>
 
&#9642; Example<br>}}}
 
&#9642; Example<br>}}}
</div><div style="width:50%; float:left; padding-left: 5px; padding-right: 3px;">
+
</div><div style="width:50%; float:left; padding-left: 5px; padding-right: 3px; white-space: nowrap;">
 
{{{Col2|}}}
 
{{{Col2|}}}
</div></div></div>
+
</div></div>
</includeonly><noinclude>{{documentation}}</noinclude>
+
</includeonly><noinclude>{{Recode|reason=Not dark mode friendly - some potential in turning it into a wikitable using header text cells as that draws colors from the skins, but needs development}}{{documentation}}</noinclude>

Latest revision as of 14:00, 22 October 2023

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

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

Usage[edit]

{{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: