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

Form:Resource: Difference between revisions

From PC Gaming Shelter
No edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 4: Line 4:
{{form row
{{form row
|{{{field
|{{{field
   |Has URL
   |Image
   |input type=regexp
   |input type=text
   |regexp=/^https?:\/\/[^\s/$.?#].[^\s]*$/
  |uploadable
   |message=Enter a valid URL starting with http:// or https://
   |class=form-control
}}}
|label=Cover Image (''leave empty to inherit the image from the related Game''):
|property=Image
}}
{{form row
|{{{field
   |Has short description
  |input type=textarea
  |class=form-control
}}}
}}}
|label=URL:
|label=Short description:
|property=Has URL
|property=Has short description
}}
}}
{{form row
{{form row
Line 16: Line 25:
   |Related game
   |Related game
   |input type=tokens
   |input type=tokens
   |values from property=Related game
   |values from category=Games
  |max values=1
  |mandatory
  |class=form-control
}}}
}}}
|label=Game:
|label=Game:
Line 24: Line 36:
|{{{field
|{{{field
   |Has resource type
   |Has resource type
   |input type=tokens
   |input type=dropdown
   |property=Has resource type
   |property=Has resource type
   |show on select=Video=>video;
   |show on select=Video=>video;
  |mandatory
  |default=Video
  |class=form-control
}}}
}}}
|label=Media type:
|label=Media type:
Line 36: Line 51:
   |input type=checkboxes
   |input type=checkboxes
   |property=Has content type
   |property=Has content type
  |class=form-control
}}}
}}}
|label=Content type:
|label=Content type:
Line 48: Line 64:
|{{{field
|{{{field
   |Has date
   |Has date
   |input type=datepicker
   |input type=date
  |class=form-control
}}}
}}}
|label=Date:
|label=Date:
Line 57: Line 74:
   |Created by
   |Created by
   |input type=text
   |input type=text
  |class=form-control
}}}
}}}
|label=Created by:
|label=Created by:
Line 67: Line 85:
   |property=Has language
   |property=Has language
   |existing values only
   |existing values only
  |class=form-control
}}}
}}}
|label=Language:
|label=Language:
|property=Has language
|property=Has language
}}
{{form row
|{{{field
  |Has URL
  |input type=regexp
  |regexp=/^https?:\/\/[^\s/$.?#].[^\s]*$/
  |message=Enter a valid URL starting with http:// or https://
  |class=form-control
}}}
|label=URL:
|property=Has URL
}}
}}
<div id="video">
<div id="video">
Line 85: Line 115:
   |property=Has language
   |property=Has language
   |existing values only
   |existing values only
  |class=form-control
}}}
}}}
|label=Language of subtitles:
|label=Language of subtitles:
Line 93: Line 124:
{{{end template}}}
{{{end template}}}
</includeonly><noinclude>
</includeonly><noinclude>
{{{forminput: form=Resource
{{#forminput: form=Resource
   |query string=namespace=Resource
   |namespace=Resource
   |autocomplete on namespace=Resource
   |autocomplete on namespace=Resource
}}}
  |placeholder=Enter a unique name for the resource (will be used as a page name in Resource namespace).
}}
 
:{{led|green}} [[Form:Resource/Guide|+ Guide]]
:{{led|green}} [[Form:Resource/Interview|+ Interview]]
:{{led|green}} [[Form:Resource/Video|+ Video]]
:{{led|green}} [[Form:Resource/Screenshot|+ Screenshot]]
:{{led|green}} [[Form:Resource/Website|+ Website]]
 
{{DISPLAYTITLE: {{PAGENAME}}}}
</noinclude>
</noinclude>

Latest revision as of 14:40, 12 July 2026