Template:Community: Difference between revisions

Template page
No edit summary
m (Reverted edits by Artillect (talk) to last revision by Geekahedron)
Tag: Rollback
 
(51 intermediate revisions by 5 users not shown)
Line 2: Line 2:
<templatestyles src="Community/style.css"></templatestyles>
<templatestyles src="Community/style.css"></templatestyles>
<templatestyles src="TemplateData/style.css"></templatestyles>
<templatestyles src="TemplateData/style.css"></templatestyles>
<div class="infobox">
<includeonly><div class="infobox">
{|
{|
|-  
|-  class="infobox-image"
{{#if: {{{logo|}}} | {{!}} align=center colspan=2 {{!}} [[Image:{{{logo}}}|center|300px]] }}
|-
| colspan="2" class="infoboxheader" | {{PAGENAME}}
| colspan="2" class="infoboxheader" | {{PAGENAME}}
|-
|-
|
|
|-
|-
|-
|- class="infobox-tr"
{{#if: {{{name|}}} | {{!}} class="infobox-parameter" {{!}} Name {{!!}} {{{name}}} }}
|- class="infobox-tr"
{{#if: {{{aka|}}} | {{!}} class="infobox-parameter" {{!}} AKA {{!!}} {{{aka}}} }}
|- class="infobox-tr"
{{#if: {{{description|}}} | {{!}} class="infobox-parameter" {{!}} Description {{!!}} {{{description}}} }}
|- class="infobox-tr"
{{#if: {{{subcommunities|}}} | {{NamedList|{{{subcommunities}}} | Subcommunities | infobox=1 }} }}
|- class="infobox-tr"
|- class="infobox-tr"
{{#if: {{{name|}}} | {{!}} valign=top {{!}} '''Name''' {{!!}} {{{name}}} }}
{{#if: {{{subcommunities2|}}} | {{NamedList|{{{subcommunities2}}} | Subcommunities | infobox=1 }} }}
|- class="infobox-tr"
|- class="infobox-tr"
{{#if: {{{aka|}}} | {{!}} valign=top {{!}} '''AKA''' {{!!}} {{{aka}}} }}
{{#if: {{{subcommunities3|}}} | {{NamedList|{{{subcommunities3}}} | Subcommunities | infobox=1 }} }}
|- class="infobox-tr"
|- class="infobox-tr"
{{#if: {{{description|}}} | {{!}} valign=top {{!}} '''Description''' {{!!}} {{{description}}} }}
{{#if: {{{subcommunities4|}}} | {{NamedList|{{{subcommunities4}}} | Subcommunities | infobox=1 }} [[Category:Alliances]]]]}}
|- class="infobox-tr"
|- class="infobox-tr"
{{#if: {{{subreddit|}}} | {{!}} '''Subreddit''' {{!!}} [https://reddit.com/{{{subreddit}}} {{{subreddit}}} ] }}
{{#if: {{{subreddit|}}} | {{!}} class="infobox-parameter" {{!}}Subreddit {{!!}} {{#rreplace:{{{subreddit}}}|(\w+)(,?)\s*|[https://reddit.com/r/\1 \1]\2 }} }}
|- class="infobox-tr"
|- class="infobox-tr"
{{#if: {{{discord|}}} | {{!}} '''Discord''' {{!!}} {{{discord}}} }}
{{#if: {{{discord|}}} | {{!}} class="infobox-parameter" {{!}} Discord {{!!}} {{{discord}}} }}
|- class="infobox-tr"
|- class="infobox-tr"
{{#if: {{{website|}}} | {{!}} '''Website''' {{!!}} {{{website}}} }}
{{#if: {{{website|}}} | {{!}} class="infobox-parameter" {{!}} Website {{!!}} {{{website}}} }}
|- class="infobox-tr"
|- class="infobox-tr"
{{#if: {{{twitter|}}} | {{!}} '''Twitter''' {{!!}} {{{twitter}}} }}
{{#if: {{{twitter|}}} | {{!}} class="infobox-parameter" {{!}} Twitter {{!!}} {{{twitter}}} }}
|- class="infobox-tr"
|- class="infobox-tr"
{{#if: {{{twitch|}}} | {{!}} '''Twitch''' {{!!}} {{{twitch}}} }}
{{#if: {{{twitch|}}} | {{!}} class="infobox-parameter" {{!}} Twitch {{!!}} {{{twitch}}} }}
|- class="infobox-tr"
|- class="infobox-tr"
{{#if: {{{artwork|}}} | {{!}} '''Artwork''' {{!!}} {{{artwork}}} }}
{{#if: {{{artwork|}}} | {{!}} class="infobox-parameter" {{!}} Artwork {{!!}} {{{artwork}}} }}
|}
|}[[Category:Communities]] {{#if: {{{subcommunities|}}} | [[Category:Alliances]] }}
</div>
</div>
<noinclude>
</includeonly>
{{documentation}}
<noinclude>{{/doc}}</noinclude>
[[Category:Templates|Artwork]]
</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.