Difference between revisions of "Template:AchievementRow"

From PinataIsland.info, the Viva Piñata wiki
Jump to: navigation, search
(adding documentation)
m (transclude documentation)
 
Line 3: Line 3:
 
|align="center" width="160"|{{{imgurl}}}<br />{{{points}}} http://live.xbox.com/xweb/lib/images/G_Icon_External.gif<noinclude>
 
|align="center" width="160"|{{{imgurl}}}<br />{{{points}}} http://live.xbox.com/xweb/lib/images/G_Icon_External.gif<noinclude>
  
==Documentation==
 
This template inserts the above table code representing one row into an existing table.
 
  
It is used in the [[Achievements]] article. Proper usage is as follows:
+
{{Template:AchievementRow/doc}}}</noinclude>
 
 
:''opening of table:''
 
<code><nowiki>
 
{| border=1 cellspacing="2" cellpadding="5" style="margin: 0 0 1em 1em; background: #e7e7e7; border: 1px #aaaaaa solid; border-collapse: none;"
 
</nowiki></code>
 
 
 
:''single achievement row:''
 
<pre>
 
{{AchievementRow
 
| title =
 
| subtitle =
 
| imgurl =
 
| points =
 
}}
 
</pre>
 
 
 
:''close of table''
 
<code><nowiki>
 
|}
 
</nowiki></code>
 
 
 
 
 
;Example of a single row entry
 
<pre>
 
{{AchievementRow
 
| title = Challenger
 
| subtitle = Successfully completed 5 [[Factory requests]].
 
| imgurl = http://tiles.xbox.com/tiles/hk/WY/1oCLiGJhbC9FFQRrXVBRGEYyL2FjaC8wLzEAAAAA5+fn+bdFnQ==.jpg
 
| points = 20
 
}}
 
</pre>
 
 
 
Results in:
 
{| border=1 cellspacing="2" cellpadding="5" style="margin: 0 0 1em 1em; background: #e7e7e7; border: 1px #aaaaaa solid; border-collapse: none;"
 
<!-- Only the content below this line is the template's code -->
 
{{AchievementRow
 
| title = Challenger
 
| subtitle = Successfully completed 5 [[Factory requests]].
 
| imgurl = http://tiles.xbox.com/tiles/hk/WY/1oCLiGJhbC9FFQRrXVBRGEYyL2FjaC8wLzEAAAAA5+fn+bdFnQ==.jpg
 
| points = 20
 
}}
 
<!-- Only the content above this line is the template's code -->
 
|}
 
 
 
</noinclude>
 

Latest revision as of 12:19, 26 August 2008

|- |align="center" width="430"|{{{title}}}
{{{subtitle}}} |align="center" width="160"|{{{imgurl}}}
{{{points}}} G_Icon_External.gif


This documentation is transcluded from Template:AchievementRow/doc

Documentation

This template inserts the above table code representing one row into an existing table.

It is used in the Achievements article. Proper usage is as follows:

opening of table:

{| border=1 cellspacing="2" cellpadding="5" style="margin: 0 0 1em 1em; background: #e7e7e7; border: 1px #aaaaaa solid; border-collapse: none;"

single achievement row:
{{AchievementRow
| title = 
| subtitle = 
| imgurl = 
| points = 
}}
close of table

|}


Example of a single row entry
{{AchievementRow
| title = Challenger
| subtitle = Successfully completed 5 [[Factory requests]].
| imgurl = http://tiles.xbox.com/tiles/hk/WY/1oCLiGJhbC9FFQRrXVBRGEYyL2FjaC8wLzEAAAAA5+fn+bdFnQ==.jpg
| points = 20
}}

Results in:

Challenger
Successfully completed 5 Factory requests.
1oCLiGJhbC9FFQRrXVBRGEYyL2FjaC8wLzEAAAAA5+fn+bdFnQ==.jpg
20 G_Icon_External.gif
}