User:RustyVanBurace/Sandbox5: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 10: Line 10:
In many content pages, the Gameplay section covers any gameplay-related information pertinent to the subject. This can include stat tables for playable characters or Demons, encounter lists, item lists, shops or other local services, etc. The Gameplay section is usually one of the first sections on most pages, allowing users to readily find gameplay information without having to scroll too far down or through potentially spoilery sections below.
In many content pages, the Gameplay section covers any gameplay-related information pertinent to the subject. This can include stat tables for playable characters or Demons, encounter lists, item lists, shops or other local services, etc. The Gameplay section is usually one of the first sections on most pages, allowing users to readily find gameplay information without having to scroll too far down or through potentially spoilery sections below.


Each game covered in this section should be given its own Level 3 subsection <code><nowiki>===Level 3===</nowiki></code>. Remasters or enhanced ports can have their own subsection if there is substantial difference from the original's gameplay information to warrant its own coverage, such as the addition of new mechanics. Otherwise, a [[#Tabs|tab]] can suffice for minor version differences, such as differing stats for stat tables or other lists.
Each game covered in this section should be given its own Level 3 subsection <code><nowiki>===Level 3===</nowiki></code>. Games should be listed in the order defined in the [[Guidelines:Media Order|media order guidelines]], from series order, sub-series order, and finally by game order. Remasters or enhanced ports can have their own subsection if there is substantial difference from the original's gameplay information to warrant its own coverage, such as the addition of new mechanics. Otherwise, a [[#Tabs|tab]] can suffice for minor version differences, such as differing stats for stat tables or other lists.


===Gameplay Pages===
===Gameplay Pages===
Line 266: Line 266:
*For different stat tables of the same subject, label after the relevant role. E.g. <code>Partner</code> (for main character party members), <code>Enemy</code>, <code>Ally</code> (for allied Demons), <code>Boss</code>, <code>Persona</code>, <code>Shadow</code>.
*For different stat tables of the same subject, label after the relevant role. E.g. <code>Partner</code> (for main character party members), <code>Enemy</code>, <code>Ally</code> (for allied Demons), <code>Boss</code>, <code>Persona</code>, <code>Shadow</code>.
*For specific versions of a subject, such as Demon stats from a specific game version or a boss with multiple forms or phases, clarify this in parentheses. E.g. <code>Enemy (PSP)</code>, <code>Boss (Phase 1)</code>.
*For specific versions of a subject, such as Demon stats from a specific game version or a boss with multiple forms or phases, clarify this in parentheses. E.g. <code>Enemy (PSP)</code>, <code>Boss (Phase 1)</code>.
===Transcluding Sections===
Transclusion is a method of including content from one page onto another. This is generally used with template functionality. However, a similar method can also be used to transclude a page's contents or even a filled template onto another page.
This involves using <code><nowiki><onlyinclude></nowiki></code> tags and the <code><nowiki>#ifeq</nowiki></code> parser function with the following code:
<pre>
<onlyinclude>{{#ifeq:{{{transcludesection|Section Name}}}|Section Name|
Contents here.
}}</onlyinclude>
</pre>
The contents in-between will then become a makeshift template that can then be transcluded onto another page with the following:
<pre>
{{:Name of original page|transcludesection=Section Name}}
</pre>
The same contents on the original page will now be transcluded onto the other one. If the contents on the original page are edited, those changes will be reflected on the page(s) it was transcluded on much like an actual template.
Transcluding page contents can be used to display repeating gameplay information or data across multiple pages without having to manually re-enter the same information. This is especially used to keep filled data consistent across the wiki, such as the same list on  multiple pages or a boss's stat table transcluded onto a location page.
For instance, to transclude a list template from one page onto another:
<pre>
<!-- Do not remove onlyinclude or transclude tags --><onlyinclude>{{#ifeq:{{{transcludesection|Shop List}}}|Shop List|
{{Shop/Header|Store}}
{{Shop|Item 1|400}}
{{Shop|Item 2|1000}}
|}
}}</onlyinclude>
</pre>
<pre>
{{:Name of original page|transcludesection=Shop List}}
</pre>
It is advised to include the editor comment to inform other editors not to remove the transclude code, as doing so will result in the transclusion breaking on other pages.
To transclude a boss stat table (including tabs) onto another page:
<pre>
<!-- Do not remove onlyinclude or transclude tags --><onlyinclude>{{#ifeq:{{{transcludesection|MT1Stats}}}|MT1Stats|
<tabber>
FC=
{{MT1 Demon Stats
|img=Minotaur
|name=Minotaur
|st=9
|in=11
|at=10
|ag=12
|de=13
|loc=
|race=Tyrant
|align=Evil
|hp=700
|moon=
|resist=09
|magic={{Skill|MT1|Psycho}}
|extra={{Skill|MT1|Roar}}
{{Skill|MT1|Palsy G}}
}}
|-|
KMT=
{{KMT Demon Stats
|img=Minotaur
|name=Minotaur
|level=27
|vi=12
|in=10
|st=9
|ag=10
|lu=9
|loc=
|race=Tyrant
|align=Evil
|hp=166
|mp=37
|moon=
|resist=01
|magic={{Skill|KMT|Zanma}}
|extra={{Skill|KMT|Roar 2}}
{{Skill|KMT|Stun Bite 1}}
}}
</tabber>}}</onlyinclude>
</pre>
<pre>
{{:Gameplay:Minotaur|transcludesection=MT1Stats}}
</pre>


==Specific Gameplay Coverage==
==Specific Gameplay Coverage==

Navigation menu