Difference between revisions of "Template:Forum"

From Openresearch
Jump to navigation Jump to 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...)
 
m (Text replacement - "{{Tablerow" to "{{TableRow")
 
(One intermediate revision by one other user not shown)
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 22: Line 22:
 
{{#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:Science|Field]]:|Value=[[:Category:{{{Field|Science}}}|{{{Field|Science}}}]][[Category:{{{Field|Science}}}]]}}
+
{{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}}}]]}}
 
|-
 
|-
 
{{#ifeq:{{{Moderation|}}}|||{{Tablesection|Label=[[Moderation::{{{Moderation}}}]]}}}}
 
{{#ifeq:{{{Moderation|}}}|||{{Tablesection|Label=[[Moderation::{{{Moderation}}}]]}}}}
Line 28: Line 30:
 
{{#ifeq:{{{URL|}}}|||{{Tablesection|Label=[[url::http://{{{URL}}}]]|Color=#F5CFE9}}}}
 
{{#ifeq:{{{URL|}}}|||{{Tablesection|Label=[[url::http://{{{URL}}}]]|Color=#F5CFE9}}}}
 
|-
 
|-
{{#ifeq:{{{Organization|}}}|||{{Tablerow|Label=Organization:|Value=[[Organization::{{{Organization}}}]]}}}}
+
{{#ifeq:{{{Organization|}}}|||{{TableRow|Label=Organization:|Value=[[Organization::{{{Organization}}}]]}}}}
 
|-
 
|-
{{#ifeq:{{{Contact|}}}|||{{Tablerow|Label=Contact:|Value=[[Contact::{{{Contact}}}]]}}}}
+
{{#ifeq:{{{Contact|}}}|||{{TableRow|Label=Contact:|Value=[[Contact::{{{Contact}}}]]}}}}
 
|-
 
|-
{{#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 19:43, 23 April 2021

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.