Template:SubpageNavigation: Difference between revisions

From Castrella Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<p style="margin-bottom:0px">
<p style="margin-bottom:0px">
{{#if:{{{Lore|}}}|
{{#if:{{{1 Link Name|}}}|
   <span style="margin-bottom:0px">
   <span style="margin-bottom:0px">
     [[Nyx Roseblood/Lore|
     [[{{{1 Link Target}}}|
       <span style="
       <span style="
         font-weight:bold;
         font-weight:bold;
Line 14: Line 14:
         color:black;
         color:black;
         text-decoration:none;
         text-decoration:none;
     ">Lore</span>]]
     ">{{{1 Link Name}}}</span>]]
|}}
|}}
{{#if:{{{Relations|}}}|
{{#if:{{{2 Link Name|}}}|
     [[Nyx Roseblood/Relations|
  <span style="margin-bottom:0px">
     [[{{{2 Link Target}}}|
      <span style="
        font-weight:bold;
        border:2px solid black;
        border-bottom:0px;
        padding:5px 10px;
        margin-bottom:0px;
        border-radius:8px 8px 0px 0px;
        border-color:#A2A9B1;
        background-color:#EEEEEE;
        color:black;
        text-decoration:none;
    ">{{{2 Link Name}}}</span>]]
|}}
{{#if:{{{3 Link Name|}}}|
  <span style="margin-bottom:0px">
    [[{{{3 Link Target}}}|
      <span style="
        font-weight:bold;
        border:2px solid black;
        border-bottom:0px;
        padding:5px 10px;
        margin-bottom:0px;
        border-radius:8px 8px 0px 0px;
        border-color:#A2A9B1;
        background-color:#EEEEEE;
        color:black;
        text-decoration:none;
    ">{{{3 Link Name}}}</span>]]
|}}
{{#if:{{{4 Link Name|}}}|
  <span style="margin-bottom:0px">
    [[{{{4 Link Target}}}|
       <span style="
       <span style="
         font-weight:bold;
         font-weight:bold;
Line 29: Line 62:
         color:black;
         color:black;
         text-decoration:none;
         text-decoration:none;
     ">Relations</span>]]
     ">{{{4 Link Name}}}</span>]]
  </span>
|}}
|}}
   <hr style="height:2px;margin-top: 2px;">
   <hr style="height:2px;margin-top: 2px;">
Line 36: Line 68:


<noinclude>
<noinclude>
To add a navigation tab, you need to include both Name/Target for a number.
For example, to create a "Lore" tab, include both "1 Link Name" and "1 Link Number".
Set "1 Link Name" to "Lore" and "1 Link Target" to "Character Name/Lore".
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"Lore": {
"1 Link Name": {
"suggestedvalues": [
"type": "string"
"true"
},
]
"1 Link Target": {
"type": "string"
},
"2 Link Name": {
"type": "string"
},
"2 Link Target": {
"type": "string"
},
"3 Link Name": {
"type": "string"
},
"3 Link Target": {
"type": "string"
},
"4 Link Name": {
"type": "string"
},
},
"Relations": {
"4 Link Target": {
"suggestedvalues": [
"type": "string"
"true"
]
}
}
},
},

Latest revision as of 22:59, 21 April 2025



To add a navigation tab, you need to include both Name/Target for a number.

For example, to create a "Lore" tab, include both "1 Link Name" and "1 Link Number".

Set "1 Link Name" to "Lore" and "1 Link Target" to "Character Name/Lore".


Subpage Navigator

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
1 Link Name1 Link Name

no description

Stringoptional
1 Link Target1 Link Target

no description

Stringoptional
2 Link Name2 Link Name

no description

Stringoptional
2 Link Target2 Link Target

no description

Stringoptional
3 Link Name3 Link Name

no description

Stringoptional
3 Link Target3 Link Target

no description

Stringoptional
4 Link Name4 Link Name

no description

Stringoptional
4 Link Target4 Link Target

no description

Stringoptional