Template:CharLinks: Difference between revisions

Template page
No edit summary
(testing inline links)
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="center" style="display:inline-block;">  
<div class="center" style="text-align:center;">  
<!-- Change above style to 'style:"text-align:center"' and move 'display:inline-block' to bottom div keep buttons next to CharData box -->
<!-- Change above style to 'style:"text-align:center"' and move 'display:inline-block' to bottom div keep buttons next to CharData box -->
<div class="center" style="width:auto; margin-left:auto; margin-right:auto;">
<div class="center" style="width:auto; margin-left:auto; margin-right:auto;display:inline-block">
{{Button |Overview |{{{charMainPage}}} }}{{Button |Combos |{{{charMainPage}}}/Combos }}{{Button |Okizeme |{{{charMainPage}}}/Okizeme }}{{Button |Strategy/Counter Strategy |{{{charMainPage}}}/Strategy}}<br/><br/>
{{Button |Overview |{{{charMainPage}}} }}<br/><br/>
{{#if:{{{videos|}}}|{{Button |Videos |external={{{videos|}}} }}|}}{{Button |Forums |external={{{forums|http://www.dustloop.com/forums}}} }}{{#if:{{{discord|}}}|{{Button |Discord |external={{{discord|}}} }}|}}{{Button |Frame Data |{{{charMainPage}}}/Frame Data}}
{{Button |Combos |{{{charMainPage}}}/Combos }}{{#if:{{{okizeme|}}}|{{Button |Okizeme|{{{charMainPage}}}/Okizeme}}|}}{{Button |Strategy/Counter Strategy |{{{charMainPage}}}/Strategy}}<br/><br/>
{{#if:{{{videos|}}}|{{Button |Videos |external={{{videos|}}}}}|}}{{#if:{{{forums|}}}|{{Button |Forums |external={{{forums|}}}}}|}}{{#if:{{{discord|}}}|{{Button |Discord |external={{{discord|}}}}}|}}{{Button |Full Frame Data |{{{charMainPage}}}/Frame Data}}
</div>
</div>
</div>
</div>
<noinclude>
<noinclude>
<!--
<!--
<div class="center" style="width:auto; margin-left:auto; margin-right:auto;">
{{Button |Where do I start? |{{{charMainPage}}}/Accessibility}
[[File:Overview_Button.png|250px|link={{{charMainPage}}}]][[File:Combos_Button.png|250px|link={{{charMainPage}}}/Combos]][[File:Strategy_Button.png|250px|link={{{charMainPage}}}/Strategy]]
 
{{#if: {{{videos|}}}|[[File:VideoDatabase_Button.png|250px|link={{{videos|}}}]]|}}[[File:Forum_Button.png|250px|link={{#if: {{{forums|}}}|{{{forums|}}}|http://www.dustloop.com}}]]
[[File:FrameData_Button.png|250px|link={{{charMainPage}}}/Frame Data]]
</div>
-->
-->


Line 29: Line 26:
===Examples===
===Examples===
;Links to XRD Ky's subpages
;Links to XRD Ky's subpages
{{CharLinks2
{{CharLinks
|charMainPage=GGXRD/Ky Kiske
|charMainPage=GGXRD/Ky Kiske
|videos=http://horibuna.web.fc2.com/GGXrd/GGXrd_KY.html
|videos=http://horibuna.web.fc2.com/GGXrd/GGXrd_KY.html
Line 35: Line 32:
|discord=http://www.fakeurl.com
|discord=http://www.fakeurl.com
}}
}}
;Links to BBCPE Ragna's subpages, without video, forums or discord links. Forums automatically goes to main page of forums
;Links to BBCPE Ragna's subpages, without video, forums or discord links. Forums and Discord buttons are removed
{{CharLinks2
{{CharLinks
|charMainPage=BBCPE/Ragna the Bloodedge
|charMainPage=BBCPE/Ragna the Bloodedge
}}
}}
</noinclude>
</noinclude>

Revision as of 00:54, 18 June 2020

[[{{{charMainPage}}} |Overview ]]

[[{{{charMainPage}}}/Combos |Combos ]] [[{{{charMainPage}}}/Strategy|Strategy/Counter Strategy ]]

[[{{{charMainPage}}}/Frame Data|Full Frame Data ]]


Usage

Creates big images as links to various character links. See example for Ky below. Works with links within the dustloop wiki as well as foreign links to anywhere else on the web. Assumes that strategy/moves/combos/frame data are all under the character's main page.

charMainPage
link to character's overview page. Used to build links to all of the sub pages (like frame data, combos, etc).
For example when charMainPage=GGXRD/Ky Kiske will assume that his combos page is GGXRD/Ky Kiske/Combos.
videos
link to videos page. if left blank, no videos link will appear
forums
link to forums page
discord
link to discord

Examples

Links to XRD Ky's subpages
Links to BBCPE Ragna's subpages, without video, forums or discord links. Forums and Discord buttons are removed