Modèle:Layout 01 : Différence entre versions

[version non vérifiée][version vérifiée]
(Page créée avec « <includeonly><div style="{{Masstemplate}}"> {| style="width:100%; {{Font/Pagetitle}} background:{{{ColorH}}}; border:{{{ColorR}}} double 3px; padding:0.2em 0.8em 0em 0.8em; m… »)
 
 
(33 révisions intermédiaires par 5 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
 
<includeonly><div style="{{Masstemplate}}">
 
<includeonly><div style="{{Masstemplate}}">
{| style="width:100%; {{Font/Pagetitle}} background:{{{ColorH}}}; border:{{{ColorR}}} double 3px; padding:0.2em 0.8em 0em 0.8em; margin-bottom:0.5em; color: {{Tablecolor/Font}};"
+
{| style="width:800px; {{Font/Pagetitle}} background:{{{ColorH}}}; border:{{{ColorR}}} double 3px; padding:0.2em 0.8em 0em 0.8em; margin-bottom:0.5em; color: {{Tablecolor/Font}};"
 
|
 
|
 
{{{Header}}}
 
{{{Header}}}
 
|}
 
|}
{| style="width:100%; margin-bottom:1em;"
+
{| style="width:800px; margin-bottom:1em;"
 
|
 
|
 
{{#if: {{{Box1| }}} |
 
{{#if: {{{Box1| }}} |
Ligne 11 : Ligne 11 :
 
{{{Box1}}}
 
{{{Box1}}}
 
{{!}}}
 
{{!}}}
}}{{#if: {{{Box2| }}} |
+
}}
 +
{{#if: {{{Box2| }}} |
 +
{{{!}} style="margin-left:5em;"
 +
{{!}}
 
{{{Box2}}}
 
{{{Box2}}}
 +
{{!}}}
 
}}
 
}}
 
|}
 
|}
  
{{top}}
 
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>
  
Ligne 40 : Ligne 43 :
  
 
=== Example ===
 
=== Example ===
 
 
This is how a page could look like:
 
This is how a page could look like:
  
Ligne 47 : Ligne 49 :
 
|ColorR= #5d0505
 
|ColorR= #5d0505
 
|Header  = Example
 
|Header  = Example
|Box1  = Box1<br />[[Image:Old man.jpg]]<div style="text-align:center;">e.G. a Picture</div>
+
|Maketop = true
 +
|Box1  = Box1<br /><div style="text-align:center;">e.G. a Picture</div>
 
|Box2  =
 
|Box2  =
 
<div style="font-size:145%;">
 
<div style="font-size:145%;">
Ligne 69 : Ligne 72 :
 
}}
 
}}
  
[[Category:Templates|{{PAGENAME}}]]
+
[[Catégorie:Templates|{{PAGENAME}}]]
[[Category:Templates/Layout|{{PAGENAME}}]]
+
[[Catégorie:Templates/Layout|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Version actuelle datée du 24 août 2022 à 22:13


Sense

This template is used for page scalling while using different styles. The Width is defined by Masstemplate.

The width of Box1 is defined by its content or a specific number. Box2 takes then the rest of the width and place under Box1.

It can also mentioned only one content for Box1 and Box2

Usage

{{Layout 01 |ColorH= font color |ColorR= scale color |Header = place for the page title |Box1 = left side |Box2 = right side }}

Example

This is how a page could look like:

Example

Box1
e.G. a Picture

Box2 with with a large content floating around Box1 Test Test


Test

Test

Test

Test

Test

I needed a large content ;)