Difference between revisions of "Template:Main Page layout"
m (poot) |
m |
||
(34 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{Ambox | style = width: 100%; margin: | + | <noinclude>{{Ambox|style=width:100%; margin:0px 0px 0px;|image=Warning blue.png|type=notice-2 |
− | | contents = '''To use this template please see the [[Template talk:Main Page layout|talk page]].''' | + | | contents='''To use this template please see the [[Template talk:Main Page layout|talk page]].''' |
}}[[Category:Main Page| ]]</noinclude><!-- | }}[[Category:Main Page| ]]</noinclude><!-- | ||
Line 8: | Line 8: | ||
--> __NOTOC__ | --> __NOTOC__ | ||
− | {| class="mp-content-table plainlinks" style="margin: | + | {| class="mp-content-table plainlinks" style="margin-top:7px; margin-bottom:7px;" |
| style="width:61%; color:#000;" |<!-- | | style="width:61%; color:#000;" |<!-- | ||
− | + | // WELCOME BANNER MINI-TABLE | |
--> | --> | ||
{| style="width:350px; border:none; background:none;" | {| style="width:350px; border:none; background:none;" | ||
| style="width:350px; text-align:center; white-space:nowrap; color:#000;" | | | style="width:350px; text-align:center; white-space:nowrap; color:#000;" | | ||
− | <h2 style="margin: | + | <h2 style="margin:0; margin-top:2px; border:none; font-size:95%;">{{{welcome-text-1}}}</h2> |
− | <h1 style="margin: | + | <h1 style="margin:0; font-size:162%; border:none; padding:2px; color:#000;"><strong>{{{welcome-text-title}}}</strong></h1> |
− | <h2 style="margin: | + | <h2 style="margin:0; margin-top:2px; border:none; font-size:95%;">{{{welcome-text-2}}}</h2> |
− | <h3 id="articlecount" style="margin: | + | <h3 id="articlecount" style="margin:0px; width:100%; text-align:center; font-size:85%; font-weight: normal;">{{{welcome-text-3}}}</h3> |
|}<!-- | |}<!-- | ||
− | + | // WELCOME BANNER LINK LIST | |
--> | --> | ||
| style="width:13%; font-size:95%;" | <!-- 20% = 39 / 2. 39 = 100 - 61 (above). Adjust to 13% if 3 columns --> | | style="width:13%; font-size:95%;" | <!-- 20% = 39 / 2. 39 = 100 - 61 (above). Adjust to 13% if 3 columns --> | ||
− | * [ | + | * [https://www.teamfortress.com/ {{{welcome-link-website}}}] |
− | * [ | + | * [https://steamcommunity.com/app/440/discussions {{{welcome-link-forum}}}] |
* [[Patches{{if lang}}|{{{welcome-link-updates}}}]] | * [[Patches{{if lang}}|{{{welcome-link-updates}}}]] | ||
| style="width:13%; font-size:95%;" | | | style="width:13%; font-size:95%;" | | ||
− | * [ | + | * {{#if:{{{welcome-link-bilibili|}}}|[https://space.bilibili.com/531557387 {{{welcome-link-bilibili}}}] / |}}[https://www.youtube.com/user/OfficialTF2Wiki {{{welcome-link-youtube}}}] |
− | * [{{{welcome-link-steam-url| | + | * [{{{welcome-link-steam-url|https://steamcommunity.com/groups/OTFWiki}}} {{{welcome-link-steam}}}] |
* [[Team Fortress Wiki:Discussion|{{{welcome-link-discussion}}}]] | * [[Team Fortress Wiki:Discussion|{{{welcome-link-discussion}}}]] | ||
| style="width:13%; font-size:95%;" | | | style="width:13%; font-size:95%;" | | ||
Line 39: | Line 39: | ||
|}<!-- | |}<!-- | ||
− | // | + | // LANGUAGE BANNER |
--> | --> | ||
− | {| class="mp-content-table" style="text-align:center; font-size:90%; direction: ltr !important;" | + | {| class="mp-content-table" style="margin-top: 7px; text-align:center; font-size:90%; direction: ltr !important;" |
− | | <span style="font-size: | + | | <span style="font-size:100%;">'''[[Main Page|English]]'''<!-- |
--> '''·''' [[Main Page/ru|<span title="{{lang name|name|ru}}">{{#language:ru}}</span>]]<!-- | --> '''·''' [[Main Page/ru|<span title="{{lang name|name|ru}}">{{#language:ru}}</span>]]<!-- | ||
Line 58: | Line 58: | ||
--></span><br /><!-- | --></span><br /><!-- | ||
− | --> | + | -->[[Main Page/cs|<span title="{{lang name|name|cs}}">{{#language:cs}}</span>]]<!-- |
− | |||
--> '''·''' [[Main Page/da|<span title="{{lang name|name|da}}">{{#language:da}}</span>]]<!-- | --> '''·''' [[Main Page/da|<span title="{{lang name|name|da}}">{{#language:da}}</span>]]<!-- | ||
--> '''·''' [[Main Page/hu|<span title="{{lang name|name|hu}}">{{#language:hu}}</span>]]<!-- | --> '''·''' [[Main Page/hu|<span title="{{lang name|name|hu}}">{{#language:hu}}</span>]]<!-- | ||
Line 76: | Line 75: | ||
<!-- | <!-- | ||
− | // | + | // CLASSES NAV TABLE |
-->{{Navbox | -->{{Navbox | ||
− | | bodystyle = width:100%; text-align:center; font-size:90%; border:1px solid #79542B; <!-- // Manual workaround as CSS classes isn't working with Navbox --> | + | | bodystyle = width:100%; margin-bottom:7px; text-align:center; font-size:90%; border:1px solid #79542B; margin-top: 7px !important; <!-- // Manual workaround as CSS classes isn't working with Navbox --> |
| list1 = {{Navbox with columns | child | | list1 = {{Navbox with columns | child | ||
Line 86: | Line 85: | ||
| bodystyle = text-align: center; | | bodystyle = text-align: center; | ||
− | | colheaderstyle = background: #fd9; padding: | + | | colheaderstyle = background: #fd9; padding: 5px 0px 0px; |
| colstyle = text-align: center; font-size: 120%; font-weight: bold; | | colstyle = text-align: center; font-size: 120%; font-weight: bold; | ||
− | | col1header = [[File: | + | | col1header = [[File:{{Main Page class portrait|Scout}}|link=Scout{{if lang}}|84px]] |
− | | col2header = [[File: | + | | col2header = [[File:{{Main Page class portrait|Soldier}}|link=Soldier{{if lang}}|84px]] |
− | | col3header = [[File: | + | | col3header = [[File:{{Main Page class portrait|Pyro}}|link=Pyro{{if lang}}|84px]] |
− | | col4header = [[File: | + | | col4header = [[File:{{Main Page class portrait|Demoman}}|link=Demoman{{if lang}}|84px]] |
− | | col5header = [[File: | + | | col5header = [[File:{{Main Page class portrait|Heavy}}|link=Heavy{{if lang}}|84px]] |
− | | col6header = [[File: | + | | col6header = [[File:{{Main Page class portrait|Engineer}}|link=Engineer{{if lang}}|84px]] |
− | | col7header = [[File: | + | | col7header = [[File:{{Main Page class portrait|Medic}}|link=Medic{{if lang}}|84px]] |
− | | col8header = [[File: | + | | col8header = [[File:{{Main Page class portrait|Sniper}}|link=Sniper{{if lang}}|84px]] |
− | | col9header = [[File: | + | | col9header = [[File:{{Main Page class portrait|Spy}}|link=Spy{{if lang}}|84px]] |
| col1 = [[Scout{{if lang}}|{{{class-scout-title|{{class name|Scout}}}}}]] | | col1 = [[Scout{{if lang}}|{{{class-scout-title|{{class name|Scout}}}}}]] | ||
Line 113: | Line 112: | ||
}}<!-- | }}<!-- | ||
− | // BEGIN | + | // BEGIN INDEX |
--> | --> | ||
− | {| style="width:100%; background:none; border:none | + | {| style="width:100%; margin-bottom:7px; background:none; border:none; padding:none;" cellspacing="0" cellpadding="0" |
|- | |- | ||
| style="width:50%; background:#FEFBF6; border:1px solid #79542B;" valign="top" | | | style="width:50%; background:#FEFBF6; border:1px solid #79542B;" valign="top" | | ||
− | {| style=" | + | {| style="width:100%;" |
| <div class="mp-content-header-alt">{{{box1-index-title}}}</div> | | <div class="mp-content-header-alt">{{{box1-index-title}}}</div> | ||
|- | |- | ||
− | + | |<!-- | |
− | + | // INDEX TOP ROW | |
-->{{Navbox with columns | border = none | fullwidth = true | -->{{Navbox with columns | border = none | fullwidth = true | ||
− | | bodystyle = background: none; border: none; padding-bottom: | + | | bodystyle = background: none; border: none; padding-bottom: 1px; margin-top:7px; |
| colheaderstyle = text-align: center; background: none; | | colheaderstyle = text-align: center; background: none; | ||
| colstyle = text-align: center; font-size: 110%; font-weight:bold; | | colstyle = text-align: center; font-size: 110%; font-weight:bold; | ||
− | |||
| colwidth = 33%<!-- | | colwidth = 33%<!-- | ||
− | |||
− | |||
--> | --> | ||
Line 146: | Line 142: | ||
}}<!-- | }}<!-- | ||
− | + | // INDEX BOTTOM ROW | |
-->{{Navbox with columns | border = none | fullwidth = true | -->{{Navbox with columns | border = none | fullwidth = true | ||
− | | bodystyle = background:none; border:none; padding-top: | + | | bodystyle = background:none; border:none; padding-top:1px; padding-bottom:1px; |
| colheaderstyle = text-align: center; background: none; | | colheaderstyle = text-align: center; background: none; | ||
| colstyle = text-align: center; font-size: 110%; font-weight:bold; | | colstyle = text-align: center; font-size: 110%; font-weight:bold; | ||
Line 168: | Line 164: | ||
}}<!-- | }}<!-- | ||
− | + | // INDEX POPULAR TOPICS | |
+ | |||
+ | --><center><hr style="background:#B47128; margin-left:11px; margin-right:11px; color:none; border:none; text-align:center;" /></center><!-- | ||
-->{{Navbox with columns | border = none | fullwidth = true | -->{{Navbox with columns | border = none | fullwidth = true | ||
− | | bodystyle = background:none; border:none | + | | bodystyle = background:none; border:none; |
| colheaderstyle = text-align: center; | | colheaderstyle = text-align: center; | ||
| colstyle = text-align: center; font-size: 110%; | | colstyle = text-align: center; font-size: 110%; | ||
− | | col1 = {{{box1-index-col1 | + | | col1 = {{{box1-index-col1}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| col2style = font-weight: bold; background:#FEF5E0; | | col2style = font-weight: bold; background:#FEF5E0; | ||
− | | col2 = {{{col2-heading|Trending topics:}}}<br />{{{box1-index-col2| | + | | col2 = {{{col2-heading|Trending topics:}}}<br />{{{box1-index-col2|{{Trending topics}}}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | col3 = {{{box1-index-col3 | + | | col3 = {{{box1-index-col3}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
Line 210: | Line 184: | ||
|}<!-- | |}<!-- | ||
− | + | // FEATURED ARTICLE | |
--> | --> | ||
− | {| style=" | + | {| style="width:100%;" |
− | | colspan="2 | + | | colspan="2" | <div class="mp-content-header-alt" style="border-top: 1px solid #79542B;">{{{box2-fa-title}}} — {{{box2-fa-article|[[{{FeaturedArticle/article/{{FeaturedArticle/list|{{CURRENTYEAR}}-{{CURRENTMONTH1}}}}|type=name}}|{{FeaturedArticle/article/{{FeaturedArticle/list|{{CURRENTYEAR}}-{{CURRENTMONTH1}}}}|type=display}}]]}}}</div> |
|- | |- | ||
− | | style="padding: | + | | style="padding:10px;" | {{{box2-fa-description|{{FeaturedArticle/article/{{FeaturedArticle/list|{{CURRENTYEAR}}-{{CURRENTMONTH1}}}}|type=text}}}}} |
− | | style="width:auto;" | {{FeaturedArticle{{ | + | | style="width:auto;" | {{{box2-fa-image|{{FeaturedArticle/article/{{FeaturedArticle/list|{{CURRENTYEAR}}-{{CURRENTMONTH1}}}}|type=image}}}}} |
− | |- | + | <!-- Clear image being float:right --> |
− | + | <div style="clear: both;"></div> | |
− | -->[[{{FeaturedArticle|type=name}}|'''''Continue reading''''']]{{n}}<!-- | + | |}<!-- |
+ | |||
+ | --><center><hr style="background:#B47128; margin-left:3px; margin-right:3px; margin-bottom:-3px; color:none; border:none; text-align:center;" /></center><!-- | ||
+ | |||
+ | --> | ||
+ | {| style="width:100%;" | ||
+ | ! style="font-size:95%; padding:10px;" colspan="2" | {{{box2-fa-links|<!-- | ||
+ | -->[[{{FeaturedArticle/article/{{FeaturedArticle/list|{{CURRENTYEAR}}-{{CURRENTMONTH1}}}}|type=name}}|'''''Continue reading''''']]{{n}}<!-- | ||
-->[[Team Fortress Wiki:Featured articles|Featured article project]]{{n}}<!-- | -->[[Team Fortress Wiki:Featured articles|Featured article project]]{{n}}<!-- | ||
-->[[Template:FeaturedArticle|Previously featured]] | -->[[Template:FeaturedArticle|Previously featured]] | ||
Line 233: | Line 214: | ||
| style="width:50%; background:#FEFBF6; border:1px solid #79542B;" valign="top" | <!-- | | style="width:50%; background:#FEFBF6; border:1px solid #79542B;" valign="top" | <!-- | ||
− | + | // LATEST UPDATES | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
--> | --> | ||
− | {| class="plainlinks" style=" | + | {| class="plainlinks" style="width:100%;" |
− | | colspan="2 | + | | colspan="2" | <div class="mp-content-header-alt">{{{box3-updates-title}}}<div style="float:right;">[[File:Full Moon {{If full moon}} sml.png|30x30px|link=Full Moon{{if lang}}|{{{full-moon-icon-alt|Moon status}}}]]</div></div> |
|- | |- | ||
− | | colspan="2 | + | | colspan="2" | |
− | {| style="width:100%; background:none; border:none | + | {| style="width:100%; padding:15px; background:none; border:none; text-align:center;" cellspacing="0" class="plainlinks"<!-- |
− | + | // The following will come from Template:Latest updates. | |
--> | --> | ||
Line 266: | Line 236: | ||
| ({{Updates|type=blog-daysago}}) | | ({{Updates|type=blog-daysago}}) | ||
|} | |} | ||
− | {| style="width:100%; background:none; border:none | + | {| style="width:100%; background:none; border:none; padding-bottom:1px; text-align:center;" cellspacing="0" class="plainlinks" |
| colspan=2 | <hr style="background:#B47128; color:none; border:none; text-align:center;" /> | | colspan=2 | <hr style="background:#B47128; color:none; border:none; text-align:center;" /> | ||
|- | |- | ||
− | + | {{#ifexpr: {{#time:U|now}} < {{Updates|type=community-end}} | |
− | + | | <!-- Event in range, show event *and* latest recipient --> | |
− | + | {{!}} style="font-size:90%; padding:0.25em 0em; width:50%;" {{!}} <!-- | |
-->{{{box3-updates-text-latestwiki-cap|Latest [[Wiki Cap{{if lang}}|Wiki Cap]] [[List of Wiki Cap owners{{if lang}}|recipients]]:}}}<br />'''{{Updates|type=wiki-cap-recipient}}''' | -->{{{box3-updates-text-latestwiki-cap|Latest [[Wiki Cap{{if lang}}|Wiki Cap]] [[List of Wiki Cap owners{{if lang}}|recipients]]:}}}<br />'''{{Updates|type=wiki-cap-recipient}}''' | ||
+ | {{!}} style="font-size:90%; padding:0.20em 0em; width:50%;" {{!}} <!-- | ||
+ | -->{{{box3-updates-text-latestcommunity|Featured community event:}}}<br />'''[{{Updates|type=community-blog}} {{Updates|type=community-title}}]''' ({{#time: {{{box3-updates-text-latestcommunity-datefmt|M d}}} | @{{Updates|type=community-start}} | {{SUBPAGENAME}}}}{{{box3-updates-text-latestcommunity-daterange| – }}}{{#time: {{{box3-updates-text-latestcommunity-datefmt|M d}}} | @{{Updates|type=community-end}} | {{SUBPAGENAME}}}}) | ||
+ | | <!-- No featured event, show cap recipient instead. --> | ||
+ | {{!}} style="font-size:90%; padding:4px; width:100%;" {{!}} <!-- | ||
+ | -->{{{box3-updates-text-latestwiki-cap|Latest [[Wiki Cap{{if lang}}|Wiki Cap]] [[List of Wiki Cap owners{{if lang}}|recipients]]:}}}<br />'''{{Updates|type=wiki-cap-recipient}}''' | ||
+ | }} | ||
|- | |- | ||
| colspan=2 | <hr style="background:#B47128; color:none; border:none; text-align:center;" /> | | colspan=2 | <hr style="background:#B47128; color:none; border:none; text-align:center;" /> | ||
|} | |} | ||
|- | |- | ||
− | | | + | | style=padding:10px; colspan=2 | {{{box3-updates-contents|{{Current Events{{if lang}}}}}}} |
− | |}<!-- | + | |} <!-- |
− | + | // DID YOU KNOW | |
--> | --> | ||
− | {| style=" | + | {| style="width:100%;" |
− | | colspan="2 | + | | colspan="2" | <div class="mp-content-header-alt" style="border-top: 1px solid #79542B;">{{{box4-dyk-title}}}</div> |
|- | |- | ||
− | | style= | + | | style=padding:10px; | {{{box4-dyk-contents|{{Did you know/main}}}}} |
− | |- | + | |}<!-- |
− | + | ||
+ | --><center><hr style="background:#B47128; margin-left:3px; margin-right:3px; margin-bottom:-3px; color:none; border:none; text-align:center;" /></center><!-- | ||
+ | |||
+ | --> | ||
+ | {| style="width:100%;" | ||
+ | ! style="font-size:95%; padding:10px;" colspan="2" | {{{box4-dyk-links|<!-- | ||
-->[[Help:Did you know|Add a fact]]{{n}}<!-- | -->[[Help:Did you know|Add a fact]]{{n}}<!-- | ||
-->[[Template:Did you know|More "Did you know"]]{{n}}<!-- | -->[[Template:Did you know|More "Did you know"]]{{n}}<!-- | ||
Line 300: | Line 281: | ||
// END COLUMNS TABLE | // END COLUMNS TABLE | ||
− | // | + | // TEAM FORTRESS WIKI |
--> | --> | ||
− | {| class="mp-content-table" style=" | + | {| class="mp-content-table" style="margin-bottom:7px;" |
! class="mp-content-header" | {{{box5-wiki-title|Team Fortress Wiki}}} | ! class="mp-content-header" | {{{box5-wiki-title|Team Fortress Wiki}}} | ||
|- | |- | ||
− | + | | {{Navbox with columns | bodystyle = border: none;margin-top: 0 !important; | |
| colheaderstyle = font-size:105%; | | colheaderstyle = font-size:105%; | ||
− | + | | col1header = {{{box5-wiki-title3|Team Fortress Wiki}}} | |
− | + | | col1 = {{TFWiki navbar|child=true|bodystyle=width:100%; border:none;|bodystylemarginbottom=}} | |
− | + | | col2header = {{{box5-wiki-title2|How you can help}}} | |
− | | | + | | col2 = {{Navbox with columns |
− | | | ||
| border = child | fullwidth = true | colstyle = text-align: center; font-size: 105%; | | border = child | fullwidth = true | colstyle = text-align: center; font-size: 105%; | ||
| col1 = {{{box5-wiki-col1|<!-- | | col1 = {{{box5-wiki-col1|<!-- | ||
Line 332: | Line 312: | ||
}} | }} | ||
− | + | | list1 = {{CentralDiscussion|child=true}} | |
}} | }} | ||
+ | <!-- | ||
+ | |||
+ | --><center><hr style="background:#B47128; margin-bottom:-3px; width:100%; color:none; border:none; text-align:center;" /></center><!-- | ||
+ | |||
+ | --> | ||
|- | |- | ||
− | | style="font-size:95%; padding: | + | | style="font-size:95%; padding:10px; margin-top:1px; text-align:center;" | {{{box5-wiki-statistics|'''[[Special:Statistics|Team Fortress Wiki Statistics]]''': <!-- |
-->{{NUMBEROFARTICLES}} [[Special:AllPages|articles]]{{n}}<!-- | -->{{NUMBEROFARTICLES}} [[Special:AllPages|articles]]{{n}}<!-- | ||
-->{{NUMBEROFFILES}} [[:Category:Images|uploaded images & media]]{{n}}<!-- | -->{{NUMBEROFFILES}} [[:Category:Images|uploaded images & media]]{{n}}<!-- | ||
Line 344: | Line 329: | ||
|}<!-- | |}<!-- | ||
− | + | // VALVE WIKI NETWORK | |
− | + | // The following will come from {{VWN}}. | |
--> | --> | ||
− | {| class="mp-content-table plainlinks" | + | {| class="mp-content-table plainlinks" style="margin-bottom:7px;" |
! class="mp-content-header" colspan="5" | {{{box6-vwn-title}}} | ! class="mp-content-header" colspan="5" | {{{box6-vwn-title}}} | ||
|- | |- | ||
Line 354: | Line 339: | ||
|}<!-- | |}<!-- | ||
− | // | + | // COPYRIGHT |
--> | --> | ||
{| class="mp-content-table plainlinks" style="border:1px solid #aaa; margin:0; text-align:center; font-size:90%;" | {| class="mp-content-table plainlinks" style="border:1px solid #aaa; margin:0; text-align:center; font-size:90%;" | ||
− | | © | + | | © 2010–{{CURRENTYEAR}} [https://www.valvesoftware.com/ Valve Corporation]. All rights reserved. All trademarks are property of their respective owners in the US and other countries. See [[Team Fortress Wiki:Terms of Use|Terms of Use]] for details. |
|}<!-- | |}<!-- | ||
Latest revision as of 16:58, 16 October 2024
To use this template please see the talk page. |
|
English · русский · français · Deutsch · polski · português do Brasil · suomi · español · Nederlands · 中文(简体) · 中文(繁體) čeština · dansk · magyar · italiano · 日本語 · 한국어 · norsk · português · română · svenska · Türkçe |
|
|
Team Fortress Wiki | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||
Team Fortress Wiki Statistics: 74,407 articles – 171,318 uploaded images & media – 276,728 registered users – 19,092,399 edits since June 8, 2010 |
{{{box6-vwn-title}}} | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
© 2010–2024 Valve Corporation. All rights reserved. All trademarks are property of their respective owners in the US and other countries. See Terms of Use for details. |