Template:Item: Difference between revisions

Undo revision 50890 by MF5K (talk) Turns out the new infobox looks bad
(Using new infobox markup)
(Undo revision 50890 by MF5K (talk) Turns out the new infobox looks bad)
Line 1: Line 1:
<infobox>
{|style="width:445px; border:2px solid #FCC0E7; text-align:center; color:#000; {{R|5}}" cellspacing="0" cellpadding="3"
<title source="name"><default>There is no name.</default></title>
|-
<title source="title"><default>There is no title.</default></title>
|!style="width:64px; {{R/bottom|5}}|'''{{{name|There is no name.}}}'''
<data source="item"><label>item</label><default>item_placeholder.png</default></data>
!style="width:120px; background-color:#FCC0E7; {{R/bottom|5}}"|{{{title|There is no title.}}}
<data source="explain"><label>[[File:{{{item|item_placeholder.png}}}|64px|center]]</label><default>There is no description.</default></data>
|-
</infobox>
|rowspan="2" style="width:128px; height:128px;"|[[File:{{{item|item_placeholder.png}}}|64px|center]]
<noinclude>
!style="width:256px; font-size:8pt; text-align:left;"| {{{explain|There is no description.}}}
== Usage & preview ==
|}<noinclude>[[Category:Templates|Card]]</noinclude>
Type in this:
 
<pre>
{{Item
|name=Soccer Ball
|item=Soccer Ball.png
|title=Karate Memory #1
|explain=As a child, I dreamed of being<br>a soccer player. My father<br>wouldn't hear of it. "You must<br>master karate before you<br>leave my house!" I still live<br>in the basement.}}
 
</pre>
 
to see this:
 
{{Item
|name=Soccer Ball
|item=Soccer Ball.png
|title=Karate Memory #1
|explain=As a child, I dreamed of being<br>a soccer player. My father<br>wouldn't hear of it. "You must<br>master karate before you<br>leave my house!" I still live<br>in the basement.}}
 
 
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
</noinclude>
Bureaucrats, content-moderator, emailconfirmed, Interface administrators, rollback, Suppressors, Administrators, threadmoderator
24,858

edits