Template:Play Nintendo table row: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary |
(i tried adding a vertical alignment property to the entire table instead of every entry individually, but it isn't currently possible) |
||
Line 9: | Line 9: | ||
|align=center|[[File:{{{banner|}}}|600px]]<br> | |align=center|[[File:{{{banner|}}}|600px]]<br> | ||
'''''<span style="font-size: 20px">{{{question|}}}</span><br> | '''''<span style="font-size: 20px">{{{question|}}}</span><br> | ||
{|style=" | {|style="text-align:" | ||
|- | |- | ||
|align=center style="background:#DADADA" width=200px height=50px|''{{{opt1|}}} | |align=center style="background:#DADADA" width=200px height=50px {{#if:{{{top|}}}|valign=top}}|''{{{opt1|}}} | ||
|align=center style="background:#DADADA" width=200px height=50px|''{{{opt2|}}} | |align=center style="background:#DADADA" width=200px height=50px {{#if:{{{top|}}}|valign=top}}|''{{{opt2|}}} | ||
|align=center style="background:#DADADA" width=200px height=50px|''{{{opt3|}}} | |align=center style="background:#DADADA" width=200px height=50px {{#if:{{{top|}}}|valign=top}}|''{{{opt3|}}} | ||
{{#if:{{{opt4|}}}|<nowiki/> | {{#if:{{{opt4|}}}|<nowiki/> | ||
{{!}}align=center style="background:#DADADA" width=200px height=50px{{!}}''{{{opt4}}}}}{{#if:{{{opt5|}}}|<nowiki/> | {{!}}align=center style="background:#DADADA" width=200px height=50px {{#if:{{{top|}}}|valign=top}}{{!}}''{{{opt4}}}}}{{#if:{{{opt5|}}}|<nowiki/> | ||
{{!-}}<nowiki/> | {{!-}}<nowiki/> | ||
{{!}}align=center style="background:#DADADA" width=200px height=50px{{!}}''{{{opt5}}}}}{{#if:{{{opt6|}}}|<nowiki/> | {{!}}align=center style="background:#DADADA" width=200px height=50px {{#if:{{{top|}}}|valign=top}}{{!}}''{{{opt5}}}}}{{#if:{{{opt6|}}}|<nowiki/> | ||
{{!}}align=center style="background:#DADADA" width=200px height=50px{{!}}''{{{opt6}}}}}{{#if:{{{opt7|}}}|<nowiki/> | {{!}}align=center style="background:#DADADA" width=200px height=50px {{#if:{{{top|}}}|valign=top}}{{!}}''{{{opt6}}}}}{{#if:{{{opt7|}}}|<nowiki/> | ||
{{!}}align=center style="background:#DADADA" width=200px height=50px{{!}}''{{{opt7}}}}}{{#if:{{{opt8|}}}|<nowiki/> | {{!}}align=center style="background:#DADADA" width=200px height=50px {{#if:{{{top|}}}|valign=top}}{{!}}''{{{opt7}}}}}{{#if:{{{opt8|}}}|<nowiki/> | ||
{{!}}align=center style="background:#DADADA" width=200px height=50px{{!}}''{{{opt8}}}}}{{#if:{{{opt9|}}}|<nowiki/> | {{!}}align=center style="background:#DADADA" width=200px height=50px {{#if:{{{top|}}}|valign=top}}{{!}}''{{{opt8}}}}}{{#if:{{{opt9|}}}|<nowiki/> | ||
{{!-}}<nowiki/> | {{!-}}<nowiki/> | ||
{{!}}align=center style="background:#DADADA" width=200px height=50px{{!}}''{{{opt9}}}}}{{#if:{{{opt10|}}}|<nowiki/> | {{!}}align=center style="background:#DADADA" width=200px height=50px {{#if:{{{top|}}}|valign=top}}{{!}}''{{{opt9}}}}}{{#if:{{{opt10|}}}|<nowiki/> | ||
{{!}}align=center style="background:#DADADA" width=200px height=50px{{!}}''{{{opt10}}}}}{{#if:{{{opt11|}}}|<nowiki/> | {{!}}align=center style="background:#DADADA" width=200px height=50px {{#if:{{{top|}}}|valign=top}}{{!}}''{{{opt10}}}}}{{#if:{{{opt11|}}}|<nowiki/> | ||
{{!}}align=center style="background:#DADADA" width=200px height=50px{{!}}''{{{opt11}}}}}{{#if:{{{opt12|}}}|<nowiki/> | {{!}}align=center style="background:#DADADA" width=200px height=50px {{#if:{{{top|}}}|valign=top}}{{!}}''{{{opt11}}}}}{{#if:{{{opt12|}}}|<nowiki/> | ||
{{!}}align=center style="background:#DADADA" width=200px height=50px{{!}}''{{{opt12}}}}} | {{!}}align=center style="background:#DADADA" width=200px height=50px {{#if:{{{top|}}}|valign=top}}{{!}}''{{{opt12}}}}} | ||
|} | |} | ||
|} | |} | ||
Line 60: | Line 60: | ||
|notes= | |notes= | ||
|top= | |||
}} | }} | ||
</pre> | </pre> | ||
Line 76: | Line 77: | ||
*'''<tt>opt1, opt2, etc.=</tt>''' The options available in the poll. | *'''<tt>opt1, opt2, etc.=</tt>''' The options available in the poll. | ||
*'''<tt>notes=</tt>''' Any additional explanations or [[MarioWiki:Trivia|trivia]] about a poll. You do not need to add this parameter if you feel that additional information isn't needed. | *'''<tt>notes=</tt>''' Any additional explanations or [[MarioWiki:Trivia|trivia]] about a poll. You do not need to add this parameter if you feel that additional information isn't needed. | ||
*'''<tt>top=</tt>''' Put anything here (preferrably an indicative "y" or "yes") to align the content in all '''<tt>opt</tt>''' parameters at the top of their box. By default, said content is aligned at the center of a box, but it gets ugly on devices with smaller screens where boxes are narrower and their content is squeezed to different levels. The '''<tt>top</tt>''' parameter solves this by bringing everything to the same level. | |||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> |
Revision as of 14:12, August 23, 2020
|- |align=center valign=top|[[File:|138px]] |valign=top style="padding-top:22px"|
[[File:|600px]]
|
|valign=top style="padding-top:53px"|
|valign=top style="padding-top:62px"|[]
Code
{{PlayNintendoPoll |name= |desc1= |desc2= |link= |archive= |preview= |banner= |question= |opt1= |opt2= |opt3= |opt4= |opt5= |opt6= |opt7= |opt8= |opt9= |opt10= |opt11= |opt12= |notes= |top= }}
Usage
This template is used to quickly format entries within a table on the List of Play Nintendo opinion polls page. Below are explanations for the purpose of each parameter in the template.
- name= The name of the web page that hosts the poll.
- desc1= The headline written in bold above the poll on Play Nintendo.
- desc2= The poll's description written in the colored space above it on Play Nintendo.
- link= The link to the poll.
- archive= A link to an archive of the poll. Web pages can be manually archived using a digital archive website such as Wayback Machine. Archiving a poll is recommended to prove its legimitacy in the eventuality that Nintendo takes it down from their own website.
- preview= The square picture used to represent the poll in Play Nintendo's search suggestions.
- banner= The picture shown before a poll's question.
- question= The question presented in the poll.
- opt1, opt2, etc.= The options available in the poll.
- notes= Any additional explanations or trivia about a poll. You do not need to add this parameter if you feel that additional information isn't needed.
- top= Put anything here (preferrably an indicative "y" or "yes") to align the content in all opt parameters at the top of their box. By default, said content is aligned at the center of a box, but it gets ugly on devices with smaller screens where boxes are narrower and their content is squeezed to different levels. The top parameter solves this by bringing everything to the same level.