Template:Play Nintendo table row: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
No edit summary
Line 27: Line 27:
{{!}}align=center style="background:#DADADA" width=200px height=50px {{#if:{{{top|}}}|valign=top}}{{!}}''{{{opt12}}}}}
{{!}}align=center style="background:#DADADA" width=200px height=50px {{#if:{{{top|}}}|valign=top}}{{!}}''{{{opt12}}}}}
|}
|}
{{#if:{{{download|}}}|<span style="background:white;border:2px solid yellow;font-size:19px">'''''{{{download}}}'''''</span>}}<br>{{{printables|}}}<br>{{#if:{{{notes|}}}|<br>{{{notes}}}}}
{{#if:{{{download|}}}|<span style="background:white;border:2px solid yellow;font-size:19px">'''''{{{download}}}'''''</span>}}<br>{{{printables|}}}<br><br>{{#if:{{{notes|}}}|{{{notes}}}}}
|}
|}
{{{instructions|}}}
{{{instructions|}}}
Line 33: Line 33:
|valign=top style="padding-top:62px"|[{{{link|}}}]<br>{{#if:{{{archive|}}}|[{{{archive}}} <small>archive</small>]}}{{br}}<noinclude>
|valign=top style="padding-top:62px"|[{{{link|}}}]<br>{{#if:{{{archive|}}}|[{{{archive}}} <small>archive</small>]}}{{br}}<noinclude>


==Code==
==Usage==
This template is used to quickly format rows within tables on [[Play Nintendo]]-related pages. Below are explanations for the purpose of each parameter in the template, with specific parameters and codes presented in separate sections.
 
*'''<tt>name=</tt>''' The name of the web page that hosts the entry.
*'''<tt>desc1=</tt>''' The headline written in bold above the entry on Play Nintendo.
*'''<tt>desc2=</tt>''' The entry's description written in the colored space above it on Play Nintendo.
*'''<tt>link=</tt>''' The link to the entry.
*'''<tt>archive=</tt>''' A link to an archive of the entry. Web pages can be manually archived using a digital archive website such as [https://archive.org/web/ Wayback Machine]. Archiving an entry is recommended to prove its legimitacy in the eventuality that Nintendo takes it down from their own website.
*'''<tt>thumb=</tt>''' The square thumbnail used to represent the poll in Play Nintendo's search suggestions.
*'''<tt>banner=</tt>''' The picture shown before an entry's question.
*'''<tt>anchor=</tt>''' Used to link to specific polls. Normally, you don't have to use this parameter since '''<tt>name</tt>''' is already used as an anchor by default. However, some entry names may contain special characters such as "|" which conflict with the Wiki markup, and thus cannot be used when linking to a entry. If this situation arises, the '''<tt>anchor</tt>''' parameter allows you to type in an alternative anchor while '''<tt>name</tt>''' is reserved for the entry's proper name.
*'''<tt>notes=</tt>''' Any additional explanations or [[MarioWiki:Trivia|trivia]] about an entry. You do not need to add this parameter if you feel that additional information isn't needed.
 
===Opinion poll parameters===
The following parameters and code are to be used on the [[List of Play Nintendo opinion polls]] page.
*'''<tt>question=</tt>''' The question presented in the poll.
*'''<tt>opt1, opt2, etc.=</tt>''' The options available in the poll.
*'''<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. Content that takes up a varying number of rows can look chaotic if it's aligned at the center by default; the '''<tt>top</tt>''' parameter fixes this by bringing everything to the same level in their boxes.
 
<pre>
<pre>
{{PlayNintendoTable
{{PlayNintendoTable
Line 62: Line 80:
</pre>
</pre>


==Usage==
===Printable parameters===
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.
The following parameters and code are to be used on pages with printables, such as [[List of miscellaneous Play Nintendo printables]].
*'''<tt>download=</tt>''' An official Play Nintendo download link for the printable.
*'''<tt>printables=</tt>''' A picture of the printable as presented on Play Nintendo.
*'''<tt>instructions=</tt>''' Instructions from Play Nintendo on using the printable material.
 
<pre>
{{PlayNintendoTable
|name=
|desc1=
|desc2=
|link=
|archive=
|thumb=
|banner=
|download=
|printable=
|notes=
|instructions=
|anchor=
}}
</pre>


*'''<tt>name=</tt>''' The name of the web page that hosts the poll.
*'''<tt>desc1=</tt>''' The headline written in bold above the poll on Play Nintendo.
*'''<tt>desc2=</tt>''' The poll's description written in the colored space above it on Play Nintendo.
*'''<tt>link=</tt>''' The link to the poll.
*'''<tt>archive=</tt>''' A link to an archive of the poll. Web pages can be manually archived using a digital archive website such as [https://archive.org/web/ Wayback Machine]. Archiving a poll is recommended to prove its legimitacy in the eventuality that Nintendo takes it down from their own website.
*'''<tt>thumb=</tt>''' The square thumbnail used to represent the poll in Play Nintendo's search suggestions.
*'''<tt>banner=</tt>''' The picture shown before a poll's question.
*'''<tt>question=</tt>''' The question presented in the poll.
*'''<tt>opt1, opt2, etc.=</tt>''' The options available in the poll.
*'''<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. Content that takes up a varying number of rows can look chaotic if it's aligned at the center by default; the '''<tt>top</tt>''' parameter fixes this by bringing everything to the same level in their boxes.
*'''<tt>anchor=</tt>''' Used to link to specific polls. Normally, you don't have to use this parameter since '''<tt>name</tt>''' is already used as an anchor by default. However, some poll names may contain special characters such as "|" which conflict with the Wiki markup, and thus cannot be used when linking to a poll. If this situation arises, the '''<tt>anchor</tt>''' parameter allows you to type in an alternative anchor while '''<tt>name</tt>''' is reserved for the poll's proper name.
*'''<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.


[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Revision as of 22:16, December 23, 2020

|- |align=center valign=top|[[File:|138px]] |align=left valign=top style="padding-top:22px"|






|valign=top style="padding-top:53px"|

|valign=top style="padding-top:62px"|[]

Usage

This template is used to quickly format rows within tables on Play Nintendo-related pages. Below are explanations for the purpose of each parameter in the template, with specific parameters and codes presented in separate sections.

  • name= The name of the web page that hosts the entry.
  • desc1= The headline written in bold above the entry on Play Nintendo.
  • desc2= The entry's description written in the colored space above it on Play Nintendo.
  • link= The link to the entry.
  • archive= A link to an archive of the entry. Web pages can be manually archived using a digital archive website such as Wayback Machine. Archiving an entry is recommended to prove its legimitacy in the eventuality that Nintendo takes it down from their own website.
  • thumb= The square thumbnail used to represent the poll in Play Nintendo's search suggestions.
  • banner= The picture shown before an entry's question.
  • anchor= Used to link to specific polls. Normally, you don't have to use this parameter since name is already used as an anchor by default. However, some entry names may contain special characters such as "|" which conflict with the Wiki markup, and thus cannot be used when linking to a entry. If this situation arises, the anchor parameter allows you to type in an alternative anchor while name is reserved for the entry's proper name.
  • notes= Any additional explanations or trivia about an entry. You do not need to add this parameter if you feel that additional information isn't needed.

Opinion poll parameters

The following parameters and code are to be used on the List of Play Nintendo opinion polls page.

  • question= The question presented in the poll.
  • opt1, opt2, etc.= The options available in the poll.
  • top= Put anything here (preferrably an indicative "y" or "yes") to align the content in all opt parameters at the top of their box. Content that takes up a varying number of rows can look chaotic if it's aligned at the center by default; the top parameter fixes this by bringing everything to the same level in their boxes.
{{PlayNintendoTable
|name=
|desc1=
|desc2=
|link=
|archive=
|thumb=
|banner=
|question=
|opt1=
|opt2=
|opt3=
|opt4=
|opt5=
|opt6=
|opt7=
|opt8=
|opt9=
|opt10=
|opt11=
|opt12=
|top=
|anchor=
|notes=
}}

Printable parameters

The following parameters and code are to be used on pages with printables, such as List of miscellaneous Play Nintendo printables.

  • download= An official Play Nintendo download link for the printable.
  • printables= A picture of the printable as presented on Play Nintendo.
  • instructions= Instructions from Play Nintendo on using the printable material.
{{PlayNintendoTable
|name=
|desc1=
|desc2=
|link=
|archive=
|thumb=
|banner=
|download=
|printable=
|notes=
|instructions=
|anchor=
}}