Geekahedron (talk | contribs) (Added "Subcommunities" parameter) |
m (Reverted edits by Artillect (talk) to last revision by Geekahedron) Tag: Rollback |
||
(35 intermediate revisions by 3 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" | |- class="infobox-image" | ||
Line 13: | Line 13: | ||
|- | |- | ||
|- class="infobox-tr" | |- class="infobox-tr" | ||
{{#if: {{{name|}}} | {{!}} | {{#if: {{{name|}}} | {{!}} class="infobox-parameter" {{!}} Name {{!!}} {{{name}}} }} | ||
|- class="infobox-tr" | |- class="infobox-tr" | ||
{{#if: {{{aka|}}} | {{!}} | {{#if: {{{aka|}}} | {{!}} class="infobox-parameter" {{!}} AKA {{!!}} {{{aka}}} }} | ||
|- class="infobox-tr" | |- class="infobox-tr" | ||
{{#if: {{{ | {{#if: {{{description|}}} | {{!}} class="infobox-parameter" {{!}} Description {{!!}} {{{description}}} }} | ||
|- class="infobox-tr" | |- class="infobox-tr" | ||
{{#if: {{{ | {{#if: {{{subcommunities|}}} | {{NamedList|{{{subcommunities}}} | Subcommunities | infobox=1 }} }} | ||
|- class="infobox-tr" | |- class="infobox-tr" | ||
{{#if: {{{subreddit|}}} | {{!}} class="infobox-parameter" {{!}}Subreddit {{!!}} [https://reddit.com/r/ | {{#if: {{{subcommunities2|}}} | {{NamedList|{{{subcommunities2}}} | Subcommunities | infobox=1 }} }} | ||
|- class="infobox-tr" | |||
{{#if: {{{subcommunities3|}}} | {{NamedList|{{{subcommunities3}}} | Subcommunities | infobox=1 }} }} | |||
|- class="infobox-tr" | |||
{{#if: {{{subcommunities4|}}} | {{NamedList|{{{subcommunities4}}} | Subcommunities | infobox=1 }} [[Category:Alliances]]]]}} | |||
|- class="infobox-tr" | |||
{{#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|}}} | {{!}} class="infobox-parameter" {{!}} Discord {{!!}} {{{discord}}} }} | {{#if: {{{discord|}}} | {{!}} class="infobox-parameter" {{!}} Discord {{!!}} {{{discord}}} }} | ||
Line 32: | Line 38: | ||
|- class="infobox-tr" | |- class="infobox-tr" | ||
{{#if: {{{artwork|}}} | {{!}} class="infobox-parameter" {{!}} Artwork {{!!}} {{{artwork}}} }} | {{#if: {{{artwork|}}} | {{!}} class="infobox-parameter" {{!}} Artwork {{!!}} {{{artwork}}} }} | ||
|} | |}[[Category:Communities]] {{#if: {{{subcommunities|}}} | [[Category:Alliances]] }} | ||
</div> | </div> | ||
</includeonly> | |||
<noinclude>{{/doc}}</noinclude> | <noinclude>{{/doc}}</noinclude> |
Latest revision as of 02:54, 21 April 2022
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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name title | Name of the community
| String | required |
Description | description | Brief description of community
| Unknown | suggested |
AKA | aka | Aliases or other names for the community
| Unknown | optional |
Subcommunities | subcommunities | List of other communities within this community or alliance (comma-separated list of wiki links)
| Unknown | optional |
Logo | logo image | Image file for the logo or picture representing the community
| Unknown | suggested |
Subreddit | subreddit reddit | Name of subreddit or list of subreddits (without "r/")
| String | optional |
Discord | discord | Link/invite to discord server
| URL | optional |
Website | website site url | Link to website or other URL for this community
| URL | optional |
twitter | Twitter handle of account for this community or artwork creator
| String | optional | |
Twitch | twitch | Twitch username for streamer or creator represented by this community
| String | optional |
Artwork | artwork art | Name of placeatlas2 wiki page for artwork(s) created by this community
| Unknown | suggested |