Diferencia entre revisiones de «Plantilla:Infobox NPC»

De Armada Azteca
(Página creada con «<noinclude>{{Protected|this template is widely used and therefore vulnerable to vandalism.}}</noinclude><noinclude>For some documentation, see TibiaWiki:NPC Properties....»)
 
Sin resumen de edición
 
Línea 1: Línea 1:
<noinclude>{{Protected|this template is widely used and therefore vulnerable to vandalism.}}</noinclude><noinclude>For some documentation, see [[TibiaWiki:NPC Properties]].</noinclude><!--
<infobox>
-->{{#if:{{{GetValue|}}}|{{{{{{GetValue|}}}}}}|{{#ifeq:{{{List|}}}||<!--
<data source="GetValue"><label>GetValue</label></data>
-->{{#ifeq:{{Next Update}}|{{{implemented|undated}}}|{{Futureupdate}}}}<!--
<data source="List"><label>List</label></data>
--><div id="twbox">
<data source="implemented"><label>implemented</label><default>undated</default></data>
<h3 class="semantic-header">Properties</h3>
<data source="city"><label>city</label></data>
<div id="tabular-data">
<data source="street"><label>street</label></data>
  <table class="infobox">
<data source="posx"><label>posx</label></data>
  <tr class="semantic-header">
<data source="posy"><label>posy</label></data>
    <th>Property</th>
<data source="posz"><label>posz</label></data>
    <th>Value</th>
<data source="gender"><label>gender</label></data>
  </tr>
<data source="race"><label>race</label></data>
  <tr class="table-section">
<data source="job"><label>job</label></data>
    <th colspan="2">Geographical Properties</th>
<data source="job2"><label>job2</label></data>
  </tr>
<data source="job3"><label>job3</label></data>
  <tr>
<data source="job4"><label>job4</label></data>
    <td class="property">City</td>
<data source="job5"><label>job5</label></data>
    <td class="value">{{#if:{{{city|}}}|{{#switch:{{lc:{{{city|}}}}}|varies|varies.|various=Various|[[{{{city}}}]]}}|Unknown.}}</td>
<data source="job6"><label>job6</label></data>
  </tr>
<data source="status"><label>status</label><default>active</default></data>
  {{#if:{{{street|}}}|<tr>
<title source="name"><default>{{PAGENAME}}</default></title>
    <td class="property">Street</td>
<data source="actualname"><label>actualname</label></data>
    <td class="value">[[{{{street}}}]]</td>
<data source="sounds"><label>sounds</label></data>
  </tr>}}
<data source="location"><label>location</label></data>
{{#ifexpr:{{#if:{{{posx|}}}|1|0}}+{{#if:{{{posy|}}}|1|0}}+{{#if:{{{posz|}}}|1|0}}=3|
<data source="notes"><label>notes</label></data>
  <tr>
<data source="buys"><label>buys</label><default>--</default></data>
    <td class="property">Position</td>
<data source="sells"><label>sells</label><default>--</default></data>
    <td class="value">[http://tibia.wikia.com/wiki/Mapper?coords={{{posx}}}-{{{posy}}}-{{{posz}}}-4-1-1 {{{posx}}}, {{{posy}}}, {{{posz}}}]</td>
<data source="shownewhistorysection"><label>shownewhistorysection</label><default>no</default></data>
  </tr>
<data source="city2"><label>city2</label></data>
<data source="buysell"><label>buysell</label><default>no</default></data>
</infobox>
<noinclude>
== Usage & preview ==
Type in this:
 
<pre>
{{Infobox NPC/Draft
|GetValue=
|List=
|implemented=
|city=
|street=
|posx=
|posy=
|posz=
|gender=
|race=
|job=
|job2=
|job3=
|job4=
|job5=
|job6=
|status=
|name=
|actualname=
|sounds=
|location=
|notes=
|buys=
|sells=
|shownewhistorysection=
|city2=
|buysell=
}}
}}
  <tr class="table-section">
 
    <th colspan="2">Personal Properties</th>
</pre>
  </tr>
 
  <tr>
to see this:
    <td class="property">Gender</td>
 
    <td class="value">{{#switch:{{lc:{{{gender|}}}}}|male|male.=Male|female|female.=Female|none|none.=None.|Unknown.}}</td>
{{Infobox NPC/Draft
  </tr>
|GetValue=This is a test
  <tr>
|List=This is a test
    <td class="property">Race</td>
|implemented=This is a test
    <td class="value">{{#if:{{{race|}}}|[[{{{race}}}]]|Unknown.}}</td>
|city=This is a test
  </tr>
|street=This is a test
  <tr class="table-section">
|posx=This is a test
    <th colspan="2">Occupational Properties</th>
|posy=This is a test
  </tr>
|posz=This is a test
  <tr>
|gender=This is a test
    <td class="property">Job</td>
|race=This is a test
    <td class="value">{{#if:{{{job|}}}{{{job2|}}}{{{job3|}}}{{{job4|}}}{{{job5|}}}{{{job6|}}}|{{Inline List|sep=<br />|{{#if:{{{job|}}}|[[{{{job}}} NPCs|{{{job}}}]]}}|{{#if:{{{job2|}}}|[[{{{job2}}} NPCs|{{{job2}}}]]}}|{{#if:{{{job3|}}}|[[{{{job3}}} NPCs|{{{job3}}}]]}}|{{#if:{{{job4|}}}|[[{{{job4}}} NPCs|{{{job4}}}]]}}|{{#if:{{{job5|}}}|[[{{{job5}}} NPCs|{{{job5}}}]]}}|{{#if:{{{job6|}}}|[[{{{job6}}} NPCs|{{{job6}}}]]}}}}|Unknown.}}</td>
|job=This is a test
  </tr>
|job2=This is a test
  <tr class="table-section">
|job3=This is a test
    <th colspan="2">Other Properties</th>
|job4=This is a test
  </tr>
|job5=This is a test
  <tr>
|job6=This is a test
    <td class="property">Version</td>
|status=This is a test
    <td class="value" title="{{#if:{{{implemented|}}}|Implemented in version {{{implemented}}}.|Implementation in an unknown version.}}">{{#if:{{{implemented|}}}|{{Update|{{{implemented}}}}}<br /><span class="implementation-date">{{#if:{{Version Date|{{{implemented|}}}}}|{{Version Date|{{{implemented|}}}}}}}</span>|Unknown.}}</td>
|name=This is a test
  </tr>
|actualname=This is a test
  <tr>
|sounds=This is a test
    <td class="property">Status</td>
|location=This is a test
    <td class="value">{{#switch:{{lc:{{{status|active}}}}}|deprecated|deprecated.=Deprecated.|ts-only|ts-only.=[[Test Server]]-exclusive.|Active}}</td>
|notes=This is a test
  </tr>
|buys=This is a test
  <tr>
|sells=This is a test
  <th colspan="2" class="explained">[[TibiaWiki:NPC Properties|Help]]</th>
|shownewhistorysection=This is a test
  </tr>
|city2=This is a test
  </table>
|buysell=This is a test
</div>
<div id="twbox-intro">
  <div id="twbox-profile">
  <div id="twbox-image">[[File:{{{name}}}.gif]]</div>
  <div id="twbox-look">{{Infobox NPC/Look|actualname={{{actualname|}}}|name={{{name|}}}}}</div>
  <div id="twbox-bubble" class="mobile-hide">{{#switch:{{#explode:{{Get NPC Bubble|{{{name|}}}}}|,|0}}
|T=[[File:NPC Bubble D.gif]]
|D=[[File:NPC Bubble D.gif]]
|Q=[[File:NPC Bubble D.gif]]
|QT=[[File:NPC Bubble D.gif]]
}}<!--
-->{{#switch:{{#explode:{{Get NPC Bubble|{{{name|}}}}}|,|1}}
|T=[[File:NPC Bubble D.gif]]
|D=[[File:NPC Bubble D.gif]]
|Q=[[File:NPC Bubble D.gif]]
|QT=[[File:NPC Bubble D.gif]]
}}<!--
-->{{#switch:{{#explode:{{Get NPC Bubble|{{{name|}}}}}|,|2}}
|T=[[File:NPC Bubble D.gif]]
|D=[[File:NPC Bubble D.gif]]
|Q=[[File:NPC Bubble D.gif]]
|QT=[[File:NPC Bubble D.gif]]
}}<!--
-->{{#switch:{{#explode:{{Get NPC Bubble|{{{name|}}}}}|,|3}}
|T=[[File:NPC Bubble D.gif]]
|D=[[File:NPC Bubble D.gif]]
|Q=[[File:NPC Bubble D.gif]]
|QT=[[File:NPC Bubble D.gif]]
}}<!--
-->{{#switch:{{#explode:{{Get NPC Bubble|{{{name|}}}}}|,|4}}
|T=[[File:NPC Bubble D.gif]]
|D=[[File:NPC Bubble D.gif]]
|Q=[[File:NPC Bubble D.gif]]
|QT=[[File:NPC Bubble D.gif]]
}}<!--
-->{{#switch:{{#explode:{{Get NPC Bubble|{{{name|}}}}}|,|5}}
|T=[[File:NPC Bubble D.gif]]
|D=[[File:NPC Bubble D.gif]]
|Q=[[File:NPC Bubble D.gif]]
|QT=[[File:NPC Bubble D.gif]]
}}
}}
  </div>
  <div id="twbox-sounds" class="">{{#if:{{{sounds|}}}|{{Message|type=sound|{{{sounds}}}}}}}</div>
  </div>
</div>
{{Clear|left}}
<div id="npc-location">
  <h3>Location</h3>
{{#ifexpr:{{#if:{{{posx|}}}|1|0}}+{{#if:{{{posy|}}}|1|0}}+{{#if:{{{posz|}}}|1|0}}=3|{{Minimap|x={{{posx}}}|y={{{posy}}}|z={{{posz}}}|height=0.3|width=0.3|zoom=2}}}}
{{#if:{{{location|}}}|{{{location}}}|<p class="no-results">This NPC's location is unknown.</p>}}
{{Clear|left}}
</div>
{{Clear|left}}
<div id="npc-notes">
  <h3>Notes</h3>
{{{notes}}}
</div>
{{Clear}}
{{#if:{{{buys|}}}{{{sells|}}}|
<div id="npc-trades">
  <h3 class="semantic-header">Trade Details</h3>
<!-- BUYS -->
  <div id="npc-trades-buys" class="trades">
  <h4>Buys</h4>
  {{#ifeq:{{{buys|--}}}|--|<p class="no-results">This NPC does not buy any items.</p>|{{{buys}}}}}
  </div>
<!-- SELLS -->
  <div id="npc-trades-sells" class="trades">
  <h4>Sells</h4>
  {{#ifeq:{{{sells|--}}}|--|<p class="no-results">This NPC does not sell any items.</p>|{{{sells}}}}}
  </div>
  {{Clear}}
</div>
}}
<div id="npc-history" class="history-section">
  <h3>History</h3>
{{#switch:{{lc:{{{shownewhistorysection|no}}}}}|yes|yes.={{:{{{name}}}/History}}|{{#ifexist:{{{name|}}}/History|See [[{{{name|}}}/History]] for historical information relevant to this NPC.|[{{FULLURL:{{{name|}}}/History|action=edit}} Help us document the history of this NPC.]}}}}
</div>
{{Clear}}
<!-- TRANSCRIPTS -->
{{#ifexist:{{{name|{{PAGENAME}}}}}/Transcripts|
{{Clear}}
<div id="npc-transcripts">
  <h3>Transcripts</h3>
:''To change these transcripts, edit the [[{{{name|{{PAGENAME}}}}}/Transcripts|transcripts page for {{{name|{{PAGENAME}}}}}]].''
  {{:{{{name|{{PAGENAME}}}}}/Transcripts}}
</div>
}}
</div>
<includeonly>
__NOTOC__
__NOEDITSECTION__


<!--Categories -->
{{#ifeq:{{NAMESPACE}}||<!--
-->[[Category:NPCs in Tibia]]<!--
-->{{#if:{{{job|}}}|[[Category:{{{job}}} NPCs]]|[[Category:NPCs]]}}<!--
-->{{#if:{{{job2|}}}|[[Category:{{{job2}}} NPCs]]}}<!--
-->{{#if:{{{job3|}}}|[[Category:{{{job3}}} NPCs]]}}<!--
-->{{#if:{{{job4|}}}|[[Category:{{{job4}}} NPCs]]}}<!--
-->{{#if:{{{job5|}}}|[[Category:{{{job5}}} NPCs]]}}<!--
-->{{#if:{{{job6|}}}|[[Category:{{{job6}}} NPCs]]}}<!--
-->{{#ifexist:{{PAGENAME}}/Transcripts|[[Category:NPCs with Transcripts]]|}}<!--
-->{{#if:{{{city|}}}|[[Category:{{{city}}} NPCs]]|[[Category:NPCs with no City Parameter]]}}<!--
-->{{#if:{{{posx|}}}||[[Category:NPCs with no Cartesian Location Parameters]]}}<!--
-->{{#if:{{{implemented|}}}|[[Category:Version {{{implemented}}} Implementations]]|[[Category:Pages with no Implementation Parameter]]}}<!--
-->{{#if:{{{city2|}}}|[[Category:{{{city2}}} NPCs]]|}}<!--
-->{{#switch:{{lc:{{{buysell|no}}}}}|yes|yes.=<!--
-->[[Category:NPCs with Wares]]<!--
-->{{#if:{{Template:NPC Trades/City|template=Template:NPC Trades/Plain|{{{name|}}}}}||[[Category:NPCs Lacking City]]}}<!--
-->}}<!--
-->}}<!--


-->
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
</includeonly>|{{Infobox NPC/{{{List}}}| name = {{{name|}}}| job = {{{job|}}}| location = {{{location|}}}| city = {{{city|}}}| city2 = {{{city2|}}}| sounds = {{{sounds|}}}| buysell = {{{buysell|}}}| buys = {{{buys|}}}| sells = {{{sells|}}}| notes = {{{notes|}}}}}}}}}
</noinclude>
__NOWYSIWYG__<noinclude>[[Category:Infobox Templates]]</noinclude>

Revisión actual - 18:56 22 mar 2016

<infobox> <label>GetValue</label> <label>List</label> <label>implemented</label><default>undated</default> <label>city</label> <label>street</label> <label>posx</label> <label>posy</label> <label>posz</label> <label>gender</label> <label>race</label> <label>job</label> <label>job2</label> <label>job3</label> <label>job4</label> <label>job5</label> <label>job6</label> <label>status</label><default>active</default> <title source="name"><default>Infobox NPC</default></title> <label>actualname</label> <label>sounds</label> <label>location</label> <label>notes</label> <label>buys</label><default>--</default> <label>sells</label><default>--</default> <label>shownewhistorysection</label><default>no</default> <label>city2</label> <label>buysell</label><default>no</default> </infobox>

Usage & preview

Type in this:

{{Infobox NPC/Draft
|GetValue=
|List=
|implemented=
|city=
|street=
|posx=
|posy=
|posz=
|gender=
|race=
|job=
|job2=
|job3=
|job4=
|job5=
|job6=
|status=
|name=
|actualname=
|sounds=
|location=
|notes=
|buys=
|sells=
|shownewhistorysection=
|city2=
|buysell=
}}

to see this:

Plantilla:Infobox NPC/Draft


Click here to refresh the preview above