Template:Seller: Difference between revisions

From Tales of Yore
Jump to navigation Jump to search
No edit summary
No edit summary
Line 32: Line 32:


== For Sub Category Shops ==
== For Sub Category Shops ==
Once you have finished creating the NPC table means this table is ready to be transcluded to any other [[Shops]] pages, you just need to add the heading <div style="border: 1px solid #000; padding: 4px; background-color: #fCfcfc; display: inline-block;"><nowiki>== NPCs ==</nowiki></div> bellow this you add the NPC file image <div style="border: 1px solid #000; padding: 4px; background-color: #fCfcfc; display: inline-block;"><nowiki>[[File:NPC_NAME.png|frameless]]</nowiki></div> following some text and bellow it you can transclude the table as <div style="border: 1px solid #000; padding: 4px; background-color: #fCfcfc; display: inline-block;"><nowiki>{{PAGENAME}}</nowiki></div> which is the name of the NPC page e.g. <div style="border: 1px solid #000; padding: 4px; background-color: #fCfcfc; display: inline-block;"><nowiki>{{Onan}}</nowiki></div>
Once you have finished creating the NPC table means this table is ready to be transcluded to any other [[Shops]] pages, you just need to add the heading <div style="border: 1px solid #000; padding: 4px; background-color: #fCfcfc; display: inline-block;"><nowiki>== NPCs ==</nowiki></div> bellow this you add the NPC file image <div style="border: 1px solid #000; padding: 4px; background-color: #fCfcfc; display: inline-block;"><nowiki>[[File:NPC_NAME.png|frameless]]</nowiki></div> following some text and bellow it you can transclude the table as <div style="border: 1px solid #000; padding: 4px; background-color: #fCfcfc; display: inline-block;"><nowiki>{{:PAGENAME}}</nowiki></div> which is the name of the NPC page e.g. <div style="border: 1px solid #000; padding: 4px; background-color: #fCfcfc; display: inline-block;"><nowiki>{{:Onan}}</nowiki></div>


[[Category:Templates]]
[[Category:Templates]]

Revision as of 03:58, 18 October 2023

Read this first

This page is not meant to be transcluded, just copy and paste and change the uppercase names ​​as needed.

For Category NPCs

Just copy this table bellow:

<onlyinclude>

{| class="sortable fandom-table"
! Item
! Cost
! Unlocked by
|-
| [[File:FILE_NAME.png|24x24px]] [[ITEM_NAME]]
| align="center"| PRICE [[File:Coin.png|frameless|right]]
| align="center"| [[QUEST_NAME]] or None
|}

</onlyinclude>

To create new rows just copy and paste the table from |- until before |} like this:

|-

| [[File:FILE_NAME.png|24x24px]] [[ITEM_NAME]]
| align="center"| PRICE [[File:Coin.png|frameless|right]]
| align="center"| [[QUEST_NAME]] or None
|-
| [[File:FILE_NAME.png|24x24px]] [[ITEM_NAME]]
| align="center"| PRICE [[File:Coin.png|frameless|right]]
| align="center"| [[QUEST_NAME]] or None
|-
| [[File:FILE_NAME.png|24x24px]] [[ITEM_NAME]]
| align="center"| PRICE [[File:Coin.png|frameless|right]]

| align="center"| [[QUEST_NAME]] or None

For Sub Category Shops

Once you have finished creating the NPC table means this table is ready to be transcluded to any other Shops pages, you just need to add the heading

== NPCs ==

bellow this you add the NPC file image

[[File:NPC_NAME.png|frameless]]

following some text and bellow it you can transclude the table as

{{:PAGENAME}}

which is the name of the NPC page e.g.

{{:Onan}}