Template:Community: Difference between revisions

Template page
No edit summary
m (Reverted edits by Artillect (talk) to last revision by Geekahedron)
Tag: Rollback
 
(64 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| style="clear: right; border: solid #aaa 1px; margin: 0 0 1em 1em; font-size: 95%; background: #1a1a1b; color: #fff; width: 310px; padding: 10px; text-align: left; float: right;"
<templatestyles src="Infobox/style.css"></templatestyles>
|-  
<templatestyles src="Community/style.css"></templatestyles>
| colspan="2" align="center" style="font-size:125%;" bgcolor=#ff4500 | {{PAGENAME}}
<templatestyles src="TemplateData/style.css"></templatestyles>
<includeonly><div class="infobox">
{|
|-  class="infobox-image"
{{#if: {{{logo|}}} | {{!}} align=center colspan=2 {{!}} [[Image:{{{logo}}}|center|300px]] }}
|-
| colspan="2" class="infoboxheader" | {{PAGENAME}}
|-
|-
|
|
|-
|-
|- style="vertical-align: top;"
|-
{{#if: {{{name|}}} | {{!}} valign=top {{!}} '''Name''' {{!!}} {{{name}}} }}
|- class="infobox-tr"
|- style="vertical-align: top;"
{{#if: {{{name|}}} | {{!}} class="infobox-parameter" {{!}} Name {{!!}} {{{name}}} }}
{{#if: {{{description|}}} | {{!}} valign=top {{!}} '''Description''' {{!!}} {{{description}}} }}
|- class="infobox-tr"
|- style="vertical-align: top;"
{{#if: {{{aka|}}} | {{!}} class="infobox-parameter" {{!}} AKA {{!!}} {{{aka}}} }}
{{#if: {{{subreddit|}}} | {{!}} '''Subreddit''' {{!!}} [https://reddit.com/{{{subreddit}}} {{{subreddit}}} ] }}
|- class="infobox-tr"
|- style="vertical-align: top;"
{{#if: {{{description|}}} | {{!}} class="infobox-parameter" {{!}} Description {{!!}} {{{description}}} }}
{{#if: {{{discord|}}} | {{!}} '''Discord''' {{!!}} {{{discord}}} }}
|- class="infobox-tr"
|- style="vertical-align: top;"
{{#if: {{{subcommunities|}}} | {{NamedList|{{{subcommunities}}} | Subcommunities | infobox=1 }} }}
{{#if: {{{website|}}} | {{!}} '''Website''' {{!!}} {{{website}}} }}
|- class="infobox-tr"
|- style="vertical-align: top;"
{{#if: {{{subcommunities2|}}} | {{NamedList|{{{subcommunities2}}} | Subcommunities | infobox=1 }} }}
{{#if: {{{twitter|}}} | {{!}} '''Twitter''' {{!!}} {{{twitter}}} }}
|- class="infobox-tr"
|- style="vertical-align: top;"
{{#if: {{{subcommunities3|}}} | {{NamedList|{{{subcommunities3}}} | Subcommunities | infobox=1 }} }}
{{#if: {{{twitch|}}} | {{!}} '''Twitch''' {{!!}} {{{twitch}}} }}
|- class="infobox-tr"
|- style="vertical-align: top;"
{{#if: {{{subcommunities4|}}} | {{NamedList|{{{subcommunities4}}} | Subcommunities | infobox=1 }} [[Category:Alliances]]]]}}
{{#if: {{{artwork|}}} | {{!}} '''Artwork''' {{!!}} {{{artwork}}} }}
|- class="infobox-tr"
<noinclude>
{{#if: {{{subreddit|}}} | {{!}} class="infobox-parameter" {{!}}Subreddit {{!!}} {{#rreplace:{{{subreddit}}}|(\w+)(,?)\s*|[https://reddit.com/r/\1 \1]\2 }} }}
<br clear="all">
|- class="infobox-tr"
{{documentation}}
{{#if: {{{discord|}}} | {{!}} class="infobox-parameter" {{!}} Discord {{!!}} {{{discord}}} }}
[[Category:Templates|Artwork]]
|- class="infobox-tr"
</noinclude>
{{#if: {{{website|}}} | {{!}} class="infobox-parameter" {{!}} Website {{!!}} {{{website}}} }}
|- class="infobox-tr"
{{#if: {{{twitter|}}} | {{!}} class="infobox-parameter" {{!}} Twitter {{!!}} {{{twitter}}} }}
|- class="infobox-tr"
{{#if: {{{twitch|}}} | {{!}} class="infobox-parameter" {{!}} Twitch {{!!}} {{{twitch}}} }}
|- class="infobox-tr"
{{#if: {{{artwork|}}} | {{!}} class="infobox-parameter" {{!}} Artwork {{!!}} {{{artwork}}} }}
|}[[Category:Communities]] {{#if: {{{subcommunities|}}} | [[Category:Alliances]] }}
</div>
</includeonly>
<noinclude>{{/doc}}</noinclude>

Latest revision as of 02:54, 21 April 2022

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Community/doc. Changes can be proposed in the talk page.
Template:Community invokes Template:Community/style.css using TemplateStyles.
Template:Community invokes Template:Infobox/style.css using TemplateStyles.
Template:Community invokes Template:TemplateData/style.css using TemplateStyles.
Green Lattice Banner with Grapu.png
Community
Name A Community
Description This is a description of the community
Subcommunities group1,group 2
Allies group 3,ally 4
Subreddit subreddit
Discord https://discord.gg/linkylink
Website https://communitypage.iou
Artwork Some Art


Usage

Template:Community is a template, used to display a standard set of information at the top of a community page.

For [[Template:Community]], template code then looks like this, simplified:

{{Community
| name = {{{name|{{PAGENAME}}}}}
| aka  = {{{aka}}}
| description = {{{description}}}
| subcommunities = {{{subcommunities}}}
| subreddit = {{{subreddit}}}
| discord = {{{discord}}}
| website = {{{website}}}
| twitter = {{{twitter}}}
| twitch = {{{twitch}}}
| artwork = {{{artwork}}}
| logo = {{{logo}}}
}}

Code for example:

{{Community
| description = This is a description of the community
| Subcommunities = [[group1]], [[group 2]]
| subcommunities2 = Allies<< [[group 3]], [[ally 4]] >>
| subreddit = subreddit
| discord = https://discord.gg/linkylink
| website = https://communitypage.iou
| artwork = [[Some Art]]
| logo = Green_Lattice_Banner_with_Grapu.png
| name = A Community
}}

Template Data

Use this template on a community page to provide a standardized block of information about the community and the artwork they contributed

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename title

Name of the community

Example
r/placetux
Stringrequired
Descriptiondescription

Brief description of community

Example
r/placetux was a collaboration of several subreddits in the Linux/OSE and other communities
Unknownsuggested
AKAaka

Aliases or other names for the community

Example
The Place Group
Unknownoptional
Subcommunitiessubcommunities

List of other communities within this community or alliance (comma-separated list of wiki links)

Example
[[r/placegroup]],[[Some Other Team]]
Unknownoptional
Logologo image

Image file for the logo or picture representing the community

Example
image_community_logo.png
Unknownsuggested
Subredditsubreddit reddit

Name of subreddit or list of subreddits (without "r/")

Example
placetux, MIT
Stringoptional
Discorddiscord

Link/invite to discord server

Example
https://discord.gg/cYB7GjWNp8
URLoptional
Websitewebsite site url

Link to website or other URL for this community

Example
https://placetux.org
URLoptional
Twittertwitter

Twitter handle of account for this community or artwork creator

Example
tuxofficial
Stringoptional
Twitchtwitch

Twitch username for streamer or creator represented by this community

Example
xQc
Stringoptional
Artworkartwork art

Name of placeatlas2 wiki page for artwork(s) created by this community

Example
Tux the penguin
Unknownsuggested
Cookies help us deliver our services. By using our services, you agree to our use of cookies.