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
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{{info|add title=Add 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;">
{{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
}}


  <h3>Add Community Resource</h3>
== Links ==
 
{{{field|Community links|holds template}}}
  <strong>1. Name:</strong><br>
{{{end template}}}
  {{{field|Name|input type=text|size=50|placeholder=e.g. Official Discord}}}
{{{for template|Community link|multiple|embed in field=Community[Community links]|add button text=Add community link}}}
  <br><br>
{{Link fields|Community links}}
{{{end template}}}


  <strong>2. Related Game:</strong><br>
  {{{field|Related game|input type=text|autocomplete|values from category=Games|size=40}}}
  <br><br>
  <strong>3. Link (URL):</strong><br>
  (Must start with http:// or https://)<br>
  {{{field|URL|input type=text|size=60}}}
  <br><br>
  <strong>4. Description:</strong><br>
  {{{field|Description|input type=textarea|rows=2}}}
</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