Difference between revisions of "Template:Forum"

From Openresearch
Jump to: navigation, search
(New page: <noinclude>This template simplifies the creation of news. When inserted in a page, it creates a decorative table with much helpful information. It also takes care of annotating the given d...)
 
 
Line 5: Line 5:
 
<pre>{{Forum
 
<pre>{{Forum
 
  | Name = The forum name, defaults to pagename
 
  | Name = The forum name, defaults to pagename
  | Type = one of mailinglist, social network group, web forum, wiki (or other subcategory of Category:Forum)
+
  | Type = one of Mailinglist, Social network group, Web forum, Wiki (or other subcategory of Category:Forum)
 
  | Moderation = one of moderated, unmoderated
 
  | Moderation = one of moderated, unmoderated
 
  | Field = primary research field of the tool (must be a subcategory of Category:Science), add additional ones via category links
 
  | Field = primary research field of the tool (must be a subcategory of Category:Science), add additional ones via category links
Line 21: Line 21:
 
|-
 
|-
 
{{#ifeq:{{{Image|}}}|||{{Tablelongrow|Align=Center|Value=[[Image:{{{Image}}}|frameless|Image for {{{Name|{{PAGENAME}}}}}]] }}}}
 
{{#ifeq:{{{Image|}}}|||{{Tablelongrow|Align=Center|Value=[[Image:{{{Image}}}|frameless|Image for {{{Name|{{PAGENAME}}}}}]] }}}}
 +
|-
 +
{{Tablerow|Label=[[:Category:Forum|Type]]:|Value=[[:Category:{{{Type|Forum}}}|{{{Type|Forum}}}]][[Category:{{{Type|Forum}}}]]}}
 
|-
 
|-
 
{{Tablerow|Label=[[:Category:Science|Field]]:|Value=[[:Category:{{{Field|Science}}}|{{{Field|Science}}}]][[Category:{{{Field|Science}}}]]}}
 
{{Tablerow|Label=[[:Category:Science|Field]]:|Value=[[:Category:{{{Field|Science}}}|{{{Field|Science}}}]][[Category:{{{Field|Science}}}]]}}
Line 34: Line 36:
 
{{#ifeq:{{{Member count|}}}|||{{Tablerow|Label=Member count:|Value=[[Member count::{{{Member count}}}]]}}}}
 
{{#ifeq:{{{Member count|}}}|||{{Tablerow|Label=Member count:|Value=[[Member count::{{{Member count}}}]]}}}}
 
|}
 
|}
[[Category:Forum]]
 
 
</includeonly>
 
</includeonly>

Latest revision as of 17:30, 13 August 2008

This template simplifies the creation of news. When inserted in a page, it creates a decorative table with much helpful information. It also takes care of annotating the given data semantically, so that users can easily find it or query it in other articles.

To use this template, insert the following at the beginning of your page. All fields are strictly optional and should be omitted if no data is given.

{{Forum
 | Name = The forum name, defaults to pagename
 | Type = one of Mailinglist, Social network group, Web forum, Wiki (or other subcategory of Category:Forum)
 | Moderation = one of moderated, unmoderated
 | Field = primary research field of the tool (must be a subcategory of Category:Science), add additional ones via category links
 | URL = URL of the forum web page (without "http://")
 | Organization = organisation maintaining the forum, if applicable
 | Contact = contact person maintaining the forum, if applicable
 | Member count = approximate member count
 | Image = the name of an uploaded image, such as "WikiPipesLogo.png" (use "Upload file" in the toolbar on the left)
}}

The order of the fields is not relevant. The template should be given as the first thing on a page.