Difference between revisions of "User:FeRDNYC/Template Sandbox"

From GodWiki
Jump to: navigation, search
m (fixes)
m (Undo revision 95173 by FeRDNYC (talk))
(Tag: Undo)
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>The infoboxes are released into the wild, on to new things!
+
<!--
 +
 
 +
******** GUILD
  
This is an example of the ''possibilities'' for auto-filling new articles with "shell" content using <code><nowiki>{{subst:}}</nowiki></code>. A user could type {{tlc|subst:New article template}} (or similar) and save the page, which would replace that code with everything that follows except the {{tag|onlyinclude}} tags.
+
-->{{#ifeq:{{{template|}}}|guild|{{Infobox
</noinclude>
+
| bodystyle = width:100%; max-width:18rem;
<pre><onlyinclude><!--
+
| name = User:FeRDNYC/Template Sandbox
This is a sample Article
+
| above = {{{name|{{PAGENAME}}}}}
 +
| title = [[:Category:Guilds|Guilds]] of Godville
 +
| imagestyle = padding:0; background: #bbbbbb33; border-bottom: 2px solid #f8f9fa;
 +
| image = {{Infobox image|{{ifempty|{{{image|}}}|{{{emblem|}}}|Guild-shield.png}}}}
 +
| caption = {{{caption|}}}
 +
| abovestyle = background: #bbbbbb; border-bottom: 2px solid #f8f9fa;
 +
| belowstyle = background: #bbbbbb33; border-bottom: 2px solid #f8f9fa;
 +
| navstyle = background: #bbbbbb; padding-right:0.5em;
 +
| headerstyle = background: #bbbbbb; border-bottom: 2px solid #f8f9fa;
 +
| labelstyle = background: #bbbbbb; vertical-align: top; min-width: 8em; border-bottom: 2px solid  #f8f9fa;
 +
| datastyle = background: #bbbbbb33; vertical-align: top;  min-width: 12em; border-bottom: 2px solid #f8f9fa;
 +
| label1 = Motto
 +
| data1 = {{#if:{{{motto|}}}|''{{{motto}}}''}}
 +
| label2 = Alignment
 +
| data2 = {{{alignment|}}}
 +
| label3 = Totem Monster
 +
| data3 = {{{monster|}}}
 +
| label4 = High-Level Rank
 +
| data4 = {{{rank|}}}
 +
| label5 = Gold Fund
 +
| data5 = {{#if:{{{gold|}}}|{{{gold}}} c.u.}}
 +
| label6 = Leader
 +
| data6 = {{#if:{{{leader|}}}|{{god|{{{leader}}}}}|}}
 +
| label10 = Founder(s)
 +
| data10 = {{#if:{{{founder|}}}|<ul><li>{{god|{{{founder}}}}}</li>{{#if:{{{founder2|}}}|<li>{{god|{{{founder2}}}}}</li>}}{{#if:{{{founder3|}}}|<li>{{god|{{{founder3}}}}}</li>}}{{#if:{{{founder4|}}}|<li>{{god|{{{founder4}}}}}</li>}}{{#if:{{{founder5|}}}|<li>{{god|{{{founder5}}}}}</li>}}</ul>}}
 +
| label11 = Date Founded
 +
| data11 = {{{founded|}}}
 +
| label12 = Member Count
 +
| label 12 = {{{number|}}}
 +
| label13 = Town with Greatest Influence
 +
| data13 = {{#if:{{{town|}}}|[[{{{town}}}]] ''({{{perc|unspecified}}}%)''}}
 +
| label30 = Forum Headquarters
 +
| data30 = {{#if:{{{forum|}}}|[{{{forum}}} {{{name|{{PAGENAME}}}}}]}}
 +
| label31 = Guild Page
 +
| data31 = {{#ifeq:{{yesno-yes|{{{stats}}}}}
 +
  |yes|{{#if:{{{stats|}}}
 +
        |{{Guild link|{{{name|{{PAGENAME}}}}}|url={{{stats}}}|plain=yes}}
 +
        |{{Guild link|{{{name|{{PAGENAME}}}}}|plain=yes}} }} }}
 +
| label40 = Allies
 +
| data40 = {{#if:{{{friend1|}}}|<ul><li>[[{{{friend1}}}]]</li>{{#if:{{{friend2|}}}|<li>[[{{{friend2}}}]]</li>}}{{#if:{{{friend3|}}}|<li>[[{{{friend3}}}]]</li>}}{{#if:{{{friend4|}}}|<li>[[{{{friend4}}}]]</li>}}{{#if:{{{friend5|}}}|<li>[[{{{friend5}}}]]</li>}}{{#if:{{{friend6|}}}|<li>[[{{{friend6}}}]]</li>}}{{#if:{{{friend7|}}}|<li>[[{{{friend7}}}]]</li>}}{{#if:{{{friend8|}}}|<li>[[{{{friend8}}}]]</li>}}</ul>}}
 +
| label41 = Rivals
 +
| data41 = {{#if:{{{foe1|}}}|<ul><li>[[{{{foe1}}}]]</li>{{#if:{{{foe2|}}}|<li>[[{{{foe2}}}]]</li>}}{{#if:{{{foe3|}}}|<li>[[{{{foe3}}}]]</li>}}{{#if:{{{foe4|}}}|<li>[[{{{foe4}}}]]</li>}}{{#if:{{{foe5|}}}|<li>[[{{{foe5}}}]]</li>}}{{#if:{{{foe6|}}}|<li>[[{{{foe6}}}]]</li>}}{{#if:{{{foe7|}}}|<li>[[{{{foe7}}}]]</li>}}{{#if:{{{foe8|}}}|<li>[[{{{foe8}}}]]</li>}}</ul>}}
 +
| rowstyle50 = background:#e4e2b9;
 +
| rowlabelstyle51 = background:#e4e2b999;
 +
| rowlabelstyle52 = background:#e4e2b999;
 +
| rowlabelstyle53 = background:#e4e2b999;
 +
| rowlabelstyle54 = background:#e4e2b999;
 +
| rowdatastyle51 = background:#e4e2b933;
 +
| rowdatastyle52 = background:#e4e2b933;
 +
| rowdatastyle53 = background:#e4e2b933;
 +
| rowdatastyle54 = background:#e4e2b933;
 +
| header50 = {{#if:{{{unity|}}}{{{popularity|}}}{{{duelery|}}}{{{adventure|}}}{{{pantheon|}}}{{{pantheon2|}}}{{{pantheon3|}}}{{{pantheon4|}}}|Pantheon Rank(s)}}
 +
| label51 = [[Pantheon of unity|Unity]]
 +
| data51 = {{{unity|{{{pantheon|}}}}}}
 +
| label52 = [[Pantheon of popularity|Popularity]]
 +
| data52 = {{{popularity|{{{pantheon2|}}}}}}
 +
| label53 = [[Pantheon of duelery|Duelery]]
 +
| data53 = {{{duelery|{{{pantheon3|}}}}}}
 +
| label54 = [[Pantheon of adventure|Adventure]]
 +
| data54 = {{{adventure|{{{pantheon4|}}}}}}
 +
| below = {{#if:{{{date|}}}|<p style="margin:0; font-size:80%;">Data current as of {{{date}}}</p>}}
 +
}}<includeonly>{{#ifeq: {{NAMESPACENUMBER}}|0|[[:Category:Guilds]]}}</includeonly>}}<!--
  
It contains comment blocks like this to provide information to editors. The comments won't be visible in the final output. Everything between the comment open (< !--) to close (-- >) markers will be ignored when the article is formatted.
+
******** ARTIFACT
  
One important note: Blank lines in the source for a wiki article create vertical whitespace — each empty line creates a new paragraph, basically, and multiple blank lines in a row create empty paragraphs that push text down the page. You can't add blank lines for readability or to separate parts of the text without affecting the formatted page.
+
-->{{#ifeq:{{{template|}}}|artifact2|{{Infobox
 +
| name = User:FeRDNYC/Template Sandbox
 +
| above = {{{title|{{PAGENAME}}}}}
 +
| title = [[List of Artifacts|Artifacts]] of Godville
 +
| imagestyle = padding:0; background: #ccecc633; border-bottom: 2px solid #f8f9fa;
 +
| image = {{Infobox image|{{#if:{{{image|}}}|{{{image}}}|Artifact-warehouse.jpg}}}}
 +
| caption = {{{caption|}}}
 +
| abovestyle = background: #ccecc6; border-bottom: 2px solid #f8f9fa;
 +
| belowstyle = background: #ccecc6; border-bottom: 2px solid #f8f9fa;
 +
| navstyle = background: #ccecc6; padding-right:0.5em;
 +
| headerstyle = background: #ccecc6; border-bottom: 2px solid #f8f9fa;
 +
| labelstyle = background: #ccecc6; vertical-align: top; min-width: 8em; border-bottom: 2px solid  #f8f9fa;
 +
| datastyle = background: #ccecc633; vertical-align: top;  min-width: 12em; border-bottom: 2px solid #f8f9fa;
 +
| label1 = Type
 +
| data1 = {{#if:{{{type|}}}|{{{type}}}|''Unknown''}}
 +
| label2 = Description
 +
| data2 = {{#if:{{{description|}}}|{{{description}}}|''Unknown''}}
 +
| label3 = Value
 +
| data3 = {{{value|}}}
 +
| label4 = [[Monsters' Artifacts|Associated Monster]]
 +
| data4 = {{#if:{{{monster|}}}|[[{{{monster}}}]]}}
 +
| label5 = [[Godville Times | Wanted On]]
 +
| data5 = {{#if:{{{wanted|}}}|{{{wanted}}} g.e.}}
 +
}}<includeonly>{{#ifeq: {{NAMESPACENUMBER}}|0|[[:Category:Artifacts]]{{#switch: {{lc:{{{type|}}}}}
 +
| healing = [[:Category:Healing Artifacts]]
 +
| bold = [[:Category:Bold Artifacts]]
 +
| activatable = [[:Category:Activatable Artifacts]]
 +
}}{{#if: {{{monster|}}} | [[:Category:Monsters' Artifacts]] }}}}</includeonly>}}<!--
  
So, you want to be sparing about blank lines, and when removing comments be sure to remove the ENTIRE line (or lines) containing the comment. Don't merely erase the text and leave a blank line. Each comment block already counts as one blank line, so especially avoid inserting more, unless you remove the comments AND the lines they occupy.
+
******** EQUIPMENT
  
Feel free to delete this comment block when saving your article, or not delete it. Either way is fine, it won't affect how the formatted article looks (other than the spacing issue already mentioned).
+
-->{{#ifeq:{{{template|}}}|equipment|{{Infobox
-->
+
| name = User:FeRDNYC/Template Sandbox
{{Infobox
+
| above = {{{title|{{PAGENAME}}}}}
| param1 =
+
| title = [[List of Equipment|Equipment]] of Godville
| param2 =  
+
| imagestyle = padding:0; background: #fee3c833; border-bottom: 2px solid #f8f9fa;
| param3 =  
+
| image = {{Infobox image|{{#if:{{{image|}}}|{{{image}}}|Gear.jpg}}}}
| param4 =
+
| caption = {{{caption|}}}
 +
| abovestyle = background: #fee3c8; border-bottom: 2px solid #f8f9fa;
 +
| belowstyle = background: #fee3c8; border-bottom: 2px solid #f8f9fa;
 +
| navstyle = background: #fee3c8; padding-right:0.5em;
 +
| headerstyle = background: #fee3c8; border-bottom: 2px solid #f8f9fa;
 +
| labelstyle = background: #fee3c8; vertical-align: top; min-width: 8em; border-bottom: 2px solid #f8f9fa;
 +
| datastyle = background: #fee3c833; vertical-align: top;  min-width: 12em; border-bottom: 2px solid #f8f9fa;
 +
| label1 = Description
 +
| data1 = {{{description|}}}
 +
| label2 = Worn
 +
| data2 = {{#switch: {{lc:{{{type|{{{worn}}}}}} }}
 +
  | weapon = {{Decorate item|🗡️|[[:Category:Weapons|Weapon]]|where=before}}
 +
  | shield = {{Decorate item|🛡️|[[:Category:Shields|Shield]]|where=before}}
 +
  | head = {{Decorate item|🧢|[[:Category:Heads|Head]]|where=before}}
 +
  | body = {{Decorate item|👕|[[:Category:Bodies|Body]]|where=before}}
 +
  | arms = {{Decorate item|💪|[[:Category:Arms|Arms]]|where=before}}
 +
  | legs = {{Decorate item|👖|[[:Category:Legs|Legs]]|where=before}}
 +
  | talisman = {{Decorate item|🍀|[[:Category:Talismans|Talisman]]|where=before}}
 +
  | #default = ''Unknown''
 
}}
 
}}
<!--
+
| label3 = Durability
 +
| data3 = {{{durability|}}}
 +
}}<includeonly>{{#ifeq: {{NAMESPACENUMBER}}|0|[[:Category:Equipment]]
 +
{{#switch: {{lc:{{{type|{{{worn}}}}}} }}
 +
| weapon = [[:Category:Weapons]]
 +
| shield = [[:Category:Shields]]
 +
| head = [[:Category:Heads]]
 +
| body = [[:Category:Bodies]]
 +
| arms = [[:Category:Arms]]
 +
| legs = [[:Category:Legs]]
 +
| talisman = [[:Category:Talismans]]
 +
}}}}</includeonly>}}<!--
  
  HISTORY SECTION
+
******** MONSTER
  
-->
+
-->{{#ifeq:{{{template|}}}|monster|{{Infobox
<!-- REMOVE THIS LINE AND THE LINE TWO-BELOW for a "History" section heading
+
| name = User:FeRDNYC/Template Sandbox
==History==
+
| above = {{{title|{{PAGENAME}}}}}
    REMOVE THIS LINE AND THE LINE TWO-ABOVE for a "History" section heading -->
+
| title = [[List of Monsters|Monsters]] of Godville
<!--Write any "History" content you like here. Remove this comment and the ones around the heading -->
+
| imagestyle = padding:0;background: #e3f0fd33; border-bottom: 2px solid #f8f9fa;
<!--
+
| image = {{Infobox image|{{#if:{{{image|}}}|{{{image}}}|Menagerie.png}}}}
 +
| caption = {{{caption|}}}
 +
| abovestyle = background: #e3f0fd; border-bottom: 2px solid #f8f9fa;
 +
| belowstyle = background: #e3f0fd; border-bottom: 2px solid #f8f9fa;
 +
| navstyle = background: #e3f0fd; padding-right:0.5em;
 +
| headerstyle = background: #e3f0fd; border-bottom: 2px solid #f8f9fa;
 +
| labelstyle = background: #e3f0fd; vertical-align: top; min-width: 8em; border-bottom: 2px solid #f8f9fa;
 +
| datastyle = background: #e3f0fd33; vertical-align:top;  min-width: 12em; border-bottom: 2px solid #f8f9fa;
 +
| label1 = Class
 +
| data1 = {{#if:{{{class|}}}|{{{class}}}|''Unknown''}}
 +
| label2 = Habitat
 +
| data2 = {{#if:{{{habitat|}}}|{{{habitat}}}|''Unknown''}}
 +
| label3 = Description
 +
| data3 = {{#if:{{{description|}}}|{{{description}}}|''Unknown''}}
 +
| label4 = [[Health]]
 +
| data4 = {{{health|}}}
 +
| label5 = [[Death Rattle]]
 +
| data5 = {{{rattle|}}}
 +
| label6 = [[Monsters' Artifacts|Associated Artifact]]
 +
| data6 = {{{artifact|}}}
 +
| label7 = {{#if:{{{wanted|}}}|[[Godville Times|Wanted on]]}}
 +
| data7 = {{#if:{{{wanted|}}}|{{{wanted|}}} g.e.}}
 +
| rowstyle10 = background: #fecdcd;
 +
| rowlabelstyle11 = background: #fecdcd99;
 +
| rowdatastyle11 = background: #fecdcd33;
 +
| header10 = {{#ifeq:{{yesno-no|{{{boss|}}}}}|yes|Boss}}
 +
| label11 = Boss Type
 +
| data11 = {{#ifeq:{{yesno-no|{{{boss|}}}}}|
 +
yes|{{#switch:{{lc:{{{boss-type|}}}}}
 +
    |underground|ug|dig|digging=Underground
 +
    |quest|mini-quest|miniquest=Mini-Quest
 +
    |above|aboveground|surface=Above-Ground
 +
    |dungeon=Dungeon
 +
    |1|1ab|1ability|1-ability|1 ability=1-Ability Dungeon
 +
    |2|2ab|2ability|2-ability|2 ability=2-Ability Dungeon
 +
    |3|3ab|tb|3ability|3-ability|3 ability|treasure=3-Ability Dungeon
 +
    |''Unknown''}}
 +
}}
 +
| rowstyle20 = background:#c9f3d5;
 +
| rowlabelstyle21 = background:#c9f3d599;
 +
| rowlabelstyle22 = background:#c9f3d599;
 +
| rowlabelstyle23 = background:#c9f3d599;
 +
| rowdatastyle21 = background:#c9f3d533;
 +
| rowdatastyle22 = background:#c9f3d533;
 +
| rowdatastyle23 = background:#c9f3d533;
 +
| header20 = {{#ifeq:{{yesno-no|{{{pet}}}}}|yes|Pet}}
 +
| label21 = Tameable at levels
 +
| data21 = {{{levels|}}}
 +
| label22 = Feature
 +
| data22 = {{{feature|}}}
 +
| label23 = Totem for
 +
| data23 = {{#if:{{{totem|}}}|[[{{{totem}}}]]}}
 +
}}<includeonly>{{#ifeq: {{NAMESPACENUMBER}}|0|[[:Category:Monsters]]
 +
{{#ifeq:{{yesno-no|{{{pet}}}}}|yes|[[:Category:Pets]]}}
 +
{{#ifeq:{{yesno-no|{{{boss}}}}}|yes|[[:Category:Boss-Monsters]]}}
 +
{{#if: {{{totem|}}} | [[:Category:Totem Monsters]]}}}}</includeonly>}}<!--
  
  SOME OTHER SECTION
+
******** TOWN
  
-->
+
-->{{#ifeq:{{{template|}}}|town|{{Infobox
<!-- REMOVE THIS LINE AND THE LINE TWO-BELOW for a section heading (be sure to edit the name)
+
| name = User:FeRDNYC/Template Sandbox
==Section title== <!--(Use "Normal sentence case", not "Title Word Case", in section titles)-->
+
| above = {{{title|{{PAGENAME}}}}}
    REMOVE THIS LINE AND THE LINE TWO-ABOVE for a section heading -->
+
| title = [[Towns]] of Godville
<!--Write any content for this section here. Remove this comment and the ones around the heading --></onlyinclude></pre>
+
| imagestyle = padding: 0; background: #f8d9fc33; border-bottom: 2px solid #f8f9fa;
 +
| image = {{Infobox image|{{#if:{{{image|}}}|{{{image}}}|Town.jpg}}}}
 +
| caption = {{{caption|}}}
 +
| abovestyle = background: #f8d9fc; border-bottom: 2px solid #f8f9fa;
 +
| belowstyle = background: #f8d9fc; border-bottom: 2px solid #f8f9fa;
 +
| navstyle = background: #f8d9fc; padding-right:0.5em;
 +
| headerstyle = background: #f8d9fc; border-bottom: 2px solid #f8f9fa;
 +
| labelstyle = background: #f8d9fc; vertical-align: top; min-width: 8em; border-bottom: 2px solid #f8f9fa;
 +
| datastyle = background: #f8d9fc33; vertical-align: top; min-width: 12em; border-bottom: 2px solid #f8f9fa;
 +
| label1 = Home [[milestone]]
 +
| data1 = {{#if:{{{milestone|}}}|{{{milestone}}}|''Unknown''}}
 +
| label2 = [[Map of Godville|Map]] code
 +
| data2 = {{#if:{{{abbreviation|}}}|{{{abbreviation}}}|''??''}}
 +
| label3 = [[Town features|Known for]]
 +
| data3 = {{#if:{{{features|{{{known|{{{description|}}}}}}}}}|{{{features|{{{known|{{{description}}}}}}}}}|''Unknown''}}
 +
| label4 = Motto
 +
| data4 = {{{motto|}}}
 +
}}<includeonly>{{#ifeq: {{NAMESPACENUMBER}}|0|[[:Category:Towns]]}}</includeonly>}}<noinclude>
 +
{{doc|User:FeRDNYC/Sandbox}}
 +
</noinclude>

Latest revision as of 21:01, 16 February 2019

[view] [edit] [history] [refresh]
Documentation  Documentation

If you aren't viewing this as User:FeRDNYC/Sandbox, you should visit that page instead for best effect.

The following sections are (near-)exact copies of entire artifact, monster, and equipment articles from the wiki, outfitted with differently-styled versions of the proposed new infoboxes as implemented in User:FeRDNYC/Template Sandbox. All of the infoboxes are based on the core {{Infobox}} master template developed at Wikipedia, which allows for more advanced features and formatting than our current infoboxes, and also gives them a more unified look. Comments on any aspect are welcome and encouraged, discuss at User talk:FeRDNYC/Sandbox.

Ankh-Morpork City Watch

Guilds of Godville
FeRDNYC/Template Sandbox
amcw.jpg
Motto Fabricati Diem, Pvnc!
Alignment Bright
Gold Fund ~140,000 c.u.
Founder(s)
Date Founded 7/12/11
Forum Headquarters FeRDNYC/Template Sandbox
Guild Page FeRDNYC/Template Sandbox 
Allies
Pantheon Rank(s)
Unity ~4th

Data current as of Hex: +++Divide By Cucumber Error. Please Reinstall Universe And Reboot+++

The Ankh-Morpork City Watch was originally founded in 1561 by King Veltrick I. It has an illustrious and ignoble history, and you should definitely read all about it. The modern watch has been expanded and organized under Sir Samuel Vimes, and it has become a model of diversity (though perhaps not efficiency) by recruiting heroes from all races, classes and abilities (or lack thereof).

After a disastrous thaumic experiment by Ponder Stibbons at Unseen University, the space-time continuum was rendered moot, and the members of the watch found themselves serving as peacemakers throughout Godville.

For many years, our Honorable Commander Sir Samuel Vimes has lead the Watch, along with his guild co-founders, Mustrum Ridcully, Havelock Vetinari, Rob Anybody and Granny Weatherwax. However, due to growing instability in the lands beyond the city, this old, wise and generally insane Council of prominent gods has been forced to retire to where the thingamajig is hitting the wossname, leaving behind a new and (mostly) fresh Inner Council of high-ranking officers in their wake, lead by the intrepid and quickly becoming too old for this cra-- uuhh... stuff? god Azzageddi.

Given the epic magnitude of our battle against rampaging monsters, we urge all true heroes to join the Watch.


And really, do you need any more good reasons to join? Well, here is our awesome AMCW anthem, fully created and lovingly compiled by our guild members.