模板:D3 Achievement
出自【暗黑百科】DiabloWiki_凯恩之角
(修订版本间的差异)
(以内容“__NOTOC__ {{#ifeq: {{{1|infobox}}}|infobox|<!-- --><table class="dftable infobox" style="margin-bottom: 10px"> <tr><td colspan="2" style="padding: 0"> <table cellspacin...”创建新页面) |
|||
第1行: | 第1行: | ||
- | __NOTOC__ {{#ifeq: {{{1|infobox}}}|infobox|<!-- --><table class="dftable infobox" style="margin-bottom: 10px"> <tr><td colspan="2" style="padding: 0"> <table cellspacing="0" cellpadding="0"> <tr><th class="header">{{{ach_title}}}</th> <th class="header2" style="color: #AAA; font-size: 1.3em; width: 1em;">{{#ifeq: {{NAMESPACE}} | Data | ↑ | [[Data:Achievements/{{PAGENAME}}|↑]] }}<br />[[{{SUBPAGENAME}}|↓]]</th> </tr></table> </td></tr> <tr><td colspan="2" class="image" style="padding: 10px 0">{{#if: {{{image|}}} | [[File:{{{image}}}|175px|border]] | {{#ifexist: File:{{{ach_title}}}.png | [[File:{{{ach_title}}}.png|175px|border]] | <noinclude>Image goes here</noinclude>}}}} {{#if: {{{ach_desc|<noinclude>1</noinclude>}}} | <div style="font-size: smaller; padding: 10px 10px 0 10px">''{{{ach_desc|Description goes here}}}''</div> }} </td></tr> <tr><th width="80px">Type</th><td>{{{ach_type}}} {{#if: {{{ach_subtype|}}}|> {{{ach_subtype}}} }}</td></tr> <tr><th>Points</th><td>{{{ach_point}}}</td></tr><!-- -->{{#if: {{{ach_checklist|<noinclude>1</noinclude>}}} | <tr><th colspan="2">Checklist</th></tr><tr><td colspan="2">{{#ifeq: {{lc: {{{ach_checklist|}}}}} | yes || {{{ach_checklist}}} }}<!-- --><div class="achlist" style="font-size: smaller"><noinclude><ul><li>ach_list_1...ach_list_n</li></ul></noinclude>{{#forargs: ach_list_ |k |v |<nowiki/> *{{#var:v}} }}</div> </td></tr> }} {{#if: {{{ach_requirement|<noinclude>1</noinclude>}}} | <tr><th colspan="2">Requirements</th></tr><tr><td colspan="2">{{#ifeq: {{lc: {{{ach_requirement|}}}}} | yes || {{{ach_requirement}}} }}<!-- --><div class="achreq" style="font-size: smaller"><noinclude><ul><li>ach_req_1...ach_req_n</li></ul></noinclude>{{#forargs: ach_req_ |k |v |<nowiki/> *{{#var:v}} }}</div> </td></tr> }} {{#if: {{{ach_rw_type|<noinclude>1</noinclude>}}} | <tr><th colspan="2">Reward</th></tr><tr><td colspan="2" align="center">[[{{{ach_rw_type}}}]]<br />{{{ach_rw_desc}}}</td></tr> <tr><td colspan="2" class="image" style="padding: 0 0 10px 0">{{#ifexist: File:{{{ach_rw_type}}} - {{{ach_rw_desc}}}.png | [[File:{{{ach_rw_type}}} - {{{ach_rw_desc}}}.png]] {{#ifexist: File:{{{ach_rw_type}}} - {{{ach_rw_desc}}} (variant).png | [[File:{{{ach_rw_type}}} - {{{ach_rw_desc}}} (variant).png]] }} | <noinclude>Reward icon(s) goes here</noinclude> }}</td></tr> }}{{#ifexist: File:{{{ach_rw_type_2}}} - {{{ach_rw_desc_2}}}.png | <tr><td colspan="2" align="center">[[{{{ach_rw_type_2}}}]]<br />{{{ach_rw_desc_2}}}</td></tr><tr><td colspan="2" class="image" style="padding: 0 0 10px 0">[[File:{{{ach_rw_type_2}}} - {{{ach_rw_desc_2}}}.png]]</td></tr> }} <tr style="{{#if: {{{ach_prev|<noinclude>1</noinclude>}}} || {{#if: {{{ach_next|<noinclude>1</noinclude>}}} || display: none }}}}"><td colspan="2" style="padding: 0"> <table cellspacing="0" cellpadding="0"><tr><th colspan="2">Achievement Series</th></tr><tr><tr> <td align="left">{{#if: {{{ach_prev|<noinclude>1</noinclude>}}} | [[{{{ach_prev}}}|← {{{ach_prev}}}]] }}</td> <td align="right">{{#if: {{{ach_next|<noinclude>1</noinclude>}}} | [[{{{ach_next}}}|{{{ach_next}}} →]] }}</td> </tr></table> </table><!-- --><includeonly>{{#ifeq:{{NAMESPACE}}|Data|<!-- do nothing -->|[[Category:Diablo III {{{ach_type}}} Achievements]]{{#if: {{{ach_subtype|}}}|[[Category:Diablo III {{{ach_subtype}}} Achievements]]}}}}</includeonly><!-- --> |<!-- summary -->{{#ifeq: {{{1|}}}|summary|<!-- -->{{#ifeq: {{{2|}}}|top|<!-- --><table class="dftable dfborder" cellpadding="6" style="margin-bottom: 15px; text-align: left; font-size: smaller; width: 65%"> <tr style="text-align: center"> <th class="header" colspan="2">Achievement</th> <th class="header">Points</th> <th class="header" colspan="2">Reward</th> <th class="header">Description</th> </tr>}} <tr style="vertical-align: top"><td class="image" style="text-align: center; width: 70px">{{#if: {{{image|}}} | [[File:{{{image}}}|64px|border]] | {{#ifexist: File:{{{ach_title}}}.png | [[File:{{{ach_title}}}.png|64px|border]] | <noinclude>Icon</noinclude>}}}} </td> <th style="width: 20%">{{#if: {{{ach_link|<noinclude>1</noinclude>}}}|[[{{{ach_link}}}|{{{ach_title}}}]]|[[{{{ach_title}}}]]}}</th> <td style="text-align: center">{{{ach_point}}}</td> {{#if: {{{ach_rw_type|<noinclude>1</noinclude>}}} |<!-- --><td style="text-align: center">{{#ifexist: File:{{{ach_rw_type}}} - {{{ach_rw_desc}}}.png | [[File:{{{ach_rw_type}}} - {{{ach_rw_desc}}}.png|64px]] }} {{#ifexist: File:{{{ach_rw_type}}} - {{{ach_rw_desc}}} (variant).png | [[File:{{{ach_rw_type}}} - {{{ach_rw_desc}}} (variant).png|64px]] }} {{#ifexist: File:{{{ach_rw_type_2}}} - {{{ach_rw_desc_2}}}.png | [[File:{{{ach_rw_type_2}}} - {{{ach_rw_desc_2}}}.png|64px]] }}</td><td style="width: 10%"><span style="white-space: nowrap">[[{{{ach_rw_type}}}]]</span><br />{{{ach_rw_desc}}} {{#if: {{{ach_rw_type_2|<noinclude>1</noinclude>}}} | <br /><br /><span style="white-space: nowrap">[[{{{ach_rw_type_2}}}]]</span><br />{{{ach_rw_desc_2}}} }}</td><!-- -->|<!-- --><td colspan="2" style="text-align: center">–</td> }} <td style="width: 100%">{{#if: {{{ach_desc|<noinclude>1</noinclude>}}} | ''{{{ach_desc|Description}}}''<!-- --><div class="achlist" style="padding-left: 5px; -moz-column-count: 2; -webkit-column-count: 2; column-count: 2"><!-- -->{{#forargs: ach_list_ |k |v |<nowiki/> *{{#var:v}} }}</div><!-- --><div class="achreq" style="padding-left: 5px; -moz-column-count: 2; -webkit-column-count: 2; column-count: 2"><!-- -->{{#forargs: ach_req_ |k |v |<nowiki/> *{{#var:v}} }}</div>}}</td> </tr> {{#ifeq: {{{2|}}}|bottom|</table>}} }}}}<!-- end --><!-- --><noinclude>{{clear}}{{docStart}} This is the standard achievement template for Diablo 3. It will generate the infobox (or the summary) depending on what the first parameter is passed: == Usage == *<tt><nowiki>{{Data:Achievements/The Comfort of Strangers|infobox}}</nowiki></tt> produces the infobox. *<tt><nowiki>{{Data:Achievements/The Comfort of Strangers|summary}}</nowiki></tt> produces the summary. *<tt><nowiki>{{Data:Achievements/The Comfort of Strangers|summary|top}}</nowiki></tt> is used for the top-most row in the summary. <pre> |1 = type of display ("infobox" or "summary") |2 = additional parameter (i.e. "top" for including header row in "summary") |3 = unused |image = path to specific image. If omitted, it will default to "{{{ach_title}}}.png" |ach_title = title of the achievement |ach_link = SUBPAGENAME (if title different from PAGENAME; for linking purposes |ach_type = achievement type (i.e. General, Campaign, etc.) |ach_subtype = achievement sub-type (i.e. Act I, Act II, etc.) |ach_checklist = checklist for the achievement (Yes for listing "ach_list_n"), other values will be displayed <!-- this is order sensitive!! --> |ach_list_1 .. ach_list_n = checklist details (must be in order and numbered) |ach_requirement = other achievements required (Yes for listing "ach_req_n"), other values will be displayed <!-- this is order sensitive!! --> |ach_req_1 .. ach_req_n = requirement details (must be in order and numbered) |ach_point = points awarded |ach_rw_type = reward for the achievement (banner mod type), if any |ach_rw_desc = description for reward (banner mod name), icon will default to "{{{ach_rw_type}}} - {{{ach_rw_desc}}}.png" |ach_desc = description for the achievement |ach_prev = previous achievement (in a sequence, e.g. Moneybags & The One Percent), if available |ach_next = next achievement (in a sequence, e.g. Moneybags & The One Percent), if available </pre> {{docEnd}} [[Category:Templates]]</noinclude> | + | __NOTOC__ {{#ifeq: {{{1|infobox}}}|infobox|<!-- --><table class="dftable infobox" style="margin-bottom: 10px"> <tr><td colspan="2" style="padding: 0"> <table cellspacing="0" cellpadding="0"> <tr><th class="header">{{{ach_title}}}</th> <th class="header2" style="color: #AAA; font-size: 1.3em; width: 1em;">{{#ifeq: {{NAMESPACE}} | Data | ↑ | [[Data:Achievements/{{PAGENAME}}|↑]] }}<br />[[{{SUBPAGENAME}}|↓]]</th> </tr></table> </td></tr> <tr><td colspan="2" class="image" style="padding: 10px 0">{{#if: {{{image|}}} | [[File:{{{image}}}|175px|border]] | {{#ifexist: File:{{{ach_title}}}.png | [[File:{{{ach_title}}}.png|175px|border]] | <noinclude>Image goes here</noinclude>}}}} {{#if: {{{ach_desc|<noinclude>1</noinclude>}}} | <div style="font-size: smaller; padding: 10px 10px 0 10px">''{{{ach_desc|Description goes here}}}''</div> }} </td></tr> <tr><th width="80px">Type</th><td>{{{ach_type}}} {{#if: {{{ach_subtype|}}}|> {{{ach_subtype}}} }}</td></tr> <tr><th>Points</th><td>{{{ach_point}}}</td></tr><!-- -->{{#if: {{{ach_checklist|<noinclude>1</noinclude>}}} | <tr><th colspan="2">Checklist</th></tr><tr><td colspan="2">{{#ifeq: {{lc: {{{ach_checklist|}}}}} | yes || {{{ach_checklist}}} }}<!-- --><div class="achlist" style="font-size: smaller"><noinclude><ul><li>ach_list_1...ach_list_n</li></ul></noinclude>{{#forargs: ach_list_ |k |v |<nowiki/> *{{#var:v}} }}</div> </td></tr> }} {{#if: {{{ach_requirement|<noinclude>1</noinclude>}}} | <tr><th colspan="2">Requirements</th></tr><tr><td colspan="2">{{#ifeq: {{lc: {{{ach_requirement|}}}}} | yes || {{{ach_requirement}}} }}<!-- --><div class="achreq" style="font-size: smaller"><noinclude><ul><li>ach_req_1...ach_req_n</li></ul></noinclude>{{#forargs: ach_req_ |k |v |<nowiki/> *{{#var:v}} }}</div> </td></tr> }} {{#if: {{{ach_rw_type|<noinclude>1</noinclude>}}} | <tr><th colspan="2">Reward</th></tr><tr><td colspan="2" align="center">[[{{{ach_rw_type}}}]]<br />{{{ach_rw_desc}}}</td></tr> <tr><td colspan="2" class="image" style="padding: 0 0 10px 0">{{#ifexist: File:{{{ach_rw_type}}} - {{{ach_rw_desc}}}.png | [[File:{{{ach_rw_type}}} - {{{ach_rw_desc}}}.png]] {{#ifexist: File:{{{ach_rw_type}}} - {{{ach_rw_desc}}} (variant).png | [[File:{{{ach_rw_type}}} - {{{ach_rw_desc}}} (variant).png]] }} | <noinclude>Reward icon(s) goes here</noinclude> }}</td></tr> }}{{#ifexist: File:{{{ach_rw_type_2}}} - {{{ach_rw_desc_2}}}.png | <tr><td colspan="2" align="center">[[{{{ach_rw_type_2}}}]]<br />{{{ach_rw_desc_2}}}</td></tr><tr><td colspan="2" class="image" style="padding: 0 0 10px 0">[[File:{{{ach_rw_type_2}}} - {{{ach_rw_desc_2}}}.png]]</td></tr> }} <tr style="{{#if: {{{ach_prev|<noinclude>1</noinclude>}}} || {{#if: {{{ach_next|<noinclude>1</noinclude>}}} || display: none }}}}"><td colspan="2" style="padding: 0"> <table cellspacing="0" cellpadding="0"><tr><th colspan="2">Achievement Series</th></tr><tr><tr> <td align="left">{{#if: {{{ach_prev|<noinclude>1</noinclude>}}} | [[{{{ach_prev}}}|← {{{ach_prev}}}]] }}</td> <td align="right">{{#if: {{{ach_next|<noinclude>1</noinclude>}}} | [[{{{ach_next}}}|{{{ach_next}}} →]] }}</td> </tr></table> </table><!-- --><includeonly>{{#ifeq:{{NAMESPACE}}|Data|<!-- do nothing -->|[[Category:Diablo III {{{ach_type}}} Achievements]]{{#if: {{{ach_subtype|}}}|[[Category:Diablo III {{{ach_subtype}}} Achievements]]}}}}</includeonly><!-- --> |<!-- summary -->{{#ifeq: {{{1|}}}|summary|<!-- -->{{#ifeq: {{{2|}}}|top|<!-- --><table class="dftable dfborder" cellpadding="6" style="margin-bottom: 15px; text-align: left; font-size: smaller; width: 65%"> <tr style="text-align: center"> <th class="header" colspan="2">Achievement</th> <th class="header">Points</th> <th class="header" colspan="2">Reward</th> <th class="header">Description</th> </tr>}} <tr style="vertical-align: top"><td class="image" style="text-align: center; width: 70px">{{#if: {{{image|}}} | [[File:{{{image}}}|64px|border]] | {{#ifexist: File:{{{ach_title}}}.png | [[File:{{{ach_title}}}.png|64px|border]] | <noinclude>Icon</noinclude>}}}} </td> <th style="width: 20%">{{#if: {{{ach_link|<noinclude>1</noinclude>}}}|[[{{{ach_link}}}|{{{ach_title}}}]]|[[{{{ach_title}}}]]}}</th> <td style="text-align: center">{{{ach_point}}}</td> {{#if: {{{ach_rw_type|<noinclude>1</noinclude>}}} |<!-- --><td style="text-align: center">{{#ifexist: File:{{{ach_rw_type}}} - {{{ach_rw_desc}}}.png | [[File:{{{ach_rw_type}}} - {{{ach_rw_desc}}}.png|64px]] }} {{#ifexist: File:{{{ach_rw_type}}} - {{{ach_rw_desc}}} (variant).png | [[File:{{{ach_rw_type}}} - {{{ach_rw_desc}}} (variant).png|64px]] }} {{#ifexist: File:{{{ach_rw_type_2}}} - {{{ach_rw_desc_2}}}.png | [[File:{{{ach_rw_type_2}}} - {{{ach_rw_desc_2}}}.png|64px]] }}</td><td style="width: 10%"><span style="white-space: nowrap">[[{{{ach_rw_type}}}]]</span><br />{{{ach_rw_desc}}} {{#if: {{{ach_rw_type_2|<noinclude>1</noinclude>}}} | <br /><br /><span style="white-space: nowrap">[[{{{ach_rw_type_2}}}]]</span><br />{{{ach_rw_desc_2}}} }}</td><!-- -->|<!-- --><td colspan="2" style="text-align: center">–</td> }} <td style="width: 100%">{{#if: {{{ach_desc|<noinclude>1</noinclude>}}} | ''{{{ach_desc|Description}}}''<!-- --><div class="achlist" style="padding-left: 5px; -moz-column-count: 2; -webkit-column-count: 2; column-count: 2"><!-- -->{{#forargs: ach_list_ |k |v |<nowiki/> *{{#var:v}} }}</div><!-- --><div class="achreq" style="padding-left: 5px; -moz-column-count: 2; -webkit-column-count: 2; column-count: 2"><!-- -->{{#forargs: ach_req_ |k |v |<nowiki/> *{{#var:v}} }}</div>}}</td> </tr> {{#ifeq: {{{2|}}}|bottom|</table>}} }}}}<!-- end --><!-- --><noinclude>{{clear}}{{docStart}} This is the standard achievement template for Diablo 3. It will generate the infobox (or the summary) depending on what the first parameter is passed: |
+ | == Usage == | ||
+ | *<tt><nowiki>{{Data:Achievements/The Comfort of Strangers|infobox}}</nowiki></tt> produces the infobox. | ||
+ | *<tt><nowiki>{{Data:Achievements/The Comfort of Strangers|summary}}</nowiki></tt> produces the summary. | ||
+ | *<tt><nowiki>{{Data:Achievements/The Comfort of Strangers|summary|top}}</nowiki></tt> is used for the top-most row in the summary. | ||
+ | |||
+ | <pre> | ||
+ | |1 = type of display ("infobox" or "summary") | ||
+ | |2 = additional parameter (i.e. "top" for including header row in "summary") | ||
+ | |3 = unused | ||
+ | |image = path to specific image. If omitted, it will default to "{{{ach_title}}}.png" | ||
+ | |ach_title = title of the achievement | ||
+ | |ach_link = SUBPAGENAME (if title different from PAGENAME; for linking purposes | ||
+ | |ach_type = achievement type (i.e. General, Campaign, etc.) | ||
+ | |ach_subtype = achievement sub-type (i.e. Act I, Act II, etc.) | ||
+ | |ach_checklist = checklist for the achievement (Yes for listing "ach_list_n"), other values will be displayed | ||
+ | <!-- this is order sensitive!! --> | ||
+ | |ach_list_1 .. ach_list_n = checklist details (must be in order and numbered) | ||
+ | |ach_requirement = other achievements required (Yes for listing "ach_req_n"), other values will be displayed | ||
+ | <!-- this is order sensitive!! --> | ||
+ | |ach_req_1 .. ach_req_n = requirement details (must be in order and numbered) | ||
+ | |ach_point = points awarded | ||
+ | |ach_rw_type = reward for the achievement (banner mod type), if any | ||
+ | |ach_rw_desc = description for reward (banner mod name), icon will default to "{{{ach_rw_type}}} - {{{ach_rw_desc}}}.png" |ach_desc = description for the achievement | ||
+ | |ach_prev = previous achievement (in a sequence, e.g. Moneybags & The One Percent), if available | ||
+ | |ach_next = next achievement (in a sequence, e.g. Moneybags & The One Percent), if available | ||
+ | </pre> | ||
+ | {{docEnd}} | ||
+ | [[Category:Templates]]</noinclude> |
在2013年1月16日 (三) 04:48所做的修订版本
| |||||
Image goes here Description goes here | |||||
Type | {{{ach_type}}} | ||||
---|---|---|---|---|---|
Points | {{{ach_point}}} | ||||
Checklist | |||||
{{{ach_checklist}}}
| |||||
Requirements | |||||
{{{ach_requirement}}}
| |||||
Reward | |||||
[[{{{ach_rw_type}}}]] {{{ach_rw_desc}}} | |||||
Reward icon(s) goes here | |||||
|
Documentation
This is the standard achievement template for Diablo 3. It will generate the infobox (or the summary) depending on what the first parameter is passed:
[purge
]
Usage
- {{Data:Achievements/The Comfort of Strangers|infobox}} produces the infobox.
- {{Data:Achievements/The Comfort of Strangers|summary}} produces the summary.
- {{Data:Achievements/The Comfort of Strangers|summary|top}} is used for the top-most row in the summary.
|1 = type of display ("infobox" or "summary") |2 = additional parameter (i.e. "top" for including header row in "summary") |3 = unused |image = path to specific image. If omitted, it will default to "{{{ach_title}}}.png" |ach_title = title of the achievement |ach_link = SUBPAGENAME (if title different from PAGENAME; for linking purposes |ach_type = achievement type (i.e. General, Campaign, etc.) |ach_subtype = achievement sub-type (i.e. Act I, Act II, etc.) |ach_checklist = checklist for the achievement (Yes for listing "ach_list_n"), other values will be displayed <!-- this is order sensitive!! --> |ach_list_1 .. ach_list_n = checklist details (must be in order and numbered) |ach_requirement = other achievements required (Yes for listing "ach_req_n"), other values will be displayed <!-- this is order sensitive!! --> |ach_req_1 .. ach_req_n = requirement details (must be in order and numbered) |ach_point = points awarded |ach_rw_type = reward for the achievement (banner mod type), if any |ach_rw_desc = description for reward (banner mod name), icon will default to "{{{ach_rw_type}}} - {{{ach_rw_desc}}}.png" |ach_desc = description for the achievement |ach_prev = previous achievement (in a sequence, e.g. Moneybags & The One Percent), if available |ach_next = next achievement (in a sequence, e.g. Moneybags & The One Percent), if available