Difference between revisions of "Template:Main Page Box Test"

From blackwiki
Jump to navigation Jump to search
imported>K6ka
m (Reverted edits by Ruben Argueda (talk) to last version by Zzuuzz)
imported>Anomalocaris
(unfoster content and get rid of the bombast)
Line 22: Line 22:
 
[[Template:Main_Page_Box_Test#Example of use|example of use]] indicated below).  
 
[[Template:Main_Page_Box_Test#Example of use|example of use]] indicated below).  
  
{|style="background:transparent; width:100% " |width=50%| <div style="padding:0.5em 1em; border: 1px dotted gray; background: # EFE; font-size:90%;">  
+
<pre>
<tt><nowiki>{{Main Page Box Test</nowiki><br>
+
{{Main Page Box Test
<nowiki> |Box Title=</nowiki>
+
|Box Title=
<br><nowiki> |logo= |px= |Image Text= </nowiki>
+
|logo= |px= |Image Text=
<br><nowiki>|Title_color= |content_color= |footer_color= </nowiki>
+
|Title_color= |content_color= |footer_color=
<br><nowiki> |font_size= </nowiki>
+
|font_size=
<br><nowiki> |content= </nowiki>
+
|content=
<br><nowiki> |footer= </nowiki>
+
|footer=
<br><nowiki>}}</nowiki></tt></div>
+
}}
 +
</pre>
  
 
+
<div style="padding:0.5em 1em; border: 1px dotted gray; background: # EFE; font-size:90%;">
{{Window home|title=<span style="color:red;">[titolo]</span> |logo=<span style="color:red;">[logo]</span>|px=<span style="color:red;">[px]</span>|didascalia=<span style="color:red;">[didascalia]</span> |col_testata=CCC|col_corpo=EFEFEF|col_footer=DDD |font_size=90 |content=<span style="color:red;">[contenuto]</span> |footer=<span style="color:red;">[footer]</span>}}
+
{{Window home|title=<span style="color:red;">[titolo]</span> |logo=<span style="color:red;">[logo]</span>|px=<span style="color:red;">[px]</span>|didascalia=<span style="color:red;">[didascalia]</span> |col_testata=CCC|col_corpo=EFEFEF|col_footer=DDD |font_size=90 |content=<span style="color:red;">[contenuto]</span> |footer=<span style="color:red;">[footer]</span>}}</div>
|}
 
  
 
==Example of use==  
 
==Example of use==  
  
{|style="background:transparent" |width=50%| <div style="padding:0.5em 1em; border: 1px dotted gray; background: # EFE; font-size:90%;">  
+
<div style="font-family: monospace, monospace;">
<tt><nowiki> {{Window home</nowiki><br><nowiki> |title=</nowiki><span style="color:red;">Oltre  
+
{<nowiki/>{Window home
Wikipedia</span><br><nowiki> |logo=</nowiki><span style="color:red;">Icona_progetti.jpg</span><nowiki>|px=</nowiki><span style="color:red;">25</span><nowiki>|didascalia=</nowiki><span style="color:red;">Icona</span><br><nowiki> |col_testata=</nowiki><span style="color:red;">ADA</span><nowiki>|col_corpo=</nowiki><span style="color:red;">DFD</span><nowiki>|col_footer=</nowiki><span style="color:red;">CEC</span><br><nowiki> |font_size=</nowiki><span style="color:red;"><nowiki>90</nowiki></span><br><nowiki> |content=</nowiki><span style="color:red;"><nowiki>{{PaginaPrincipale/Progetti}}</nowiki></span><br><nowiki> |footer=</nowiki><span style="color:red;">NeveFooter</span><br><nowiki>}}</nowiki></tt></div > | {{Window home |title=[[Speciale:Newpages|You knew that... ] ] |logo=Icona_losapeviche.jpg|px=25 |col_testata=C2D3FC|col_corpo=FFF|col_footer=FFC253 |font_size=90 |content={{PaginaPrincipale/Sapevi/{{CURRENTDAYNAME}}}} |footer=NeveFooter}} |}
+
<br>|title=<span style="color:red;">Oltre Wikipedia</span>
 +
<br>|logo=<span style="color:red;">Icona_progetti.jpg</span>|px=<span style="color:red;">25</span>|didascalia=<span style="color:red;">Icona</span>
 +
<br>|col_testata=<span style="color:red;">ADA</span>|col_corpo=<span style="color:red;">DFD</span>|col_footer=<span style="color:red;">CEC</span>
 +
<br>|font_size=<span style="color:red;">90</span>
 +
<br>|content=<span style="color:red;">{<nowiki/>{PaginaPrincipale/Progetti}}</span>
 +
<br>|footer=<span style="color:red;">NeveFooter</span>
 +
<br>}} | <nowiki>{{Window home |title=[[Speciale:Newpages|You knew that... ]] |logo=Icona_losapeviche.jpg|px=25 |col_testata=C2D3FC|col_corpo=FFF|col_footer=FFC253 |font_size=90 |content=</nowiki>{{PaginaPrincipale/Sapevi/{{CURRENTDAYNAME}}}}<nowiki> |footer=NeveFooter}} |}</nowiki>
 +
</div>
 
</noinclude>
 
</noinclude>

Revision as of 05:58, 2 August 2019

{{{Box Title}}}

{{{content}}}


This template ({{Main_Page_Box_Test}} it is a layout of pagination for the different sections of Main Page. It makes use of a set of conditions that, when you set the parameters it does the coding for you. Although the use of the template is rather simple, the "behind the scenes" is complicated: do not modify the code if not if you are not experienced in CSS, any change will affect the Main Page.

Guide to template use

In order to use the template copy the text contained in following example (that she contains the complete sintassi of the template ones) and to save it (vd. the example of use indicated below).

{{Main Page Box Test
|Box Title=
|logo= |px= |Image Text=
|Title_color= |content_color= |footer_color=
|font_size=
|content=
|footer=
}}
Template:Window home

Example of use

{{Window home
|title=Oltre Wikipedia
|logo=Icona_progetti.jpg|px=25|didascalia=Icona
|col_testata=ADA|col_corpo=DFD|col_footer=CEC
|font_size=90
|content={{PaginaPrincipale/Progetti}}
|footer=NeveFooter
}} | {{Window home |title=[[Speciale:Newpages|You knew that... ]] |logo=Icona_losapeviche.jpg|px=25 |col_testata=C2D3FC|col_corpo=FFF|col_footer=FFC253 |font_size=90 |content=Template:PaginaPrincipale/Sapevi/Saturday |footer=NeveFooter}} |}