Difference between revisions of "Template:Banner"

From The Aruba Wiki
Jump to: navigation, search
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<div class="banner-image nomobile js-proportonal-resize" {{#if:{{{div-width|}}}|style="width:{{{div-width|}}};{{#if:{{{div-height|}}}|height:{{{div-height|}}}}}"}}>
<div class="banner-image nomobile js-proportonal-resize">
+
<div class="mainpage-shadowbox banner-box-2 banner-box-{{{direction}}}" {{#if:{{{width|}}}|style="width:{{{width|}}};{{#if:{{{height|}}}|height:{{{height|}}}}}"}}>
<div class="mainpage-shadowbox banner-box-2 banner-box-{{{direction}}}" {{#if:{{{width|}}}|style="width:{{{width}}}"}}>
+
{{#if: {{{title|}}} | <h2>[[{{{title|}}}|{{{alt-title|{{{title|}}}}}}]]</h2>}}
<h2>[[{{{title}}}|{{{alt-title|{{{title}}}}}}]]</h2>
+
{{#if: {{{title-nonlink|}}} | <h2>{{{title-nonlink|}}}</h2>}}
<h3>[[{{{section-link}}}|{{{section}}}]]</h3>
+
{{#if: {{{section|}}} | <h3>[[{{{section-link}}}|{{{section}}}]]</h3>}}
<div class="quote">[[{{{title}}}|{{{quote}}}]]</div>
+
{{#if:{{{quote|}}} | <div class="quote">{{{quote}}}</div>}}
</div>[[File:{{{image}}}|frameless|1700px|link={{{title}}}|{{{title}}}]]</div>
+
{{#if:{{{quote-link|}}} | <div class="quote">[[{{{title|}}}|{{{quote}}}]]</div>}}
<div id="mf-section-{{{section-id}}}" class="mf-mobile-only">
+
</div>[[File:{{{image|}}}|frameless|1700px{{#if: {{{title|}}} | {{!}}link={{{title|}}}|{{{title|}}} }}{{#if: {{{link-art|}}} | {{!}}link={{{img-link|}}}|{{{img-link-alt|}}} }}]]</div>
=={{{section}}}==
+
<div id="mf-section-{{{section-id|}}}" class="mf-mobile-only">
'''[[{{{title}}}|{{{alt-title|{{{title}}}}}}]]'''
+
=={{{section|}}}==
 +
{{#if: {{{title|}}} | '''[[{{{title|}}}|{{{alt-title|{{{title|}}}}}}]]'''}}
 +
{{#if: {{{title-nonlink|}}} | '''{{{title-nonlink|}}}'''}}
  
{{{quote}}}
+
{{#if:{{{quote|}}} | {{{quote|}}} }}
</div>
+
{{#if:{{{quote-link|}}} | {{{quote-link|}}} }}
</includeonly><noinclude>
+
</div><noinclude><pre>
 +
{{banner
 +
|direction=left
 +
|width=60%
 +
|title=
 +
|image=
 +
|img-link=
 +
|img-link-alt=
 +
|quote=
 +
|quote-link=
 +
}}</pre>
  
 +
;Advanced Syntax
 +
<pre>
 
{{banner
 
{{banner
 
|direction=left
 
|direction=left
 
|width=60%
 
|width=60%
|title=Uluru-Kata Tjuta National Park
+
|title=
|section=Destination of the Month
+
|title-nonlink=
|section-link=Previous Destinations of the month
+
|image=
|image=UluruKataTjutaBanner3.jpg
+
|quote=
|quote=Home of the awesome stone monolith formerly known as Ayers Rock, a key player in the Aboriginal creation myth and one of Australia's best-known national symbols.
+
}}</pre>
}}
 
 
 
 
</noinclude>
 
</noinclude>

Latest revision as of 23:53, 7 August 2018

{{banner
|direction=left
|width=60%
|title=
|image=
|img-link=
|img-link-alt=
|quote=
|quote-link=
}}
Advanced Syntax
{{banner
|direction=left
|width=60%
|title=
|title-nonlink=
|image=
|quote=
}}