Difference between revisions of "Template:Objective"

m
Tweak sorting
m (Apparantly class parameters override the curved bit)
m (Tweak sorting)
 
(2 intermediate revisions by the same user not shown)
<noinclude>[[category: notices]]
This template should be used on pages which are part of the monthly [[:Category: Objectives|article objectives]] push. To make an article into an objective copy {{t|objective|2=date=<nowiki>{{subst:#time:Y-m}}</nowiki>}} to the top of the article, which will be replaced by something like {{t|objective|2=date={{#time:Y-m}} }} when the article is saved. To claim an article add <code>|claim=Fbstj</code> to the template (it should look like this: {{t|objective|2=date={{#time:Y-m}}|3=claim=Fbstj&#32;}}), which will be replaced by your username on save. Once you are done, add <code>|complete=y</code> to the end of the template.
 
== Appearance ==
! '''Unclaimed:'''
| rowspan=2 | </noinclude>{{notice|style=background-color: #ffeb3b;<noinclude>width: 90%;</noinclude>|id=objective|class=curved objective
|b=This page {{#if:{{{complete|}}}|was|is}} part of the [[:Category: Objectives|{{#time:F Y|{{{date|}}}|}} objectives]]!
|1=<span class="{{#if:{{{claim|}}}|claimed|<includeonly>unclaimed</includeonly>}}" style='font-size: 100%'><!--
-->{{#if:{{{claim|}}}<!--
-->|{{#if:{{{complete|}}}<!--
-->|It has been claimed by [[User: {{{claim}}}]], please contact them before doing edits<!--
-->|It was completed by [[User: {{{claim}}}]]!<!--
-->|It is currently unclaimed, add <code><nowiki>|claim={{subst:REVISIONUSER}}</nowiki></code> between <code><nowiki>{{objective</nowiki></code> and <code><nowiki>|date=</nowiki></code> if you have claimed the article.<!--
-->|It has been claimed by [[User: {{{claim}}}]], please contact them before doing edits.<!--
-->}}<!--
-->|It is currently unclaimed, add <code><nowiki>|claim={{subst:REVISIONUSER}}</nowiki></code> between <code><nowiki>{{objective</nowiki></code> and <code><nowiki>|date=</nowiki></code> if you have claimed the article.<!--
-->}}</span>
}}<includeonly><!--
 
-->{{#ifexpr:{{NAMESPACENUMBER}}|<!-- only categorise articles -->|[[category: objectives|{{#if:{{{complete|}}}|~|{{#if:{{{claim|}}}|_}}}}{{PAGENAME}}]]}}<!--
 
-->{{#if:{{{claim|}}}|<set-property key="objective-claim">{{{claim}}}</set-property>}}<!--