Difference between revisions of "Template:Nav-Tile"

From Regiapædia
Jump to: navigation, search
m
 
(55 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Mobile View --><div id="mf-HideOnDesktop">
+
{{#switch:{{{Link}}}
<div style="float:left; width: 140px; overflow:hidden;">
+
  |{{FULLPAGENAME}}=
<div id="nbox" style="{{#if: {{{Colour|}}} |background-color:{{{Colour}}}; border:1px solid {{{Colour}}};}}float:left; margin:0px 6px 5px 0px; width:130px; height:120px;">
+
  |:{{FULLPAGENAME}}=
   <div id="nBoxImg" style="width: 100%;">[[File:{{{Image|}}}|frameless|none|130px{{#if: {{{Link|}}} |{{!}}link={{{Link}}}|}}]]</div>
+
  |#default = <div id="nBox" style="{{#ifeq: {{{Colour|}}}| Clear||background-color:{{{Colour|#F0F0F0}}}; border:1px solid {{{Colour|#F0F0F0}}}; }}
  <div id="nBoxText" style="text-align: left; padding:0px 5px;">{{#if: {{{Link|}}} |[[{{{Link|}}}{{!}}{{{Caption|}}}<br>''{{{Comment|}}}'']]|{{{Caption|}}}}}</div>
+
    display:inline-block; vertical-align: top; overflow:Hidden; margin:0px 3px 3px 3px;
</div>
+
    width:{{#if:{{{Side|}}}|197px|{{{Width|148px}}}}};
</div><!-- Desktop View <div id="mf-HideOnMobile">
+
    height:{{#if:{{{Side|}}}|130px;|{{{Height|127px}}}}}">
<div style="float:left; width: 180px; overflow:hidden;">
+
   <div id="nBoxImg" style="width: 100%;">[[File:{{{Image|Nav_Regia1.jpg}}}|frameless|none|{{#if:{{{Side|}}}|197px|{{{Width|148px}}}}}{{#if: {{{Link|}}} |{{!}}link={{{Link}}}|}}]]</div>
<div id="nbox" style="{{#if: {{{Colour|}}} |background-color:{{{Colour}}}; border:1px solid {{{Colour}}};}}float:left; margin:0px 6px 5px 0px; width:185px; height:150px;">
+
  <div id="nBoxText" style="text-align: left; padding:5px; line-height: 1;">{{#if: {{{Link|}}}|
  <div id="nBoxImg" style="width: 100%;">[[File:{{{Image|}}}|frameless|none|185px{{#if: {{{Link|}}} |{{!}}link={{{Link}}}|}}]]</div>
+
    [[{{{Link}}}{{!}}{{{Caption|}}}]]|
  <div id="nBoxText" style="text-align: left; padding:0px 5px;">{{#if: {{{Link|}}} |[[{{{Link|}}}{{!}}{{{Caption|}}}<br>''{{{Comment|}}}'']]|{{{Caption|}}}}}</div>
+
    {{{Caption|}}}}}
</div>
+
    <small class="italic">{{#if: {{{Comment|}}}|[[{{{Link}}}{{!}}<br>{{{Comment|}}}]]|<br>{{{Comment|}}}}}</small></div>
</div>-->
+
</div>}}

Latest revision as of 22:01, 14 January 2018

Nav Regia1.jpg