Difference between revisions of "Template:ForumBox"

From Hack Forums Wiki
m (1 revision)
Line 1: Line 1:
<includeonly>
{{Infobox
{{Infobox
|  bodystyle = overflow: auto; width: 25%; background: #333333; color: #d3d3d3;
|  bodystyle = overflow: auto; width: 25%; background: #333333; color: #d3d3d3;
Line 7: Line 8:
|  label3    = Post Count:                      |  data3 = {{#ifeq:{{{PostCount|}}}|N/A|N/A|~{{{PostCount}}}}}
|  label3    = Post Count:                      |  data3 = {{#ifeq:{{{PostCount|}}}|N/A|N/A|~{{{PostCount}}}}}
|  label4    = Thread Count:                    |  data4 = {{#ifeq:{{{ThreadCount|}}}|N/A|N/A|~{{{ThreadCount}}}}}
|  label4    = Thread Count:                    |  data4 = {{#ifeq:{{{ThreadCount|}}}|N/A|N/A|~{{{ThreadCount}}}}}
|  label5    = Moderator(s):                    |  data5 = {{#if: {{{Mod1|}}}|{{#ifeq: {{{Mod1|}}}|Mentors|[[Group:Mentor|Mentors]][[Category:Forums Moderated by Mentors]]|[[Member:{{{ModUID1}}}|{{{Mod1}}}]][[Category:Forums Moderated by Members]]}}|N/A}} {{#if: {{{Mod2|}}}|{{#ifeq: {{{Mod2|}}}|Mentors| {{o}} [[Group:Mentor|Mentors]][[Category:Forums Moderated by Mentors]]| {{o}} [[Member:{{{ModUID2}}}|{{{Mod2}}}]][[Category:Forums Moderated by Members]]}}|}} {{#if: {{{Mod3|}}}|{{#ifeq: {{{Mod3|}}}|Mentors| {{o}} [[Group:Mentor|Mentors]][[Category:Forums Moderated by Mentors]]| {{o}} [[Member:{{{ModUID3}}}|{{{Mod3}}}]][[Category:Forums Moderated by Members]]}}|}}
|  label5    = Moderator(s):                    |  data5 = {{#if: {{{Mod1|}}}|{{#ifeq: {{{Mod1|}}}|Mentors|[[Mentors]][[Category:Forums Moderated by Mentors]]|[[{{{Mod1}}}]][[Category:Forums Moderated by Members]]}}|N/A}} {{#if: {{{Mod2|}}}|{{#ifeq: {{{Mod2|}}}|Mentors| {{o}} [[Mentors]][[Category:Forums Moderated by Mentors]]| {{o}} [[{{{Mod2}}}]][[Category:Forums Moderated by Members]]}}|{{Empty}}}} {{#if: {{{Mod3|}}}|{{#ifeq: {{{Mod3|}}}|Mentors| {{o}} [[Mentors]][[Category:Forums Moderated by Mentors]]| {{o}} [[{{{Mod3}}}]][[Category:Forums Moderated by Members]]}}|{{Empty}}}}
|  label6    = Forum Tab:                      |  data6 = {{#if: {{{Tab|}}}|[[:Category:{{{Tab}}} Tab|{{{Tab}}} Tab]]|N/A}}
|  label6    = Forum Tab:                      |  data6 = {{#if: {{{Tab|}}}|[[:Category:{{{Tab}}} Tab|{{{Tab}}} Tab]]|N/A}}
|  label7    = Parent Forum:                    |  data7 = {{#if: {{{ParentForum|}}}|[[Forum:{{{ParentForum}}}|{{{ParentForum}}}]]|N/A}}
|  label7    = Parent Forum:                    |  data7 = {{#if: {{{ParentForum|}}}|[[{{{ParentForum}}}]]|N/A}}
|  label8    = Subforum(s):                    |  data8 = {{#if: {{{SubForum1|}}}|[[Forum:{{{SubForum1}}}|{{{SubForum1}}}]]|N/A}}{{#if: {{{SubForum2|}}}|<br>[[Forum:{{{SubForum2}}}|{{{SubForum2}}}]]}}{{#if: {{{SubForum3|}}}|<br>[[Forum:{{{SubForum3}}}|{{{SubForum3}}}]]|}} {{#if: {{{SubForum4|}}}|<br>[[Forum:{{{SubForum4}}}|{{{SubForum4}}}]]|}}{{#if: {{{SubForum5|}}}|<br>[[Forum:{{{SubForum5}}}|{{{SubForum5}}}]]|}}{{#if: {{{SubForum6|}}}|<br>[[Forum:{{{SubForum6}}}|{{{SubForum6}}}]]|}}{{#if: {{{SubForum7|}}}|<br>[[Forum:{{{SubForum7}}}|{{{SubForum7}}}]]|}}{{#if: {{{SubForum8|}}}|<br>[[Forum:{{{SubForum8}}}|{{{SubForum8}}}]]|}}{{#if: {{{SubForum9|}}}|<br>[[Forum:{{{SubForum9}}}|{{{SubForum9}}}]]|}}{{#if: {{{SubForum10|}}}|<br>[[Forum:{{{SubForum10}}}|{{{SubForum10}}}]]|}}
|  label8    = Subforum(s):                    |  data8 = {{#if: {{{SubForum1|}}}|[[|{{{SubForum1}}}]]|N/A}}{{#if: {{{SubForum2|}}}|<br>[[{{{SubForum2}}}]]|{{Empty}}}}{{#if: {{{SubForum3|}}}|<br>[[{{{SubForum3}}}]]|{{Empty}}}} {{#if: {{{SubForum4|}}}|<br>[[{{{SubForum4}}}]]|{{Empty}}}}{{#if: {{{SubForum5|}}}|<br>[[{{{SubForum5}}}]]|{{Empty}}}}{{#if: {{{SubForum6|}}}|<br>[[{{{SubForum6}}}]]|{{Empty}}}}{{#if: {{{SubForum7|}}}|<br>[[{{{SubForum7}}}]]|{{Empty}}}}{{#if: {{{SubForum8|}}}|<br>[[{{{SubForum8}}}]]|{{Empty}}}}{{#if: {{{SubForum9|}}}|<br>[[{{{SubForum9}}}]]|{{Empty}}}}{{#if: {{{SubForum10|}}}|<br>[[{{{SubForum10}}}]]|{{Empty}}}}
|  label9    = Prefixes:                        |  data9 = {{#if: {{{Prefixes|}}}|{{{Prefixes}}}|N/A}}
|  label9    = Prefixes:                        |  data9 = {{#if: {{{Prefixes|}}}|{{{Prefixes}}}|N/A}}
}}
}}
Line 44: Line 45:


{{ForumNavbox|Tab={{{Tab}}}}}
{{ForumNavbox|Tab={{{Tab}}}}}
<includeonly>
[[Category:Forums]]
[[Category:Forums]]
{{#if: {{{Tab|}}}|{{#ifeq: {{{Tab|}}}|Parent|[[Category:Parent Forum]]|[[Category:{{{Tab}}} Tab]]}}|}}
{{#if: {{{Tab|}}}|{{#ifeq: {{{Tab|}}}|Parent|[[Category:Parent Forum]]|[[Category:{{{Tab}}} Tab]]}}|}}
Line 80: Line 80:
<pre>
<pre>
{{ForumBox
{{ForumBox
| ForumName  = Full name of the forum
| ForumName  = Full name of the forum
| ForumPic    = Ficon (don't include File:)
| ForumPic    = Ficon (don't include File:)
| ForumDesc  = Full description of the forum
| ForumDesc  = Full description of the forum as it appears on HF
| ParentForum = Full name of the Parent Forum
| FID        = Forum ID
| SubForum1   = Full name of the subforum. Up to five subforums can be listed
| Status      = Open, Closed, Restricted
| Mod1       = Full username of a moderator. If the forum is moderated by Mentors, just put "Mentors"
| Overview    = Brief generalization of what the forum is about
| Mod2        = If the forum is moderated by an individual user in addition to Mentors, put the user as Mod, and "Mentors" as Mod2.
| Rules      = Forum rules that appear above the forum content
| PostCount   = Approximate post count
| ThreadCount = Approximate thread count
| Mod1        = Full username of moderator 1
| Mod2       = Full username of moderator 2
| Tab        = Tab this forum falls under
| ParentForum = Parent forum of this forum, if any
| SubForum1  = Subforum of this subforum, if any
| SubForum2  =
| Sticky1    = Information about stickied threads THAT ARE NOT PAID STICKIES
| StickyTID1  =
| Author1    =
| AuthorUID1  =
| Sticky2    =
| StickyTID2  =
| Author2    =
| AuthorUID2  =
}}
}}
</pre>
</pre>

Revision as of 10:01, 10 July 2015


This template is used on Forum pages (any article with the Forum: namespace) and is used to describe the specific details of said Forum.

{{ForumBox
| ForumName   = 
| ForumPic    = 
| ForumDesc   = 
| FID         =
| Status      = 
| Overview    = 
| Rules       = 
| PostCount   = 
| ThreadCount = 
| Mod1        = 
| Mod2        = 
| Tab         = 
| ParentForum = 
| SubForum1   = 
| SubForum2   = 
| Sticky1     = 
| StickyTID1  = 
| Author1     = 
| AuthorUID1  = 
| Sticky2     = 
| StickyTID2  = 
| Author2     = 
| AuthorUID2  = 
}}

Example usage is below.

{{ForumBox

| ForumName   = Full name of the forum
| ForumPic    = Ficon (don't include File:)
| ForumDesc   = Full description of the forum as it appears on HF
| FID         = Forum ID
| Status      = Open, Closed, Restricted
| Overview    = Brief generalization of what the forum is about
| Rules       = Forum rules that appear above the forum content
| PostCount   = Approximate post count
| ThreadCount = Approximate thread count
| Mod1        = Full username of moderator 1
| Mod2        = Full username of moderator 2
| Tab         = Tab this forum falls under
| ParentForum = Parent forum of this forum, if any
| SubForum1   = Subforum of this subforum, if any
| SubForum2   = 
| Sticky1     = Information about stickied threads THAT ARE NOT PAID STICKIES
| StickyTID1  = 
| Author1     = 
| AuthorUID1  = 
| Sticky2     = 
| StickyTID2  = 
| Author2     = 
| AuthorUID2  = 
}}