Jump to content

Form:NPC: Difference between revisions

From Apogea Wiki
Dane (talk | contribs)
Use format parameter to conditionally output Shop header (via update-page on MediaWiki MCP Server)
Dane (talk | contribs)
Add description field to NPCEntry (via update-page on MediaWiki MCP Server)
 
(39 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}}
<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>
Line 24: 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|format=\n== Shop ==\n,,,\n,\n{{Infobox Shop}}\n}}}
((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 49: Line 52:
</div>
</div>
{{{end template}}}
{{{end template}}}
 
{{{if exists|ShopTableRow|((ShopTableFooter))}}}
{{{for template|DefaultForm|1=NPC}}}
{{{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.