Difference between revisions of "Template:AchievementRow"
From PinataIsland.info, the Viva Piñata wiki
(adding documentation) |
|||
Line 1: | Line 1: | ||
|- | |- | ||
|align="center" width="430"|'''{{{title}}}'''<br />{{{subtitle}}} | |align="center" width="430"|'''{{{title}}}'''<br />{{{subtitle}}} | ||
− | |align="center" width="160"|{{{imgurl}}}<br />{{{points}}} http://live.xbox.com/xweb/lib/images/G_Icon_External.gif | + | |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: | ||
+ | |||
+ | :''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> |
Revision as of 08:19, 26 August 2008
|-
|align="center" width="430"|{{{title}}}
{{{subtitle}}}
|align="center" width="160"|{{{imgurl}}}
{{{points}}}
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. |
![]() 20 ![]() |