Template:Nav: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Abates (talk | contribs)
Giving this a crack...
 
AzimuthAcolyte (talk | contribs)
mNo edit summary
 
(32 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{|class="tt1-navigation_franchise_box"
<includeonly>{|border="0" cellspacing="0" cellpadding="0" style="width: 100%;" class="tt1-navigation_franchise_wrapper"
|-valign="middle"
|
{{#tag:imagemap
|File:{{{image}}}{{!}}center{{!}}{{{imagesize|500x130px}}}
default {{#if:{{{franchisename|}}}|[[{{{franchise}}}|{{{franchisename|}}}]]|[[{{{franchise}}}]]}}
desc none
}}
|
{|class="tt1-navigation_franchise_box"
|-
|-
!style="text-align:center"|
!style="text-align:center"|{{#if:{{{continuityfamily|}}}|{{#if:{{{continuityfamilyname|}}}|[[{{{continuityfamily}}}|{{{continuityfamilyname|}}}]]|[[{{{continuityfamily|}}}]]}}|}}
{{#if:{{{continuityfamily|}}}|{{#if:{{{continuityfamilyname|}}}|[[{{{continuityfamily|}}}]]|[[{{{continuityfamily}}}|{{{continuityfamilyname|}}}]]}}|}}:
{|class="tt1-navigation_franchise" cellspacing="0" border="0" cellpadding="0"
{|class="tt1-navigation_franchise" cellspacing="0" border="0" cellpadding="0"
|-class="tt1-navigation_franchise_header tt1_secondarynav"
|-class="tt1-navigation_franchise_header tt1_secondarynav"
!class="tt1-navigation_franchise-prev tti_buttonlink"|{{#if:{{{prev|}}} | [[{{{prev|}}}|»]]}}
!class="tt1-navigation_franchise-prev tti_buttonlink"|{{#if:{{{prev|}}} | [[{{{prev|}}}|«]]}}
!''{{#if:{{{franchisetitle|}}}|[[{{{franchise}}}|{{{franchisetitle|}}}]]|[[{{{franchise}}}]]}}''
!''{{#if:{{{franchisename|}}}|[[{{{franchise}}}|{{{franchisename|}}}]]|[[{{{franchise}}}]]}}''
!class="tt1-navigation_franchise-next tti_buttonlink"|{{#if:{{{next|}}} | [[{{{next|}}}|»]]}}
!class="tt1-navigation_franchise-next tti_buttonlink"|{{#if:{{{next|}}} | [[{{{next|}}}|»]]}}
|- class="tt1_secondarynav"
| class="tti_buttonlink"|{{#if: {{{prev2|}}}|'''[[{{{prev2|}}}|&laquo;]]'''}}
| align="center" |{{{franchisename2|}}}
| class="tti_buttonlink" align="right"|{{#if: {{{next2|}}}|'''[[{{{next2|}}}|&raquo;]]'''}}
|- class="tt1_secondarynav"
| class="tti_buttonlink"|{{#if: {{{prev3|}}}|'''[[{{{prev3|}}}|&laquo;]]'''}}
| align="center" |{{{franchisename3|}}}
| class="tti_buttonlink" align="right"|{{#if: {{{next3|}}}|'''[[{{{next3|}}}|&raquo;]]'''}}
|-
|-
|colspan="3"|
|colspan="3"|
{|style="text-align:left;"
{|style="text-align:left; width: 100%"
|-valign="top"
|-valign="top" style="white-space: nowrap"
|
|
{{{c1|}}}
{{{c1|}}}
Line 19: Line 35:
|}
|}
|}
|}
<imagemap>
|}</includeonly><noinclude>
{{{image|}}}|center|{{{imagesize|}}}
{{doc}}
default {{#if:{{{franchisetitle|}}}|[[{{{franchise}}}|{{{franchisetitle|}}}]]|[[{{{franchise}}}]]}}
desc none
</imagemap>
<div style="clear: both"></div>
</includeonly><noinclude>


[[Category:Navigation templates| ]]
[[Category:Navigation templates| ]]
 
[[Category:Meta templates]]
</noinclude>
</noinclude>

Latest revision as of 21:42, 13 February 2022

(Transcluded documentation: view)

This is a generic template for creating navigation templates.

Valid arguments

[edit]
  • continuityfamily — the article for the continuity family this franchise belongs to.*
  • continuityfamilyname — the cleaned-up name for the continuity family, if it has parentheticals.*
  • franchise — the franchise's main article.
  • franchisename — the cleaned-up name for the franchise, as it will inevitably have a parenthetical.*
  • prev — the previous franchise.*
  • next — the next franchise.*
  • franchisename2, franchisename3 — subheaders for the franchise if multiple sets of navigation are necessary, such as for iterations of the franchise in different regions.*
  • prev2, prev3 — the previous franchise associated with franchisename2 and franchisename3 respectively.*
  • next2, next3 — the next franchise associated with franchisename2 and franchisename3 respectively.*
  • image — the franchise's logo
  • imagesize — the size to display the logo, defaults to 500x130px (whichever is smaller of 500px wide and 130px tall)*
  • c1 — the first column of subpages.*
  • c2 — the second column of subpages.*

* optional

Example

[edit]
{{Nav
|continuityfamily=Generation 1 continuity family
|franchise=Fight! Super Robot Lifeform Transformers (franchise)#Transformers: Super-God Masterforce
|franchisename=Super-God Masterforce
|image=Transformers-JG1-Masterforce-Logo.png
|imagesize=341px
|prev=Fight! Super Robot Lifeform Transformers (franchise)#Transformers: The Headmasters
|next=Fight! Super Robot Lifeform Transformers (franchise)#Fight! Super Robot Lifeform Transformers: Victory
|c1=
*[[Fight! Super Robot Lifeform Transformers (toyline)#1988 (Super-God Masterforce)|Toyline]]
*[[Transformers: Super-God Masterforce (cartoon)|Cartoon]]
*[[Commercial/Japan#Masterforce|Commercials]]
|c2=
*[[Transformers: Super-God Masterforce (manga)|Manga]]
*[[Transformers: Super-God Masterforce (story page)|Story Pages]]
}}

Which produces:

Generation 1 continuity family
« Super-God Masterforce »