Difference between revisions of "Template:Comments infobox for user"

m (1 revision)
 
Line 3: Line 3:
[[Rationale::Shows an infobox of the most recent comments made by a user. This template should be called on a user's page.]]
[[Rationale::Shows an infobox of the most recent comments made by a user. This template should be called on a user's page.]]
[[Category:Template]]
[[Category:Template]]
</noinclude><includeonly>{{#vardefine:query|[[Category:Comment]] [[Has comment person::{{FULLPAGENAME}}]] [[Modification date::+]]}} {{#vardefine:resultLimit|5}} {{#vardefine:resultNumber|{{#ask: {{#var:query}} | format=count}}}}
</noinclude><includeonly>{{#vardefine:query|[[Category:Comment]] [[Has comment person::{{FULLPAGENAME}}]] [[Modification date::+]]}} {{#vardefine:resultLimit|5}} {{#vardefine:resultNumber|{{#ask: {{#var:query}} | format=count}}}}  


{| cellspacing="0" cellpadding="5" style="border: 1px solid rgb(170, 170, 170); margin: 0pt 0pt 0.5em 1em; background: rgb(255, 255, 255) none repeat scroll 0% 0%; position: relative; border-collapse: collapse; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; float: right; clear: right; width: 35%;"
{| cellspacing="0" cellpadding="5" style="border: 1px solid rgb(170, 170, 170); margin: 0pt 0pt 0.5em 1em; background: rgb(255, 255, 255) none repeat scroll 0% 0%; position: relative; border-collapse: collapse; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; float: right; clear: right; width: 35%;"
Line 9: Line 9:
! style="background: rgb(237, 244, 252) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; color: black;" colspan="2" | Recent Comments ({{#var:resultNumber}})
! style="background: rgb(237, 244, 252) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; color: black;" colspan="2" | Recent Comments ({{#var:resultNumber}})
|-
|-
| {{#ask: {{#var:query}}
| {{#ask: {{#var:query}}  
|?Has comment text
|?Has comment text
|?Has comment rating
|?Has comment rating
Line 18: Line 18:
| format=template
| format=template
| template=Comment row for user
| template=Comment row for user
| limit={{#var:resultLimit}}
| limit={{#var:resultLimit}}  
| searchlabel=
| searchlabel=  
| link=none
| link=none  
| default=*''no comments made yet''}}
| default=*''no comments made yet''}}
|-
|-
| colspan="2" | {{#ifexpr: {{#var:resultNumber}} > {{#var:resultLimit}} | <small>For all comments of {{FULLPAGENAME}} click [{{fullurl:Template:Comments overview|ofUser={{urlencode:{{FULLPAGENAME}}}}}} here...]</small>}}
| colspan="2" | {{#ifexpr: {{#var:resultNumber}} > {{#var:resultLimit}} | <small>For all comments of {{FULLPAGENAME}} click [{{fullurl:Template:Comments overview|ofUser={{urlencode:{{FULLPAGENAME}}}}}} here...]</small>}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
[[Part of bundle::Collaboration| ]]</noinclude>
 
{{Part of bundle|value=Collaboration}}
 
{{Content hash|value=}}
 
</noinclude>

Latest revision as of 11:57, 21 March 2013