Difference between revisions of "Template:Comment"
(3 intermediate revisions by one other user not shown) | |||
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|}}} | ||
| and a reply to [[Belongs to comment::{{{CommentRelatedComment|}}}]] | | | 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 | | {{#vardefine:userimage|{{#ask: [[{{{CommentPerson}}}]] | ?User_image = | link=none}} }} | ||
}} | }} | ||
{{#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|}}}, | |{{{CommentPerson|}}}, | ||
}}[[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> | ||
[[Comment was deleted::{{{CommentWasDeleted|false}}}]] | |||
{{#if:{{{AttachedArticles|}}}|{{#arraymapce:{{{AttachedArticles|}}}|,|x|[[Has attached article::x]]}}| | {{#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|value=Collaboration}} | |||
{{Content hash|value=}} | |||
</noinclude> | </noinclude> |