Difference between revisions of "Template:Nav-Tile"

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

Latest revision as of 22:01, 14 January 2018

Nav Regia1.jpg