Jump to content

Form:NPC: Difference between revisions

From Apogea Wiki
Dane (talk | contribs)
Put DefaultForm first, fix ShopEntry format (via update-page on MediaWiki MCP Server)
Dane (talk | contribs)
Add description field to NPCEntry (via update-page on MediaWiki MCP Server)
 
(37 intermediate revisions by 2 users not shown)
Line 2: Line 2:
This form is used to create and edit NPC pages.
This form is used to create and edit NPC pages.
[[Category:Forms]]
[[Category:Forms]]
</noinclude><includeonly>
</noinclude><includeonly>{{#default_form:NPC}}
{{{info|default form=NPC}}}
<div id="apogea-npc-form"></div>
<div id="apogea-npc-form"></div>
<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|DefaultForm|1=NPC}}}
{{{end template}}}


{{{for template|NPCEntry}}}
{{{for template|NPCEntry}}}
Line 28: Line 24:
! Trainer
! Trainer
| colspan="3" | {{{field|trainer|input type=dropdown|values=Knight,Rogue,Mage}}}
| colspan="3" | {{{field|trainer|input type=dropdown|values=Knight,Rogue,Mage}}}
|-
! Description
| colspan="3" | {{{field|description|input type=textarea|rows=6|autogrow}}}
|}
|}
{{{end template}}}
{{{end template}}}
{{{for template|Infobox NPC}}}
{{{for template|Infobox NPC}}}
{{{end template}}}
{{{end template}}}
 
{{{if exists|ShopTableRow|== Shop ==
{{{for template|ShopEntry|multiple|label=Shop Item}}}
((ShopTableHeader))}}}
{{{for template|ShopTableRow|multiple|format=inline|label=Shop Item}}}
<div class="shop-entry-container" style="display: flex; gap: 15px; align-items: flex-start; margin-bottom: 10px;">
<div class="shop-entry-container" style="display: flex; gap: 15px; align-items: flex-start; margin-bottom: 10px;">
<div class="shop-entry-fields">
<div class="shop-entry-fields">
Line 53: Line 52:
</div>
</div>
{{{end template}}}
{{{end template}}}
 
{{{if exists|ShopTableRow|((ShopTableFooter))}}}
{{{for template|Infobox Shop}}}
{{{end template}}}


{{{standard input|summary}}}
{{{standard input|summary}}}

Latest revision as of 13:44, 1 February 2026

This form is used to create and edit NPC pages.