Form:Item: Difference between revisions
Create item entry form (via create-page on MediaWiki MCP Server) |
Remove help tooltip from Type field (via update-page on MediaWiki MCP Server) Tag: Manual revert |
||
| (18 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div> | <div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div> | ||
{{{for template|ItemEntry}}} | {{{for template|ItemEntry|multiple|label=Variant}}} | ||
<div class="item-form-container" style="display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start;"> | |||
<div class="item-form-fields"> | |||
{| class="wikitable" style="width:100%" | {| class="wikitable" style="width:100%" | ||
! colspan="4" | Basic Info | ! colspan="4" | Basic Info | ||
|- | |||
! Sprite | |||
| colspan="3" | {{{field|sprite|placeholder=Leave blank to use item name|autocomplete on cargo=Items,sprite}}} | |||
|- | |- | ||
! Name | ! Name | ||
| {{{field|name|default={{PAGENAME}}}}} | | {{{field|name|default={{PAGENAME}}}}} | ||
! | ! Rarity | ||
| {{{field| | | {{{field|rarity|input type=dropdown|values={{#invoke:ItemConfig|getRarityList}}|default=common}}} | ||
|- | |- | ||
! Type | ! Type | ||
| {{{field|type|input type=dropdown|values= | | {{{field|type|input type=dropdown|values={{#invoke:ItemConfig|getTypeList}}}}} | ||
! Slot | ! Slot | ||
| {{{field|slot|input type=dropdown|values= | | {{{field|slot|input type=dropdown|values={{#invoke:ItemConfig|getSlotList}}}}} | ||
|- | |- | ||
! Weight | ! Weight | ||
| {{{field|weight|input type=text|size=10}}} | | {{{field|weight|input type=text|size=10}}} | ||
| colspan="2" | | |||
|- | |- | ||
! colspan="4" | Combat Stats | ! colspan="4" | Combat Stats | ||
| Line 67: | Line 71: | ||
| colspan="2" | {{{field|description|input type=textarea|rows=3|cols=50}}} | | colspan="2" | {{{field|description|input type=textarea|rows=3|cols=50}}} | ||
|} | |} | ||
</div> | |||
<div class="item-form-preview" style="position: sticky; top: 20px;"> | |||
<strong>Preview</strong> | |||
<div class="infobox-preview" style="margin-top: 10px;"> | |||
<em style="color: #888;">Fill in fields to see preview...</em> | |||
</div> | |||
</div> | |||
</div> | |||
{{{end template}}} | {{{end template}}} | ||
{{{for template|ItemPage}}} | |||
{{{end template}}} | |||
{{{ | |||
{{{standard input|summary}}} | {{{standard input|summary}}} | ||
Latest revision as of 21:04, 31 January 2026
This form is used to create and edit item pages.