Line 3: Line 3:
[[Rationale::Creates a comment.]]
[[Rationale::Creates a comment.]]
[[Category:Template]]
[[Category:Template]]
</noinclude><includeonly>''Comment for {{#if: {{{CommentRelatedArticle|}}}
</noinclude><includeonly>''Comment for {{#if: {{{CommentRelatedArticle|}}}  
| [[Belongs to article::{{{CommentRelatedArticle|}}}]] | nothing
| [[Belongs to article::{{{CommentRelatedArticle|}}}]] | nothing
}}{{#if: {{{CommentRelatedComment|}}}
}}{{#if: {{{CommentRelatedComment|}}}  
| &nbsp;and a reply to [[Belongs to comment::{{{CommentRelatedComment|}}}]] |
| &nbsp;and a reply to [[Belongs to comment::{{{CommentRelatedComment|}}}]] |  
}}''<!-- start comment (do not change css-classes)-->
}}''<!-- start comment (do not change css-classes)-->
<!-- start comment person (do not change css-class.) -->
<!-- start comment person (do not change css-class.) -->
<div class="collabComResPerson">
<div class="collabComResPerson">
{{#if: {{{CommentPerson|}}}
{{#if: {{{CommentPerson|}}}  
| {{#vardefine:userimage|{{#ask: [[{{{CommentPerson}}}]] | ?User_image = | link=none|mainlabel=-}} }}
| {{#vardefine:userimage|{{#ask: [[{{{CommentPerson}}}]] | ?User_image = | link=none}} }}  
{{#if:{{#var:userimage}}||{{#vardefine:userimage|{{#ask:[[{{{CommentPerson}}}]]|?SSP avatar=|link=none|mainlabel=-}}}}}}
}}
}}
{{#if:{{#var:userimage}}
{{#if:{{#var:userimage}}
| [[{{#var:userimage}}|frameless|48x48px|nopreview|link={{{CommentPerson}}}]]
| [[{{#var:userimage}}|frameless|48x48px|nopreview|link={{{CommentPerson}}}]]  
| [[File:Defaultuser.gif|frameless|48px|nopreview|link={{{CommentPerson}}}]]
| [[File:Defaultuser.gif|frameless|48px|nopreview|link={{{CommentPerson}}}]]  
}}</div><!-- end comment person
}}</div><!-- end comment person  
--><!-- start comment rating
--><!-- start comment rating  
-->{{#if:{{{CommentRating|}}}
-->{{#if:{{{CommentRating|}}}
| [[Has comment rating::{{{CommentRating|}}}|]]<div class ="collabComResRating">{{#ifexpr: {{{CommentRating|}}} < 2 | {{#ifexpr: {{{CommentRating|}}} > -2 | Article quality rated:<div class="collabComResRatingIcon">{{#ifexpr: {{{CommentRating|}}} = -1 | [[File:Bad_active.png]] }}{{#ifexpr: {{{CommentRating|}}} = 0 | [[File:Neutral_active.png]] }}{{#ifexpr: {{{CommentRating|}}} = 1 | [[File:Good_active.png]] }}</div>|}}| }}</div>|}}<!-- end comment rating
| [[Has comment rating::{{{CommentRating|}}}|]]<div class ="collabComResRating">{{#ifexpr: {{{CommentRating|}}} < 2 | {{#ifexpr: {{{CommentRating|}}} > -2 | Article quality rated:<div class="collabComResRatingIcon">{{#ifexpr: {{{CommentRating|}}} = -1 | [[File:Bad_active.png]] }}{{#ifexpr: {{{CommentRating|}}} = 0 | [[File:Neutral_active.png]] }}{{#ifexpr: {{{CommentRating|}}} = 1 | [[File:Good_active.png]] }}</div>|}}| }}</div>|}}<!-- end comment rating  
--><div class="collabComResRight"><div class="collabComResUsername">
--><div class="collabComResRight"><div class="collabComResUsername">
{{#if: {{{CommentPerson|}}}
{{#if: {{{CommentPerson|}}}  
|{{#ifexist:{{{CommentPerson}}}
|{{#ifexist:{{{CommentPerson}}}
|[[{{{CommentPerson|}}}]],
|[[{{{CommentPerson|}}}]],  
|{{{CommentPerson|}}},&nbsp;
|{{{CommentPerson|}}},&nbsp;  
}}[[Has comment person::{{{CommentPerson|}}}| ]]|
}}[[Has comment person::{{{CommentPerson|}}}| ]]|
}}</div>
}}</div>
<!-- start comment date
<!-- start comment date
-->{{#if: {{{CommentDatetime|}}}
-->{{#if: {{{CommentDatetime|}}}  
| <div class="collabComResDate">[[Has comment date::{{{CommentDatetime|}}}]]</div>
| <div class="collabComResDate">[[Has comment date::{{{CommentDatetime|}}}]]</div>
}}<!-- end comment date
}}<!-- end comment date
Line 37: Line 36:
|[[Has comment text::{{{CommentContent|}}}]]}}</div>
|[[Has comment text::{{{CommentContent|}}}]]}}</div>
<!-- end comment content--></div>
<!-- end comment content--></div>
{{#if:{{{CommentWasDeleted|}}}|{{#ifeq:{{{CommentWasDeleted}}}|false||<br/>Comment was deleted}}}}[[Comment was deleted::{{{CommentWasDeleted|}}}|]]
[[Comment was deleted::{{{CommentWasDeleted|false}}}]]
{{#if:{{{AttachedArticles|}}}|{{#arraymapce:{{{AttachedArticles|}}}|,|x|[[Has attached article::x]]}}|<br/>no attached articles}}
{{#if:{{{AttachedArticles|}}}|{{#arraymapce:{{{AttachedArticles|}}}|,|x|[[Has attached article::x]]}}|no attached articles}}
<!-- end comment -->[[Category:Comment]]</includeonly><noinclude>
<!-- end comment -->[[Category:Comment]]</includeonly><noinclude>
[[Part of bundle::Collaboration| ]]
 
{{Part of bundle|value=Collaboration}}
 
{{Content hash|value=}}
 
</noinclude>
</noinclude>

Latest revision as of 12:57, 21 March 2013