PC Gaming Shelter
An archive dedicated to preserving PC Gaming history and more

Form:Community: Difference between revisions

From PC Gaming Shelter
No edit summary
No edit summary
Tag: 2017 source edit
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{{info|add title=Add a Community Link|edit title=Edit Community Link}}}
<noinclude>
{{#forminput: form=Community
|button text=Create or Edit Community Entry
|autocomplete on category=Communities
|no autofocus
}}
{{DISPLAYTITLE: Add a New Community}}
</noinclude><includeonly>
{{{info|add title=Add a new Community Entry|edit title=Edit Community Entry}}}


{{{for template|Community}}}
{{{for template|Community}}}
<div style="max-width:600px; background:#fff; border:1px solid #ccc; padding:20px; font-family:sans-serif;">
{{form row
|{{{field
  |Image
  |input type=text
  |uploadable
  |image preview
  |class=form-control
}}}
|label=Cover Image:
|property=Image
}}
{{form row
|{{{field
  |Related game
  |input type=tokens
  |delimiter=,
  |values from category=Games
  |placeholder=e.g. Half-Life
  |class=form-control
}}}
|label=Game:
|property=Related game
}}
{{form row
|{{{field
  |Has status
  |input type=radiobutton
  |values=Active, Not Active
  |mandatory
  |default=Not Active
  |class=form-control
}}}
|label=Status:
|property=Has status
}}
{{form row
|{{{field
  |Has short description
  |input type=textarea
  |rows=3
  |class=form-control
}}}
|label=Note:
|property=Has short description
}}


  <div style="font-size:1.5em; font-weight:bold; border-bottom:2px solid #2a4b8d; margin-bottom:20px;">
== Links ==
    Add Community Resource
{{{field|Community links|holds template}}}
  </div>
{{{end template}}}
 
{{{for template|Community link|multiple|embed in field=Community[Community links]|add button text=Add community link}}}
  <strong>Community Name:</strong><br>
{{Link fields|Community links}}
  {{{field|Name|input type=text|size=50|placeholder=e.g. Stargate Speedrunners}}}
{{{end template}}}
  <br><br>
 
  <strong>Related Game:</strong><br>
  {{{field|Related game|input type=text|autocomplete|values from category=Games|size=40}}}
  <br><br>
 
  <div style="display:flex; gap:20px; margin-bottom:15px;">
    <div style="flex:1;">
      <strong>Type:</strong><br>
      {{{field|Type|input type=dropdown|values=Discord, Reddit, Forum, Wiki, Official Site}}}
    </div>
    <div style="flex:1;">
      <strong>Category:</strong><br>
      {{{field|Community category|input type=dropdown|values=General Chat, Guides, PvP, Speedrunning, Mods, Trading, Roleplay|allow user input=true}}}
    </div>
  </div>
 
  <strong>Invite Link / URL:</strong><br>
  {{{field|URL|input type=text|size=60|placeholder=https://discord.gg/...}}}
  <br><br>
 
  <strong>Description:</strong><br>
  {{{field|Description|input type=textarea|rows=3|style=width:100%}}}


</div>
{{{end template}}}


{{{standard input|save}}}
{{{standard input|save}}}  
{{{standard input|preview}}}
{{{standard input|cancel}}}
</includeonly>

Latest revision as of 18:39, 25 March 2026