Template:Infobox character/doc: Difference between revisions

From Screamer Wiki
Jump to: navigation, search
imported>Default
mNo edit summary
 
imported>Screamer Nerd
m (1 revision)
 
(6 intermediate revisions by 2 users not shown)
Line 2: Line 2:
:This template is used to create a character infobox.
:This template is used to create a character infobox.
;Syntax
;Syntax
:Type <code>{{t|infobox character|...}}</code> somewhere, with parameters as shown below.
:Type <code>{{t|infobox character|name=x|caption=y|...}}</code> somewhere.
;Sample output
;Sample output
 
:<code><nowiki>{{templatename|foo}}</nowiki></code> gives...
<pre>{{infobox character
:{{templatename|foo}}
| name      = Bob [defaults to pagename]
| image      = Image:Example.jpg
| imagewidth = [defaults to 250]
| caption    = Bob the Flower
| title      = The Flower
| gender    = Male
| race      = Flowerkind
| faction    = Flora
| health    = 9001
| level      = 5
| status    = Flowering
| location  = The Garden
}}</pre>
 
Results in...
 
{{infobox character
| name    = Bob
| image    = Image:Example.jpg
| caption  = Bob the Flower
| title    = The Flower
| gender  = Male
| race    = Flowerkind
| faction  = Flora
| health  = 9001
| level    = 5
| status  = Flowering
| location = The Garden
}}


<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 01:27, 5 August 2015

Description
This template is used to create a character infobox.
Syntax
Type {{infobox character}} somewhere.
Sample output
{{templatename|foo}} gives...
Template:Templatename