[4.1 Beta 2] Member profile: Skip wiki stats if contributions/comments are 0. View all contributions by Array and missing phrase
XFMG only adds itself to a member's profile stats section when they have submitted 1+ media items:
Code:
<xf:if is="$user.xfmg_media_count">
<xf:if>
XFRM also implements this approach. If a user's resource count is 0 then the XFRM stat pair is skipped when viewing their member details.
I suggest that VaultWiki in the template
vw_profile_ministats should do the same.
For wiki comments:
Code:
<xf:if is="$user.vwUserCount.vw_comments">
<dl class="pairs pairs--rows pairs--rows--centered">
<dt title="{{ vw_phrase('vw_profile_comments')|for_attr }}">{{ vw_phrase('vw_profile_comments') }}</dt>
<dd>
<a href="{{ link('search/member', null, {'user_id': $user.user_id, 'content': 'vwcomment'}) }}" class="fauxBlockLink-linkRow u-concealed">
{$user.vwUserCount.vw_comments|number}
</a>
</dd>
</dl>
</xf:if>
----
In the "Find" menu of a user profile, there is a menu item with the text "View all contributions by Array". In the template
vw_profile_find_links, the phrase should be corrected to:
Code:
{{ vw_phrase('vw_profile_all_contribs', {$user.username}) }}
Also, I think in a profile context this phrase would make more sense to people if it explicitly said 'wiki contributions'.
----
At the path wiki/Special:Contributions?userid=1 , there is a missing phrase
#!-- XEN:VWPHRASE vw_special_main_desc ARGS(Contributions) --#.
Beneath the missing phrase, the page then says: "This page description was added automatically because the current page has no text content.
Edit this page to add more relevant text." This seems inconsistent with other special pages that do not show this message.