Latest revision |
Your text |
Line 1: |
Line 1: |
| {{Documentation}}
| | <templatedata> |
| <div class="template-doc"> | |
| {{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
| |
| }}
| |
| == Usage ==
| |
| [[Template:Community]] is a template, used to display a standard set of information at the top of a community page.
| |
| | |
| For <code><nowiki>[[Template:Community]]</nowiki></code>, template code then looks like this, simplified:
| |
| <pre>
| |
| {{Community
| |
| | name = {{{name|{{PAGENAME}}}}}
| |
| | aka = {{{aka}}}
| |
| | description = {{{description}}}
| |
| | subcommunities = {{{subcommunities}}}
| |
| | subreddit = {{{subreddit}}}
| |
| | discord = {{{discord}}}
| |
| | website = {{{website}}}
| |
| | twitter = {{{twitter}}}
| |
| | twitch = {{{twitch}}}
| |
| | artwork = {{{artwork}}}
| |
| | logo = {{{logo}}}
| |
| }}
| |
| </pre>
| |
| | |
| Code for example:
| |
| <pre>{{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
| |
| }}</pre>
| |
| == Template Data ==
| |
| <Templatedata>
| |
| { | | { |
| "params": { | | "params": { |
Line 62: |
Line 16: |
| "description": "Brief description of community", | | "description": "Brief description of community", |
| "example": "r/placetux was a collaboration of several subreddits in the Linux/OSE and other communities", | | "example": "r/placetux was a collaboration of several subreddits in the Linux/OSE and other communities", |
| "suggested": true
| |
| },
| |
| "aka": {
| |
| "label": "AKA",
| |
| "description": "Aliases or other names for the community",
| |
| "example": "The Place Group"
| |
| },
| |
| "subcommunities": {
| |
| "label": "Subcommunities",
| |
| "description": "List of other communities within this community or alliance (comma-separated list of wiki links)",
| |
| "example": "[[r/placegroup]],[[Some Other Team]]"
| |
| },
| |
| "logo": {
| |
| "aliases": [
| |
| "image"
| |
| ],
| |
| "label": "Logo",
| |
| "description": "Image file for the logo or picture representing the community",
| |
| "example": "image_community_logo.png",
| |
| "suggested": true | | "suggested": true |
| }, | | }, |
Line 88: |
Line 23: |
| ], | | ], |
| "label": "Subreddit", | | "label": "Subreddit", |
| "description": "Name of subreddit or list of subreddits (without \"r/\")", | | "description": "Name of subreddit (including \"r/\")", |
| "example": "placetux, MIT", | | "example": "r/placetux", |
| "type": "string" | | "type": "string" |
| }, | | }, |
Line 133: |
Line 68: |
| "format": "block" | | "format": "block" |
| } | | } |
| </Templatedata> | | </templatedata> |
| </div>
| |