Template:LeoSandbox: Difference between revisions

From Elwiki
No edit summary
No edit summary
 
(75 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{colset|}}}
<includeonly>__NOTOC__{{#css:MediaWiki:Instance-Page.css}}{{#if:{{{DunButton|}}}|
| {{#vardefine:colset|{{{colset|}}}}}
<div class="dungeon-button">[[File:{{{DunButton|}}}{{!}}{{#switch: {{{1|}}}|Old=100px|#default=120px}}]]</div>
| {{#vardefine:colset|1}}
|}}{{#if:{{{SmallPic|}}}|
}}{{#switch:{{{color|}}}
[[File:{{{SmallPic|}}}{{!}}{{#switch: {{{1|}}}|Old=202px|#default=265px}}{{!}}right]]
| ={{#vardefine:color| background-color: lightblue;}}
|}}
| Rainbow={{#vardefine:rainbow|rainbow}}
=<span class="instance-h1">{{{DunName|}}}</span>=
| #default ={{#vardefine:color| background-color: {{{color}}};}}  
{{#if:{{{Quotation|}}}|
}}<table style="{{{style|}}}" class="infobox {{{class|}}}">
{{quotation|{{{Quotation|}}}}}
<tr style="{{#var:color|}}" class="textfloat {{#var:rainbow|}}">
|}}
<th class="title" colspan="{{#expr:{{#var:colset|1}}+1}}">{{{title|}}}</th>
<div class="instance-page">
  </tr>
<div class="clearfix"></div>
  {{#if:{{{image|}}}
<div class="section-side-column">
  |<tr>
<div class="section-side-column-image instance-image">
    <td class="image" colspan="{{#expr:{{#var:colset|1}}+1}}">{{{image}}}</td>
{{#if:{{{LvFitHell|}}}
  </tr>
|{{Tabber
  }}
|$divclass=fancy
  {{#forargs:label
|Normal Mode=[[File:{{{BigPic|}}}{{!}}600px]]
| key
|Hell Mode=[[File:{{{BigPic2|}}}{{!}}600px]]}}
| val
|
|
{{#if:{{{BigPic2|}}}
{{#if:{{{set{{#var:key|}}|}}}
|
| {{#vardefine:div|{{#expr:{{#var:colset|1}}/{{{set{{#var:key|1}}|}}}}}}}
{{Tabber
<tr class="entry">
|$divclass=fancy
<th>{{#var:val|}}</th>
|Bethma=[[File:{{{BigPic|}}}{{!}}600px]]
{{#forargs:data{{#var:key|}}/
|Altera=[[File:{{{BigPic2|}}}{{!}}600px]]
| subkey
}}
| subval
|
| <td colspan="{{#var:div|}}">{{#var:subval|}}</td>
[[File:{{{BigPic|}}}|600px]]
}}
}}
</tr>
}}
    |
</div>
    {{#if:{{{data{{#var:key|}}|}}}
{{#if:{{{Description|}}}|
    |<tr class="entry">
{{Segment
    <th>{{#var:val|}}</th>
| SectionSty=text-align: center; {{#if:{{{BigPic2|}}}|margin-top: 36px;}}
<td colspan="{{#var:colset|1}}">{{{data{{#var:key|}}|}}}</td>
| Color0={{{Color|}}}
</tr>
| Title0=Description
}}
| Content0={{{Description|}}}
}}
}}
}}
|{{#vardefine: req_style|margin-top: 36px;}}
</table></includeonly><noinclude>{{DISPLAYTITLE:Infobox Prototype}}
}}
== Description ==
{{Segment
This is infobox proto. All infoboxes should use this proto.
| Color0={{{Color|}}}
== How to Use ==
| SectionSty={{#if:{{{BigPic2|}}}|{{#var:req_style}} }}
<u>'''Valid Parameters'''</u>:
| SectionCls=fancy-text
:* '''Content Parameters''': <code>title</code>, <code>image</code>, <code>label???</code>, <code>data???</code>
| Title0=Recommended Level
:* '''Layout Parameters''': <code>colset</code>, <code>set???</code>
| Content0={{{LvNeed|}}}
:* '''Styling Parameters''': <code>style</code>, <code>class</code>, <code>color</code>
}}{{#vardefine: CP|#ee6f1c}}
<u>'''Parameter Instructions'''</u>
{{Segment
:* <code>title</code>: (Optional) The heading. Omitting will result in a thin line.
| Color0={{{Color|}}}
:* <code>image</code>: (Optional) The image on the top.
| SectionCls=fancy-text
:* <code>label???</code>: Heading of entry. '''Required''' for entry.
| Title0={{#if:{{{LvFit|}}}|Required Combat Power|Appropriate Item Level}}
:* <code>data???</code>: Data of entry. '''Required''' for entry.
| Content0=
:* <code>set???</code>: (Optional) Number of entry columns (label does not count).
{{#if:{{{LvFitHell|}}}
:* <code>colset</code>: (Optional) '''Required''' only if having <code>set???</code>, the [[Template:PRODUCT|product]] of <code>set</code> numbers in the whole infobox.
|
:* <code>style</code>: (Optional) Style of in infobox, following CSS syntax.
{{Tabber
:* <code>class</code>: (Optional) Class of infobox, following HTML <code>class</code> attribute syntax.
|$divclass=tabber-vertical fancy
:* <code>color</code>: (Optional) Color of the heading. Default uses wikiskin default.
|Normal Mode={{color|{{#var:CP}}|{{formatnum:{{{LvFit|}}} }} }}
<u>'''Other Notes'''</u>
|Hell Mode={{color|{{#var:CP}}|{{formatnum:{{{LvFitHell|}}} }} }}
:* Both <code>label???</code> and <code>data???</code> is required to add an entry.
}}
:** <code>set???</code> is required to add an multiple-column entry.
|
:** If you are adding a multiple-column entry, the <code>data</code> should be written as <code>data???/...</code>.
{{#if:{{{LvFitStory|}}}
:** In this case, if <code>data</code> is omitted, a entry will still be added.
|
:* <code>colset</code> can also be least common multiple (LCM), just make sure the <code>set???</code> is fractional to <code>colset</code>
{{Tabber
</noinclude>
|$divclass=tabber-vertical fancy
|Story Mode={{color|{{#var:CP}}|{{formatnum:{{{LvFitStory|}}} }} }}
|Normal Mode={{color|{{#var:CP}}|{{formatnum:{{{LvFit|}}} }} }}
}}
|
{{color|{{#var:CP}}|{{formatnum:{{{LvFit|}}}}} }}
}}
}}
}}
</div>{{#if:{{{XEntryReq|}}}|
{{Segment
| Color0={{{Color|}}}
| Title0=Entry Requirements
| Content0={{{XEntryReq|}}}
}}|}}{{#if:{{{Detail|}}}|
{{Segment
| Title0=Details
| Color0={{{Color|}}}
| Content0={{{Detail|}}}
}}|}}
{{tabber
|$divclass=fancy
|Phase 1={{#if:{{{Phase1|}}}|
{{Segment
| Color0={{{Color|}}}
| Title0=<big>Phase 1 - {{{Phase1Name|}}}</big>
| Content0={{{Phase1|}}}
}}|}}
|Phase 2={{#if:{{{Phase2|}}}|
{{Segment
| Color0={{{Color|}}}
| Title0=<big>Phase 2 - {{{Phase2Name|}}}</big>
| Content0={{{Phase2|}}}
}}|}}
|Phase 3={{#if:{{{Phase3|}}}|
{{Segment
| Color0={{{Color|}}}
| Title0=<big>Phase 3 - {{{Phase3Name|}}}</big>
| Content0={{{Phase3|}}}
}}|}}
}}
 
{{#if:{{{Dialogue|}}}|
{{Segment
| Color0={{{Color|}}}
| Title0=Dialogue
| Content0={{{Dialogue|}}}
}}|}}
{{#if:{{{Reward|}}}|
{{Segment
| Color0={{{Color|}}}
| Title0=Reward
| Content0={{{Reward|}}}
}}|}}
{{Segment
| Color={{{Color|}}}
| SectionCls={{#if:{{{BDrop|}}}|split uneven-split}}
| hStyle1={{#if:{{{BDrop|}}}{{{SBDrop|}}}||border-left: none;}}
| Title0={{#if:{{{BDrop|}}}|[[Boss Drops]]|}}{{#if:{{{SBDrop|}}}|Boss Drops|}}
| Title1=[[Soundtrack|BGM]]
| Content0=<dfn>{{</dfn>
{{{BDrop|}}}{{{SBDrop|}}}
<dfn>}}</dfn>
| Style1=text-align: center;
| Content1=<dfn>{{</dfn>
{{#if:{{{SBGM|}}}|{{{SBGM|}}}|}}
{{#if:{{{DBGM|}}}|
=== Boss ===
{{{BBGM|}}}|}}
<dfn>}}</dfn>
}}{{#if:{{{Gallery|}}}|
{{Segment
| Color0={{{Color|}}}
| Title0=Gallery
| Content0={{{Gallery|}}}
}}|}}{{#if:{{{Video|}}}|
{{Segment
| SectionSty=text-align: center;
| Color0={{{Color|}}}
| Title0=Videos
| Content0=<dfn>{{</dfn>
{{{Video|}}}
<dfn>}}</dfn>
}}|}}{{#if:{{{Trivia|}}}|
{{Segment
| Color0={{{Color|}}}
| Title0=Trivia
| Content0=
{{{Trivia|}}}
}}|}}{{#if:{{{Updates|}}}|
{{Segment
| Color0={{{Color|}}}
| SectionCls=updates-section-table
| Title0=Updates
| Content0=<div class="updates-table">{{{Updates|}}}</div>
}}|}}{{#if:{{{AltLang|}}}|
{{Segment
| Color0={{{Color|}}}
| Title0=Alternative Names
| Content0=<dfn>{{</dfn>
{{{AltLang|}}}
<dfn>}}</dfn>
}}|}}
</div>
<br>
{{Dungeons|name=a|Orient={{{Orient|}}}}}{{Hunting Fields|name=b|Orient={{{Orient|}}}}}
</includeonly>

Latest revision as of 13:32, 5 May 2024