Difference between revisions of "Infobox Primitive"

From SI410
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
 +
Copy and paste the following text into a template and then modify as needed to make your own infobox.  There are currently no infoboxes that use the following templates, but these templates unlike earlier infobox templates i made are optimized and should not crash the system.  A similar use of these templates can be found here: [[AltMain|'''sample application of the ''frame'' templates''']] This example might give you an idea as to proceed.
 +
 
{{box|{{frame-position-right}} {{frame-margin|default=20px}}
 
{{box|{{frame-position-right}} {{frame-margin|default=20px}}
 
|{{page-frame
 
|{{page-frame
Line 41: Line 44:
 
}}
 
}}
 
}}
 
}}
Copy and paste the following text into a template to make your own infobox.  There is no infobox currently that uses the following templates.  But they are optimized and should not crash the system unlike the older templates.  A similar use of these templates can be found here: [[AltMain|'''an example of ''frame'' template system''']]
 
 
 
  <nowiki>{{page-frame
 
  <nowiki>{{page-frame
 
  |outer-frame-size    = {{frame-size|width=300px}}
 
  |outer-frame-size    = {{frame-size|width=300px}}

Latest revision as of 06:03, 5 December 2012

Copy and paste the following text into a template and then modify as needed to make your own infobox. There are currently no infoboxes that use the following templates, but these templates unlike earlier infobox templates i made are optimized and should not crash the system. A similar use of these templates can be found here: sample application of the frame templates This example might give you an idea as to proceed.

{{page-frame
 |outer-frame-size     = {{frame-size|width=300px}}
 |outer-frame-layout   = {{frame-padding|default=3px}}
                         {{frame-border-style|style=solid}}
                         {{frame-border-width|default=1px}}
                         {{frame-border-radius|default=20px}}
 |top-frame-size       = 
 |top-frame-layout     = {{frame-position-center}}
 |top-frame-content    = 
 |middle-frame-layout  = {{frame-padding|default=3px}}
                         {{frame-position-center}}
 |middle-frame-content =
    {{horizontal-frame-group
    |top-frame-height = 60px
    |top-frame-layout = {{frame-border-style|style=solid}}
                        {{frame-border-width|default=1px}}
                        {{frame-border-radius|top-right=5px|top-left=5px}}
                        {{frame-position-center}}
    |middle-frame-height = 160px
    |middle-frame-layout = {{frame-margin|top=2px}}
                           {{frame-border-style|style=solid}}
                           {{frame-border-width|default=1px}}
                           {{frame-position-center}}
    |bottom-frame-height = 20px
    |bottom-frame-layout= {{frame-margin|top=2px}}
                          {{frame-border-style|style=solid}}
                          {{frame-border-width|default=1px}}
                          {{frame-position-center}}
    }}
 |bottom-frame-layout    = {{frame-padding|default=3px|top=0px}}
 |bottom-frame-content   =
    {{frame-box
    |frame-layout = {{frame-size|height=200px}}
                    {{frame-border-style|style=solid}}
                    {{frame-border-radius|bottom-right=15px|bottom-left=15px}}
                    {{frame-border-width|default=1px}}
                    {{frame-position-center}}
    |frame-content=
    }}
 }}