Difference between revisions of "Template:Infobox"

From MyFallen Gaming Community
Jump to navigation Jump to search
m (1 revision imported)
 
Line 1: Line 1:
{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates|{{remove first word|{{SUBPAGENAME}}}}]]}}}}|}}</includeonly><noinclude>
+
{{#invoke:Infobox|infobox}}<includeonly></includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
 
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
 
</noinclude>
 
</noinclude>

Latest revision as of 19:23, 6 January 2020

50px Template documentation[view] [edit] [history] [purge]

Description

This template is a sample infobox, to aid in the creation of new infoboxes.

Recommended usage: copy the template code to a new template page, and edit it there.

Infobox and template background

See Help:Templates, Help:Infobox for some background on how templates and infoboxes work.

Notes

  • The Title, First, Second, and Third rows show "Unknown" if their values are not specified.
  • The Image, Imagecaption, Fourth, Fifth, and Sixth rows won't show up if their values are not specified.

Syntax

{{infobox
 | title         = 
 | image         = [e.g. "Example.jpg"]
 | imagecaption  = 
 | first         =
 | second        =
 | third         =
 | fourth        =
 | fifth         =
 | sixth         =
 | previous      =
 | next          =
}}

Samples

{{infobox
 | title         = A pretty flower
 | image         = Example.jpg
 | imagecaption  = Floweris flowerum
 | first         = Pink and green
 | second        = Outdoors
 | fourth        = Annual
 | previous      = I
 | next          = III
}}

Results in...

A pretty flower
Example.jpg