Difference between revisions of "Template:Fad Infobox"

From YTMND
Jump to: navigation, search
(Fuck! rv. Taking this to sandbox.)
(New, be-all end-all fad infobox. Fully compatible with the old one. Please study http://wiki.ytmnd.com/index.php?title=Template:Sandbox2&action=history before trying to tweak this.)
Line 1: Line 1:
{| class="infobox" style="width: 210px; float: right;"
+
<includeonly>{| class="infobox" style="width: 210px; float: right;"
 
! style="text-align: center; background-color: #c7ddc8" | '''{{{name|{{PAGENAME}}}}}'''
 
! style="text-align: center; background-color: #c7ddc8" | '''{{{name|{{PAGENAME}}}}}'''
 
|-
 
|-
| style="text-align:center;" | {{{image|}}}[[Image:{{{img|spacer200.gif}}}|200px|Preview image]]
+
| style="text-align:center;" | [[Image:{{{img|spacer200.gif}}}|200px|Preview image]]
 
|-  
 
|-  
! style="text-align: center;" | Original YTMND:<br /><span class="plainlinks">[http://{{{original}}}.ytmnd.com {{{originalTitle|{{{original}}}}}}]</span>
+
{{if|{{{original|}}}
|-  
+
|then=! style="text-align: center;" {{!}} Original YTMND:<br />{{ytmnd|{{{original}}}|{{{originalTitle|}}} }}
! style="text-align: center;" | Worthy spinoffs:
+
|else=! style="text-align: center;" {{!}} Example:<br />{{ytmnd|{{{example}}}|{{{exampleTitle|}}} }} }}{{if|{{{spinoff1|}}}|then=&nbsp;
|-
+
{{!}}-
|
+
! style="text-align: center;" {{!}} Worthy spinoffs:
*<span class="plainlinks">[http://{{{spinoff1}}}.ytmnd.com {{{title1|{{{spinoff1}}}}}}]</span>
+
{{!}}-
*<span class="plainlinks">[http://{{{spinoff2}}}.ytmnd.com {{{title2|{{{spinoff2}}}}}}]</span>
+
{{!}}
*<span class="plainlinks">[http://{{{spinoff3}}}.ytmnd.com {{{title3|{{{spinoff3}}}}}}]</span>
+
*{{if|{{{title1|}}}|then={{ytmnd|{{{spinoff1}}}|{{{title1}}} }}|else={{ytmnd|{{{spinoff1}}}}} }} }}{{if|{{{spinoff2|}}}|then=
*<span class="plainlinks">[http://{{{spinoff4}}}.ytmnd.com {{{title4|{{{spinoff4}}}}}}]</span>
+
*{{if|{{{title2|}}}|then={{ytmnd|{{{spinoff2}}}|{{{title2}}} }}|else={{ytmnd|{{{spinoff2}}}}} }} }}{{if|{{{spinoff3|}}}|then=
*<span class="plainlinks">[http://{{{spinoff5}}}.ytmnd.com {{{title5|{{{spinoff5}}}}}}]</span>
+
*{{if|{{{title3|}}}|then={{ytmnd|{{{spinoff3}}}|{{{title3}}} }}|else={{ytmnd|{{{spinoff3}}}}} }} }}{{if|{{{spinoff4|}}}|then=
|}<noinclude>
+
*{{if|{{{title4|}}}|then={{ytmnd|{{{spinoff4}}}|{{{title4}}} }}|else={{ytmnd|{{{spinoff4}}}}} }} }}{{if|{{{spinoff5|}}}|then=
 +
*{{if|{{{title5|}}}|then={{ytmnd|{{{spinoff5}}}|{{{title5}}} }}|else={{ytmnd|{{{spinoff5}}}}} }} }}{{if|{{{ptkfgs|}}}|then=&nbsp;
 +
{{!}}-
 +
! style="text-align: center;" {{!}} PTKFGS counterpart:
 +
{{!}}-
 +
{{!}}
 +
*{{if|{{{ptktitle|}}}|then={{ytmnd|{{{ptkfgs}}}|{{{ptktitle}}} }}|else={{ytmnd|{{{ptkfgs}}}}} }} }}{{if|{{{music1|}}}|then=&nbsp;
 +
{{!}}-
 +
! style="text-align: center;" {{!}} Used Music:
 +
{{!}}-
 +
{{!}}
 +
* '''{{{band1|(Unknown artist)}}}''' - {{if|{{{m1md5|}}}|then={{YTMNDasset|{{{m1md5}}}|{{{music1}}} }}|else={{{music1}}} }} }}{{if|{{{music2|}}}|then=
 +
* '''{{{band2|(Unknown artist)}}}''' - {{if|{{{m2md5|}}}|then={{YTMNDasset|{{{m2md5}}}|{{{music2}}} }}|else={{{music2}}} }} }}{{if|{{{music3|}}}|then=
 +
* '''{{{band3|(Unknown artist)}}}''' - {{if|{{{m3md5|}}}|then={{YTMNDasset|{{{m3md5}}}|{{{music3}}} }}|else={{{music3}}} }} }}{{if|{{{music4|}}}|then=
 +
* '''{{{band4|(Unknown artist)}}}''' - {{if|{{{m4md5|}}}|then={{YTMNDasset|{{{m4md5}}}|{{{music4}}} }}|else={{{music4}}} }} }}{{if|{{{music5|}}}|then=
 +
* '''{{{band5|(Unknown artist)}}}''' - {{if|{{{m5md5|}}}|then={{YTMNDasset|{{{m5md5}}}|{{{music5}}} }}|else={{{music5}}} }} }}
 +
|}</includeonly><noinclude>
  
 
==Purpose==  
 
==Purpose==  

Revision as of 16:21, January 29, 2009


Purpose

Info box about fads. This one differs from the original Fad infobox that it uses a 200px uploaded image instead of an external link. (you can choose to upload the background image or the preview), as well as captions.

Code

{{Fad Infobox|name=
|img=
|original=
|originalTitle=
|spinoff1=
|title1=
|spinoff2=
|title2=
|spinoff3=
|title3=
|spinoff4=
|title4=
|spinoff5=
|title5=
}}

Fields

  • name = Fad's name
  • img/image = The image. If you type img, it should be filename of an uploaded image (Image:file.jpg) (no other formatting, it will automatically render 200px wide). If you type image, it should be the preview of the image (for example http://content.ytmnd.com/content/a/9/0/a904c9eb269376020c39f84340a45743.jpg)
  • original = Subdomain (the first part) of the URL of the YTMND which started the fad (http://original.ytmnd.com)
  • spinoff1 - spinoff5 = Subdomain of the five high-rated spinoffs of this fad. And no, you can't post a 6th spinoff. (Please list ones with at least
    Error creating thumbnail: Unable to save thumbnail to destination
    and 10,000 views if possible).
  • title1 - title5 = Names of the spinoffs