Form:Resource: Difference between revisions
From PC Gaming Shelter
No edit summary |
No edit summary |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
{{form row | {{form row | ||
|{{{field | |{{{field | ||
| | |Image | ||
|input type= | |input type=text | ||
| | |uploadable | ||
|class=form-control | |class=form-control | ||
}}} | }}} | ||
|label= | |label=Cover Image (''leave empty to inherit the image from the related Game''): | ||
|property= | |property=Image | ||
}} | }} | ||
{{form row | {{form row | ||
| Line 26: | Line 25: | ||
|Related game | |Related game | ||
|input type=tokens | |input type=tokens | ||
|values from | |values from category=Games | ||
|max values=1 | |||
|mandatory | |||
|class=form-control | |class=form-control | ||
}}} | }}} | ||
| Line 35: | Line 36: | ||
|{{{field | |{{{field | ||
|Has resource type | |Has resource type | ||
|input type= | |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 | |class=form-control | ||
}}} | }}} | ||
| Line 61: | Line 64: | ||
|{{{field | |{{{field | ||
|Has date | |Has date | ||
|input type= | |input type=date | ||
|class=form-control | |class=form-control | ||
}}} | }}} | ||
| Line 87: | Line 90: | ||
|property=Has language | |property=Has language | ||
}} | }} | ||
{{form row | {{form row | ||
|{{{field | |{{{field | ||
|Has | |Has URL | ||
|input type= | |input type=regexp | ||
| | |regexp=/^https?:\/\/[^\s/$.?#].[^\s]*$/ | ||
|message=Enter a valid URL starting with http:// or https:// | |||
|class=form-control | |||
}}} | }}} | ||
|label= | |label=URL: | ||
|property=Has | |property=Has URL | ||
}} | }} | ||
<div id="video"> | |||
{{{field | {{{field | ||
|Has subtitles | |Has subtitles | ||
| Line 124: | Line 129: | ||
|placeholder=Enter a unique name for the resource (will be used as a page name in Resource namespace). | |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}}}} | {{DISPLAYTITLE: {{PAGENAME}}}} | ||
</noinclude> | </noinclude> | ||
