Template:Achievement: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
mNo edit summary
imported>AntumDeluge
add color to difficulty
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if: {{{title|}}} | {{anchor|{{{title}}}}} }}
; <span style="font-weight:bold;font-style:italic;color:darkgreen;">{{{title}}}</span>
; <span style="font-weight:bold;font-style:italic;color:darkgreen;">{{#if: {{{title|}}} | {{{title}}} | (TBD) }}</span>
: Description: ''{{{description}}}''
: Description: {{#if: {{{description|}}} | ''{{{description}}}'' | ''(TBD)'' }}
: Difficulty: ''{{{difficulty}}}''<noinclude>
: Difficulty: {{#if: {{{difficulty|}}} | <span style="font-style: italic; color: {{#ifeq: {{{difficulty}}} | easy | blue | {{#ifeq: {{{difficulty}}} | medium | green | {{#ifeq: {{{difficulty}}} | hard | darkorange | {{#ifeq: {{{difficulty}}} | extreme | red | black }} }} }} }};">{{{difficulty}}}</span> | ''(TBD)'' }}

: Status: {{#if: {{{status|}}}
| {{#ifeq: {{{status|}}} | complete
| <span style="font-weight: bold; font-style: italic; color: darkgreen;">COMPLETE</span>
| {{#ifeq: {{{status|}}} | vetoed
| <span style="font-weight: bold; font-style: italic; color: darkred;">VETOED</span>
| {{#ifeq: {{{status|}}} | assigned
| <span style="font-weight: bold; font-style: italic; color: darkblue;">ASSIGNED</span>
| ''{{{status}}}''
}}
}}
}}
| <span style="font-weight: bold; font-style: italic; color: darkorange;">pending</span>
}}{{#if: {{{assigned|}}} | &nbsp;''({{{assigned}}})'' }}{{#if: {{{discussion|}}} |
: Discussion:
<div style="margin-left: 4em; font-style: italic;">
{{{discussion}}}
</div>}}<noinclude>


== Examples ==
== Examples ==
Line 10: Line 27:
! Input || Output
! Input || Output
|-
|-
| <span style="font-family: monospace;"><nowiki>{{</nowiki>Achievement
| <nowiki>{{Achievement|title=Foo|description=Bar|difficulty=easy}}</nowiki> || {{Achievement|title=Foo|description=Bar|difficulty=easy}}
&nbsp;<nowiki>|</nowiki> title = Foo<br>
&nbsp;<nowiki>|</nowiki> description = Description about Foo achievement<br>
&nbsp;<nowiki>|</nowiki> difficulty = easy<br>
&nbsp;<nowiki>|</nowiki> status = complete<br>
&nbsp;<nowiki>|</nowiki> assigned = <nowiki>~~~</nowiki><br>
&nbsp;<nowiki>|</nowiki> discussion = Points of discussion:<br>
<nowiki>* Point A. ~~~</nowiki><br>
<nowiki>* Point B.</nowiki><br>
<nowiki>}}</nowiki></span>
|| {{Achievement
| title = Foo
| description = Description about Foo achievement
| difficulty = easy
| status = complete
| assigned = [[User:AntumDeluge|AntumDeluge]] ([[User talk:AntumDeluge|talk]])
| discussion = Points of discussion:
* Point A. [[User:AntumDeluge|AntumDeluge]] ([[User talk:AntumDeluge|talk]])
* Point B.
}}
|}
|}
</blockquote>
</blockquote>