Difference between revisions of "Template:Infobox UnbrokenCharacter"

From Unbroken Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<infobox>
local capiunto = require 'capiunto'
<title source="title"><default>''Unknown''</default></title>
capiunto.create( {
<image source="image"/>
title = 'Title of the Infobox'
<data source="imagecaption"><label>Image info</label></data>
} )
<data source="Species"><label>Species</label><default>''Unknown''</default></data>
:addRow( 'A label', 'some data' )
<data source="Factions"><label>Factions</label><default>''Unknown''</default></data>
:addHeader( 'A header between the data rows' )
<data source="age"><label>Age</label><default>''Unknown''</default></data>
:addRow( 'Another label', 'more data' )
<data source="status"><label>Status</label><default>''Unknown''</default></data>
<data source="height"><label>Height</label><default>''Unknown''</default></data>
<data source="weight"><label>Weight</label><default>''Unknown''</default></data>
</infobox>
 
 
<noinclude>
== Usage & preview ==
Type in this:
 
<pre>
{{Infobox UnbrokenCharacter
|title=
|image=
|imagewidth=
|imagecaption=
|species=
|factions=
|age=
|status=
|height=
|weight=
}}
 
</pre>
 
to see this:
 
{{Infobox UnbrokenCharacter
|title=This is a test
|image=This is a test
|imagewidth=This is a test
|=This is a test
|species=This is a test
|factions=This is a test
|age=This is a test
|status=This is a test
|height=This is a test
|weight=This is a test
}}
 
 
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
</noinclude>

Revision as of 17:42, 11 March 2017

local capiunto = require 'capiunto' capiunto.create( { title = 'Title of the Infobox' } )

addRow( 'A label', 'some data' )
addHeader( 'A header between the data rows' )
addRow( 'Another label', 'more data' )