User:Craggles
| This user is an administrator. |
| en | This user is able to contribute with fluent of English. |
|---|
Projects Worked on
- Template:Infobox Hunt
- Template:Infobox Geography
- Template:Infobox
- Libraries
- Template:Creature Types
- Template:Infobox Transcript
ToDo
- User:Craggles/Infobox
- NPC Trades, arrange.
- Try updating Template:Infobox body to div. (slow)
- Dpl standardization
- Clear up old templates.
{{#ifeq:{{NAMESPACE}}|Template| {{protected|this template is widely used and vulnerable to vandalism}} {{documentation}} ||}} <table width="100%"><!-- invisible table, left infobox;rightsidebar --> <tr> <td width="100%"valign="top"><!-- infobox --> <div style="position: relative;border:1px solid #bfcfcf;min-height:270px;background-color:{{#if:{{{backgroundcolour|}}}|{{{backgroundcolour}}}|{{#if:{{Config|template_backgroundcolour}}|{{Config|template_backgroundcolour}}|#f9fcff|}}}};margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:0px;padding-left:10px;padding-right:10px;padding-top:5px;padding-bottom:5px;"><!-- creates the typical blue box --> <!-- Top Right --><div style="position:absolute;top:5px;right:10px;text-align:right;font-size:smaller; line-height: 10px;">{{{topright}}}</div> <!-- Top Left --> <div align="right" style="position:absolute;top:5px;left:10px;text-align:left;font-size:smaller; line-height: 10px;">{{{topleft|<span title="Implemented in update {{{implemented|Unknown}}}">{{#if:{{{implemented|}}}|'''[[Updates/{{{implemented}}}|{{{implemented}}}]]'''{{#if:{{Version Date|{{{implemented|}}}}}|<small> ({{Version Date|{{{implemented|}}}}})</small>}}|'''Unknown'''}}</span>}}}</div> <!-- Bottom Right --><div style="position:absolute;bottom:10px;right:10px;text-align:right;font-size:smaller; line-height: 10px;">{{{bottomright|{{#ifeq:{{NAMESPACE}}||{{#ifexist:{{PAGENAME}}/History||[{{fullurl:{{PAGENAME}}/History|action=edit&preload=Template:PreLoad_History}} Add historical information about this {{{history}}}.]}}}}}}}</div> <!-- Bottom Left --><div style="position:absolute;bottom:10px;left:10px;text-align:left;font-size:smaller; line-height: 10px;">{{{bottomleft}}}</div> <!-- Body --> <div style="width:{{{width|100%}}};margin-top:{{#if:{{{margintop|}}}|{{{margintop}}}|{{#if:{{Config|template_margintop}}|{{Config|template_margintop}}|10|}}}}px;margin-bottom:{{#if:{{{marginbottom|}}}|{{{marginbottom}}}|{{#if:{{Config|template_marginbottom}}|{{Config|template_marginbottom}}|15|}}}}px;"> <!-- Name and Image --> <div style="clear: both;"> <div style="float: left;padding-right: 5px; text-align: right; width:200px; margin: 0px 0px 0 px 0px;">[[File:{{{name|Sam}}}.gif]]</div> <div style="font-size:x-large">{{{name|Sam}}}</div> <div style="margin: 0px 0px 0px 200px;padding-left:5px;{{#if:{{{flavourstyle|}}}|{{{flavourstyle}}}|{{#if:{{Config|template_flavourstyle}}|{{Config|template_flavourstyle}}|color:green;font:small;font-weight: bold;font-style:italic;|}}}}">{{{flavourtext|Sam enjoys cooking}}}</div> </div> <div style="clear:both;"> <dl> <dt style="{{Config|template_bodyleft}}">Location:</dt> <dd style="{{Config|template_bodyright}}">{{{location|Unknown.}}}</dd> <dt style="{{Config|template_bodyleft}}">Occupation:</dt> <dd style="{{Config|template_bodyright}}">{{#if:{{{job|}}}|[[{{{job}}} NPCs|{{{job}}}]]|Unknown}}{{#if:{{{job2|}}}|, [[{{{job2}}} NPCs|{{{job2}}}]]}}{{#if:{{{job3|}}}|, [[{{{job3}}} NPCs|{{{job3}}}]]}}</dd> <dt style="{{Config|template_bodyleft}}">Sounds:</dt> <dd style="{{Config|template_bodyright}}">{{#switch:{{lc:{{{sounds|unknown}}}}}|none|none.=None.|unknown|unknown.=Unknown.|#default=<span class="yellow sounds">{{{sounds}}}</span>}}</dd> <dt style="{{Config|template_bodyleft}}">Notes:</dt> <dd style="{{Config|template_bodyright}}">{{{notes|None.}}}{{#ifexist:{{PAGENAME}}/Transcripts|<br><span style="font-size:smaller">''See [[{{PAGENAME}}/Transcripts|transcripts]] to see what this NPC has to say.''</span>}}</dd> </dl> {{#switch:{{{buysell|yes}}}|Yes.|Yes|yes.|yes= <div style="{{Config|template_bodyright}}"> <div style="text-align: center; margin: 0;vertical-align:middle;background-color:#f0f0ff;solid #000;font-weight:bold;">Trades</div> <div style="display:inline;"> <div style="width:50%;float:right;" align="center">{{{name}}} <strong>Sells</strong> <div style="margin-left:auto;margin-right:auto;">{{#if:{{{sells|}}}|{{{sells|}}}|<br />None.}}</div></div> <div style="width:50%;valign:top;;" align="center">{{{name}}} <strong>Buys</strong> <div style="margin-left:auto;margin-right:auto;>{{#if:{{{buys|}}}|{{{buys}}}|<br />None.}}</div></div> </div>}} </div> </div> <!-- /Body --> </div> </div> </td> <!-- Checks config for sidebar useage -->{{#ifeq:{{Config|template_sidebar}}|0|| <td width="200px" valign="top"> <div style="position:relative;background-color: #FAFAFA; border: 1px solid #AFAFAF; padding: 0; margin: 0; width: 200px;overflow-x: auto; height: 280px; overflow-y: auto;"> {{{sidebar}}} <!-- sidebar div will be created, use dpl's in the sidebar param --> </div> </td>}} </tr> </table> {{{bottom|}}} ==[[User:Craggles/Infobox]]==