Templates download/Profile Gallery: Difference between revisions

Created page with "{{Textbox|boxtype=warning|header=Attention|text=This template is currently under construction!|icon=yes}} <div class="downloadarea"> <span class="getButton">Download</span> 450x450px </div> The ''Profilegallery'' template allows you to display the profile pictures of users in a department on a page. The department name must be entered on the users’ profile pages. If no profile picture exists, the user’s..."
Tag: 2017 source edit
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Textbox|boxtype=warning|header=Attention|text=This template is currently under construction!|icon=yes}}
<div class="downloadarea">
<div class="downloadarea">
<span class="getButton">[[Media:HW-Profilegallery.zip|Download]]</span>
<span class="getButton">[[Media:HW-Profilegallery.zip|Download]]</span>
Line 6: Line 5:


</div>
</div>
The ''Profilegallery'' template allows you to display the profile pictures of users in a department on a page. The department name must be entered on the users’ profile pages. If no profile picture exists, the user’s avatar is displayed.
The ''Profilegallery'' template displays the profile pictures of users in a department on a page. The department name must be entered on the users’ profile pages. If no profile picture exists, the user avatar is displayed.{{Templateimport|HW-Profilegallery}}


==Importing the Template==
==Imported pages==
The import file is included in the archive file ''HW-Profilegallery.zip''. Unpack the zip file first.
The XML-Import creates the following pages in your wiki:


On the page ''Special:Import'' follow these steps:
* Template:Profilegallery
* Template:Profilegallery/format
* Template:Profilegallery/styles.css


#'''Select file''' and choose ''HW-Profilegallery.xml''.
==Displaying profile pictures==
#'''Enter''' an Interwiki prefix. Since this field is required, simply add ''hw'' (for hallowelt).
#'''Keep''' the selection ''Import to default locations''.
#'''Click''' ''Upload file...'' .


The template is now available in your wiki.
# '''Insert''' the template on a page using the visual editor.
# '''Enter''' the name of the department exactly as it is [[Manual:Extension/UserProfile|defined in the respective users' profiles]].[[File:hw-profilegallery-templatedata.png|alt=TemplateData dialog for the template with example department |center|thumb|450x450px|Adding the department name]]
# '''Click''' ''Apply Changes''.
The profile pictures are now displayed.


==Displaying Profile Pictures==
{{Textbox|boxtype=important|header=Note regarding deactivated users:|text=If a department is listed on the profile page of deactivated users, these users are currently displayed in the gallery as well. If this is not desired, the department name must be removed from the user profiles.|icon=yes}}


# '''Insert''' the template on a page using the visual editor.
==Template parameter==
# '''Enter''' he name of the department.


[[File:Profileimages_Department.png|alternativtext=department input form|center|mini|550x550px|epartment information from the profile pages]][[File:Profileimgaes Profilepage including Deparmtent.png|alternativtext=profile box from the profile page|center|mini|550x550px|department defined on the profile page]]
{| class="wikitable"
! Parameter
!Name!! Value
!Description
|-
| Department
|department|| text
|Name of the department as shown on the profile pages of the wiki
|-
|Style
|style
|large (default), compact
|
|-
|Alignment
|align
|start, space-around, space-between, center (default)
|Alignment of the images in a row
([https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/justify-content Flex property])
|}


The profile pictures are now displayed.<br />


__NOTOC__
__NOTOC__

Latest revision as of 15:00, 12 May 2026

The Profilegallery template displays the profile pictures of users in a department on a page. The department name must be entered on the users’ profile pages. If no profile picture exists, the user avatar is displayed.

Importing the template

The import file is included in the archive file HW-Profilegallery.zip. Unpack the zip file first.


On the page Special:Import follow these steps:

  1. Select file and choose HW-Profilegallery.xml.
  2. Enter an Interwiki prefix. Since this field is required, simply add hw (for hallowelt).
  3. Keep the selection Import to default locations.
  4. Click Upload file... .
The template is now available in your wiki.


Imported pages

The XML-Import creates the following pages in your wiki:

  • Template:Profilegallery
  • Template:Profilegallery/format
  • Template:Profilegallery/styles.css

Displaying profile pictures

  1. Insert the template on a page using the visual editor.
  2. Enter the name of the department exactly as it is defined in the respective users' profiles.
    TemplateData dialog for the template with example department
    Adding the department name
  3. Click Apply Changes.

The profile pictures are now displayed.

Note regarding deactivated users: If a department is listed on the profile page of deactivated users, these users are currently displayed in the gallery as well. If this is not desired, the department name must be removed from the user profiles.


Template parameter

Parameter Name Value Description
Department department text Name of the department as shown on the profile pages of the wiki
Style style large (default), compact
Alignment align start, space-around, space-between, center (default) Alignment of the images in a row

(Flex property)



PDF exclude - start

To submit feedback about this documentation, visit our community forum.

PDF exclude - end