Difference between revisions of "Template:Fad Infobox"

From YTMND
Jump to: navigation, search
(restore includeonly section for the moment)
 
(32 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| class="infobox" style="width: 210px;"
+
<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|spacer.gif}}}|200px|center]]
+
| 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>
  
{{Fad Infobox|
 
name=lol, internet
 
|image=http://content.ytmnd.com/content/2/e/9/2e9b23286da1ccad88f4252b7a1938a7.jpg
 
|original=steamsteamlol
 
|spinoff1=steamsteamie
 
|spinoff2=lolhmstitanic
 
|spinoff3=broadbandsteamlol
 
|spinoff4=lolsilentfilm
 
|spinoff5=lolrunninginthe90s
 
}}
 
 
==Purpose==  
 
==Purpose==  
Info box about fads
+
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==
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Fad Infobox|name=
 
{{Fad Infobox|name=
|image=
+
|img=
|original=
+
|original= (OR |example=}
 +
|originalTitle= (OR |exampleTitle=)
 +
|orcreator=
 +
|ordate=
 +
|ordatecat=
 
|spinoff1=
 
|spinoff1=
 +
|title1=
 
|spinoff2=
 
|spinoff2=
 +
|title2=
 
|spinoff3=
 
|spinoff3=
 +
|title3=
 
|spinoff4=
 
|spinoff4=
 +
|title4=
 
|spinoff5=
 
|spinoff5=
 +
|title5=
 +
|ptkfgs=
 +
|ptktitle=
 +
|music1=
 +
|band1=
 +
|m1md5=
 +
|music2=
 +
|band2=
 +
|m2md5=
 +
|music3=
 +
|band3=
 +
|m3md5=
 +
|music4=
 +
|band4=
 +
|m4md5=
 +
|music5=
 +
|band5=
 +
|m5md5=
 
}}</nowiki></pre>
 
}}</nowiki></pre>
  
 
==Fields==  
 
==Fields==  
 
* '''name''' = Fad's name
 
* '''name''' = Fad's name
* '''image''' = name of the image (Image:'''file.jpg''') (no other formatting)
+
* '''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
==Example==
+
[[Category:Infoboxes]]
The code below creates the infobox shown.
+
<pre><nowiki>
+
{{Fad Infobox|name=lol, internet
+
|image=http://content.ytmnd.com/content/2/e/9/2e9b23286da1ccad88f4252b7a1938a7.jpg
+
|original=steamsteamlol
+
|spinoff1=steamsteamie
+
|spinoff2=lolhmstitanic
+
|spinoff3=broadbandsteamlol
+
|spinoff4=lolsilentfilm
+
|spinoff5=lolrunninginthe90s
+
}}
+
</nowiki></pre>
+
 
</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
    Error creating thumbnail: Unable to save thumbnail to destination
    and 10,000 views if possible).
  • title1 - title5 = Names of the spinoffs