User:Eviand/TemplateTesting: Difference between revisions
From SpiritVale Wiki
More actions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Generic Infobox == | |||
Used as a base template for other boxes. Rows must be manually added or removed. | |||
{| class="infobox" style="width:275px; font-size:90%; border:2px solid #372b54; background:#f7f7fa; border-radius:12px; box-shadow:0 2px 6px rgba(0,0,0,0.25);" | {| class="infobox" style="width:275px; font-size:90%; border:2px solid #372b54; background:#f7f7fa; border-radius:12px; box-shadow:0 2px 6px rgba(0,0,0,0.25);" | ||
|- | |- | ||
! colspan="2" style="background:linear-gradient(180deg,#5a4e7c,#372b54); color:white; text-align:center; padding:6px; font-size:110%; border-top-left-radius:10px; border-top-right-radius:10px;" | | ! colspan="2" style="background:linear-gradient(180deg,#5a4e7c,#372b54); color:white; text-align:center; padding:6px; font-size:110%; border-top-left-radius:10px; border-top-right-radius:10px;" | | ||
{{#if:{{{image|}}}|[[File:{{{image}}}|250px]]<br />}} | |||
'''{{{name|Example Infobox}}}''' | '''{{{name|Example Infobox}}}''' | ||
|- | |- | ||
| style="background:#e6e3f0; font-weight:bold; width:35%;" | | | style="background:#e6e3f0; font-weight:bold; width:35%;" | {{{row1_label|}}} | ||
| style="background:#ffffff;" | | | style="background:#ffffff;" | {{{row1_value|}}} | ||
|- | |- | ||
| style="background:#e6e3f0; font-weight:bold;" | | | style="background:#e6e3f0; font-weight:bold;" | {{{row2_label|}}} | ||
| style="background:#ffffff;" | | | style="background:#ffffff;" | {{{row2_value|}}} | ||
|- | |- | ||
| style="background:#e6e3f0; font-weight:bold;" | | | style="background:#e6e3f0; font-weight:bold;" | {{{row3_label|}}} | ||
| style="background:#ffffff;" | | | style="background:#ffffff;" | {{{row3_value|}}} | ||
|} | |} | ||
=== Example === | |||
{| class="infobox" style="width:275px; font-size:90%; border:2px solid #372b54; background:#f7f7fa; border-radius:12px; box-shadow:0 2px 6px rgba(0,0,0,0.25);" | {| class="infobox" style="width:275px; font-size:90%; border:2px solid #372b54; background:#f7f7fa; border-radius:12px; box-shadow:0 2px 6px rgba(0,0,0,0.25);" | ||
Line 23: | Line 28: | ||
|- | |- | ||
| style="background:#e6e3f0; font-weight:bold; width:35%;" | Example 1 | | style="background:#e6e3f0; font-weight:bold; width:35%;" | Example 1 | ||
| style="background:#ffffff;" | | | style="background:#ffffff;" | Value 1 | ||
|- | |||
| style="background:#e6e3f0; font-weight:bold;" | Example 1 | |||
| style="background:#ffffff;" | Value 2 | |||
|- | |||
| style="background:#e6e3f0; font-weight:bold;" | Example 1 | |||
| style="background:#ffffff;" | Value 3 | |||
|} | |||
== Main Page Box == | |||
Used on the main page for holding content. | |||
{| class="infobox" style="width:250px; font-size:95%; border:2px solid #372b54; background:#f7f7fa; border-radius:14px; box-shadow:0 3px 8px rgba(0,0,0,0.3); margin:10px;" | |||
|- | |- | ||
! style="background:linear-gradient(180deg,#5a4e7c,#372b54); color:white; text-align:center; padding:8px; font-size:120%; border-top-left-radius:12px; border-top-right-radius:12px;" | | |||
| | '''{{{title|Main Page Box}}}''' | ||
|- | |- | ||
| style=" | | style="padding:8px; text-align:center; line-height:1.4;" | | ||
| | {{{content|''No content provided.''}}} | ||
|} | |} | ||
<br> | === Example === | ||
{| class="infobox" style="width:250px; font-size:95%; border:2px solid #372b54; background:#f7f7fa; border-radius:14px; box-shadow:0 3px 8px rgba(0,0,0,0.3); margin:10px;" | |||
|- | |||
! style="background:linear-gradient(180deg,#5a4e7c,#372b54); color:white; text-align:center; padding:8px; font-size:120%; border-top-left-radius:12px; border-top-right-radius:12px;" | | |||
'''Main Page Example Box''' | |||
|- | |||
| style="padding:8px; text-align:center; line-height:1.4;" | | |||
[[File:Icon1.png|20px]] [[Refinement]]<br /> | |||
[[File:Icon2.png|20px]] [[Card]]<br /> | |||
[[File:Icon3.png|20px]] [[Page 3]]<br /> | |||
[[File:Icon4.png|20px]] [[Page 4]] | |||
|} |