Difference between revisions of "Template:Fad Infobox"

From YTMND
Jump to: navigation, search
(adding in alignment param)
 
(19 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| class="infobox" style="width: 210px; float: {{{alignment|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|{{{orcreator|}}}|then=&nbsp;
|-
+
{{!}}-
|
+
{{!}} style="text-align: center;" {{!}}by {{ytmnduser|{{{orcreator}}}}} }}{{if|{{{ordate|}}}|then=&nbsp;
*<span class="plainlinks">[http://{{{spinoff1}}}.ytmnd.com {{{title1|{{{spinoff1}}}}}}]</span>
+
{{!}}-
*<span class="plainlinks">[http://{{{spinoff2}}}.ytmnd.com {{{title2|{{{spinoff2}}}}}}]</span>
+
{{!}} style="text-align: center;" {{!}}{{date|{{{ordatecat}}}|{{{ordate}}} }} }}{{if|{{{spinoff1|}}}|then=&nbsp;
*<span class="plainlinks">[http://{{{spinoff3}}}.ytmnd.com {{{title3|{{{spinoff3}}}}}}]</span>
+
{{!}}-
*<span class="plainlinks">[http://{{{spinoff4}}}.ytmnd.com {{{title4|{{{spinoff4}}}}}}]</span>
+
! style="text-align: center;" {{!}} Worthy spinoffs:
*<span class="plainlinks">[http://{{{spinoff5}}}.ytmnd.com {{{title5|{{{spinoff5}}}}}}]</span>
+
{{!}}-
|}<noinclude>
+
{{!}}
 +
*{{if|{{{title1|}}}|then={{ytmnd|{{{spinoff1}}}|{{{title1}}} }}|else={{ytmnd|{{{spinoff1}}}}} }} }}{{if|{{{spinoff2|}}}|then=
 +
*{{if|{{{title2|}}}|then={{ytmnd|{{{spinoff2}}}|{{{title2}}} }}|else={{ytmnd|{{{spinoff2}}}}} }} }}{{if|{{{spinoff3|}}}|then=
 +
*{{if|{{{title3|}}}|then={{ytmnd|{{{spinoff3}}}|{{{title3}}} }}|else={{ytmnd|{{{spinoff3}}}}} }} }}{{if|{{{spinoff4|}}}|then=
 +
*{{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==  
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.
+
Info box about fads. This new improved model incorporates all the fields of the old Ibs system and at the same time is fully backwards compatible with template that it directly replaced. Looks the same too.
  
 
==Code==
 
==Code==
Line 23: Line 43:
 
{{Fad Infobox|name=
 
{{Fad Infobox|name=
 
|img=
 
|img=
|original=
+
|original= (OR |example=}
|originalTitle=
+
|originalTitle= (OR |exampleTitle=)
 +
|orcreator=
 +
|ordate=
 +
|ordatecat=
 
|spinoff1=
 
|spinoff1=
 
|title1=
 
|title1=
Line 35: Line 58:
 
|spinoff5=
 
|spinoff5=
 
|title5=
 
|title5=
|alignment=
+
|ptkfgs=
 +
|ptktitle=
 +
|music1=
 +
|band1=
 +
|m1md5=
 +
|music2=
 +
|band2=
 +
|m2md5=
 +
|music3=
 +
|band3=
 +
|m3md5=
 +
|music4=
 +
|band4=
 +
|m4md5=
 +
|music5=
 +
|band5=
 +
|m5md5=
 
}}</nowiki></pre>
 
}}</nowiki></pre>
  
Line 42: Line 81:
 
* '''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 <nowiki>http://content.ytmnd.com/content/a/9/0/a904c9eb269376020c39f84340a45743.jpg</nowiki>)
 
* '''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 <nowiki>http://content.ytmnd.com/content/a/9/0/a904c9eb269376020c39f84340a45743.jpg</nowiki>)
 
* '''original''' = Subdomain (the '''first part''') of the URL of the YTMND which started the fad (<nowiki>http://</nowiki>'''original'''.ytmnd.com)
 
* '''original''' = Subdomain (the '''first part''') of the URL of the YTMND which started the fad (<nowiki>http://</nowiki>'''original'''.ytmnd.com)
* '''spinoff1''' - '''spinoff5''' = Subdomain of the five high-rated spinoffs of this fad. (Please list ones with at least {{****}} and 10,000 views if possible).
+
* '''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 {{****}} and 10,000 views if possible).
 
* '''title1''' - '''title5''' = Names of the spinoffs
 
* '''title1''' - '''title5''' = Names of the spinoffs
* '''alignment''' - the positioning of the template&mdash;right or left (default value right).
+
[[Category:Infoboxes]]
 
</noinclude>
 
</noinclude>

Latest revision as of 20:40, February 1, 2009


Purpose

Info box about fads. This new improved model incorporates all the fields of the old Ibs system and at the same time is fully backwards compatible with template that it directly replaced. Looks the same too.

Code

{{Fad Infobox|name=
|img=
|original= (OR |example=}
|originalTitle= (OR |exampleTitle=)
|orcreator=
|ordate=
|ordatecat=
|spinoff1=
|title1=
|spinoff2=
|title2=
|spinoff3=
|title3=
|spinoff4=
|title4=
|spinoff5=
|title5=
|ptkfgs=
|ptktitle=
|music1=
|band1=
|m1md5=
|music2=
|band2=
|m2md5=
|music3=
|band3=
|m3md5=
|music4=
|band4=
|m4md5=
|music5=
|band5=
|m5md5=
}}

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 **** and 10,000 views if possible).
  • title1 - title5 = Names of the spinoffs