Form:NPC: Difference between revisions
Wrap NPCEntry and ShopEntry in Data template to prevent whitespace issues (via update-page on MediaWiki MCP Server) |
Use embed in field to wrap templates in Data (via update-page on MediaWiki MCP Server) |
||
| Line 6: | Line 6: | ||
<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|Data | {{{for template|Data}}} | ||
{{{for template|NPCEntry| | {{{end template}}} | ||
{{{for template|NPCEntry|embed in field=Data[1]}}} | |||
{| class="wikitable" style="width: 100%; max-width: 600px;" | {| class="wikitable" style="width: 100%; max-width: 600px;" | ||
! colspan="4" | NPC Info | ! colspan="4" | NPC Info | ||
| Line 30: | Line 32: | ||
'''Shop Items''' | '''Shop Items''' | ||
{{{for template|ShopEntry|multiple|label=Shop Item | {{{for template|ShopEntry|multiple|embed in field=Data[1]|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 48: | Line 50: | ||
</div> | </div> | ||
</div> | </div> | ||
{{{end template}}} | {{{end template}}} | ||
{{{for template|NPCPage | {{{for template|NPCPage}}} | ||
{{{end template}}} | {{{end template}}} | ||
Revision as of 22:45, 31 January 2026
This form is used to create and edit NPC pages.