Template talk:TournamentInfobox: Difference between revisions
m (→Color) |
mNo edit summary |
||
Line 12: | Line 12: | ||
For example, the following code: | For example, the following code: | ||
<pre>{{TournamentInfobox|color=ground | <pre>{{TournamentInfobox | ||
|color=ground | |||
|textcolor=000 | |||
|name=Driftveil Tournament | |name=Driftveil Tournament | ||
|japname=ホドモエ トーナメント | |japname=ホドモエ トーナメント | ||
Line 21: | Line 23: | ||
Will give: | Will give: | ||
{{TournamentInfobox|color=ground | {{TournamentInfobox | ||
|color=ground | |||
|textcolor=fff | |||
|name=Driftveil Tournament | |name=Driftveil Tournament | ||
|japname=ホドモエ トーナメント | |japname=ホドモエ トーナメント | ||
Line 90: | Line 94: | ||
|} | |} | ||
::Added, although I shortened one of the parameter names. "color" now determines the header and background colours, while "textcolor" determines the text colour. <span class="sc">[[User:Werdnae|<span style="color:#2D4B98;">Werdnae</span>]]</span> <small>[[User talk:Werdnae|<span style="color:#009000;">(talk)</span>]]</small> 09:52, 8 November 2012 (UTC) | ::Added, although I shortened one of the parameter names. "color" now determines the header and background colours, while "textcolor" determines the text colour. <span class="sc">[[User:Werdnae|<span style="color:#2D4B98;">Werdnae</span>]]</span> <small>[[User talk:Werdnae|<span style="color:#009000;">(talk)</span>]]</small> 09:52, 8 November 2012 (UTC) | ||
{{-}} | |||
==Japanese only tournaments== | |||
{| width=250px; style="float:right; {{roundy|10px}} border: 2px solid #{{{{{color|gold}}} color dark}}; background: #{{{{{color|gold}}} color}};" | |||
| | |||
{| style="{{roundy|10px}} background: #{{{{{headercolor|gold}}} color dark}};" width=100% | |||
! colspan="2" style="{{roundy|10px}} background: #{{{{{headercolor|gold}}} color light}};" | {{color|{{{textcolor|fff}}}|<big>{{{japname|ジュニアせかいおうじゃに いどめ!}}}'''</big><br><small>''{{{japroman|Challenge the Junior World Champion!}}}''</small>}} | |||
|} | |||
|- | |||
| | |||
{| width=100% style="{{roundy|10px}} background: #ddd;" | |||
| | |||
{| width=100% style="{{roundy|8px}} background: #fff;" | |||
! width=50% style="text-align:left;" | Battle Rules: | |||
| style="text-align:right;" | {{{type|}}} | |||
|- | |||
| colspan=2 style="text-align:left;" | {{{typedesc|Double Battle. Use four Pokémon.<br>Levels will be set to Lv. 50.<br>No duplicate Pokémon or held items.}}} | |||
|- style="background: #ddd;" | |||
| colspan="2" | | |||
|- | |||
! style="text-align:left;" colspan=2 | Tournament: | |||
|- | |||
| colspan=2 | {{{desc|Battle the Top 4 Finalists from the<br>2012 Pokémon World Championships!}}} | |||
|} | |||
|} | |||
|} | |||
This is for when the tournament does not have a revealed English name. By the way, now would be a good time to increase the width of the template by quite a few pixels. --[[User:Abcboy|Abcboy]] ([[User talk:Abcboy|talk]]) 00:24, 9 November 2012 (UTC) |
Revision as of 00:24, 9 November 2012
Parameters
Always use the format below.
- color: Color scheme. Should be the same as on Template:Pokémon World Tournaments.
- name: Self-explanatory.
- japname: The Japanese name.
- japroman: The Japanese translation.
- type: Single, Double, or Rotation? Only use on Download Tournaments.
- typedesc: Should be directly from game.
- desc: Same thing. One sentence.
Example
For example, the following code:
{{TournamentInfobox |color=ground |textcolor=000 |name=Driftveil Tournament |japname=ホドモエ トーナメント |japroman={{tt|Hodomoe|Driftveil}} Tournament |type= |typedesc=You may use any Pokémon or held items of your choice. For these battles, all Pokémon will be set to Level 25. |desc=Driftveil Tournament is a tournament where anything goes.}}
Will give:
| |||||||||||
|
Comments
Is there a reason why this is fixed to 250 pixels in width? Most infoboxes around the site are set at 30% screenwidth. The infobox comes out looking very skinny and long on some pages (for example, Champions Tournament). —darklordtrom 22:07, 29 October 2012 (UTC)
- Maybe its because I have a widescreen display? This is how it would look:
| |||||||||||
|
On mine, 30% is way too big. My screen is 1600 by 900 at 17 inches. You can change it, but on mine it's way too big. --Abcboy (talk) 22:15, 29 October 2012 (UTC)
- Does anyone else have an opinion? It looks odd to me that this infobox is thinner than the others, but I don't want to go changing it if everyone's happy. —darklordtrom 04:47, 7 November 2012 (UTC)
Color
How should the colors behind the headers and other text be changed, because that would require the text to change colors? Lady Ariel 04:13, 7 November 2012 (UTC)
- At the moment the colors there remain the same, and I don't want to update every single tournament page anytime soon. If it did, I would make parameters called "headercolor" and "textcolor", and the text would be the hex in "textcolor" while "headercolor" would change the border and the inner. --Abcboy (talk) 04:24, 7 November 2012 (UTC)
| |||||||||||
|
Japanese only tournaments
| |||||||||||
|
This is for when the tournament does not have a revealed English name. By the way, now would be a good time to increase the width of the template by quite a few pixels. --Abcboy (talk) 00:24, 9 November 2012 (UTC)