Help:Community home pages
From AMI@Work Communities Wiki
Contents |
[edit] General style
A community home page should look like this:
{{communitybar}}
<div style="width: 65%;">
PUT WIKI TEXT HERE
</div>
[[Category:Communities]]
The transclusion of the communitybar template above will add a bar to the right which will include the subpages contacts, events, and documents. For example, on Rural@Work, the community bar includes:
Edit these pages to customize them. Put at least one heading (==Heading name==) on each of these pages to allow users to edit them easily from the main community page.
[edit] The contact template
Use the contact template to list contacts in the contacts subpage. This template accepts arguments in the following form:
{{contact
| name=Adam Turowiec
| title=Chair
| email=adam.turowiec@itti.com.pl
| affiliation=[http://www.itti.com.pl ITTI], Poznan, Poland
| picture=Turowiec.jpg}}
Have a look at AMI@Work on-line Communities/contacts for another example.
[edit] Including news
You can add a section like this to include a list of all news categorized (in this case) in Category:Rural@Work news. The DPL tag creates a dynamic page list.
In your community home page, use your community news category instead of Category:Rural@Work news. If there's no category for your community news, just create it.
== Community news == Registered members can [[/news|create a news article]]. <DPL> namespace=News category=Rural@Work news count=5 shownamespace=false order=descending ordermethod=firstedit </DPL> [[/news|older news]]
[edit] The news subpage
If you include news, please also create a news subpage. The subpage should include a list of all the news for your community (this can be done again with <DPL> but without specifying a count).
Also, it is useful to have a "create news article" box like this:
<inputbox> type=create default=News: preload=Template:News template Rural@Work editintro=Help:News intro width=30 bgcolor=#ddddff </inputbox>
You should change
preload=Template:News template Rural@Work
to
preload=Template:News template YourCommunityName
and create this template. You can base it on Template:News template Rural@Work—just replace the category link to point to your own community news category.
See also: Rural@Work/news

