Difference between revisions of "Infobox Primitive"

From SI410
Jump to: navigation, search
Line 41: Line 41:
 
}}
 
}}
 
}}
 
}}
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|example of '''frame''' template use]]
+
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

Revision as of 05:54, 5 December 2012

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: an example of frame template system

{{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=
    }}
 }}