Template:Zone Section Header: Difference between revisions

From HorizonXI Wiki
m (documentation)
(reframed additional parameters into link and text)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><onlyinclude>{{#switch: {{lc:{{{1|{{{hobby}}}}}}}}
<includeonly><onlyinclude>{{#switch: {{lc:{{{1|{{{hobby}}}}}}}}
| harvesting = <div id="harvesting" class="zone-section-header harvesting-table">{{{text|[[Harvesting]]}}}</div>
| harvesting = <div id="{{#replace:{{{text|{{{link|Harvesting}}}}}}|<nowiki> </nowiki>|_}}" class="zone-section-header harvesting-table">{{#if:{{{link|}}}|[[{{{link}}}{{!}}{{{text|{{{link}}}}}}]]|{{{text|[[Harvesting]]}}}}}</div>


| coffer = <div id="treasure coffer" class="zone-section-header" style="background-color:#9F9B8B">{{{text|[[Treasure Chest and Coffer Guide|Treasure Coffer]]}}}</div>
| coffer = <div id="{{#replace:{{{text|{{{link|Treasure_Coffer}}}}}}|<nowiki> </nowiki>|_}}" class="zone-section-header" style="background-color:#9F9B8B">{{#if:{{{link|}}}|[[{{{link}}}{{!}}{{{text|{{{link}}}}}}]]|{{{text|[[Treasure Chest and Coffer Guide|Treasure Coffer]]}}}}}</div>


| chest = <div id="treasure chest" class="zone-section-header" style="background-color:#9F9B8B">{{{text|[[Treasure Chest and Coffer Guide|Treasure Chest]]}}}</div>
| chest = <div id="{{#replace:{{{text|{{{link|Treasure_Chest}}}}}}|<nowiki> </nowiki>|_}}" class="zone-section-header" style="background-color:#9F9B8B">{{#if:{{{link|}}}|[[{{{link}}}{{!}}{{{text|{{{link}}}}}}]]|{{{text|[[Treasure Chest and Coffer Guide|Treasure Chest]]}}}}}</div>


| mining = <div id="mining" class="zone-section-header mining-table">{{{text|[[Mining]]}}}</div>
| mining = <div id="{{#replace:{{{text|{{{link|Mining}}}}}}|<nowiki> </nowiki>|_}}" class="zone-section-header mining-table">{{#if:{{{link|}}}|[[{{{link}}}{{!}}{{{text|{{{link}}}}}}]]|{{{text|[[Mining]]}}}}}</div>


| logging = <div id="logging" class="zone-section-header logging-table">{{{text|[[Logging]]}}}</div>
| logging = <div id="{{#replace:{{{text|{{{link|Logging}}}}}}|<nowiki> </nowiki>|_}}" class="zone-section-header logging-table">{{#if:{{{link|}}}|[[{{{link}}}{{!}}{{{text|{{{link}}}}}}]]|{{{text|[[Logging]]}}}}}</div>


| digging = <div id="digging" class="zone-section-header digging-table">{{{text|[[Chocobo Digging]]}}}</div>
| digging = <div id="{{#replace:{{{text|{{{link|Digging}}}}}}|<nowiki> </nowiki>|_}}" class="zone-section-header digging-table">{{#if:{{{link|}}}|[[{{{link}}}{{!}}{{{text|{{{link}}}}}}]]|{{{text|[[Chocobo Digging]]}}}}}</div>


| clamming = <div id="clamming" class="zone-section-header clamming-table">{{{text|[[Clamming]]}}}</div>
| clamming = <div id="{{#replace:{{{text|{{{link|Clamming}}}}}}|<nowiki> </nowiki>|_}}" class="zone-section-header clamming-table">{{#if:{{{link|}}}|[[{{{link}}}{{!}}{{{text|{{{link}}}}}}]]|{{{text|[[Clamming]]}}}}}</div>


| excavation = <div id="excavation" class="zone-section-header excavating-table">{{{text|[[Excavation]]}}}</div>
| excavation = <div id="{{#replace:{{{text|{{{link|Excavation}}}}}}|<nowiki> </nowiki>|_}}" class="zone-section-header excavating-table">{{#if:{{{link|}}}|[[{{{link}}}{{!}}{{{text|{{{link}}}}}}]]|{{{text|[[Excavation]]}}}}}</div>


| fishing = <div id="fishing" class="zone-section-header fishing-header">{{{text|[[Fishing]]}}}</div>
| fishing = <div id="{{#replace:{{{text|{{{link|Fishing}}}}}}|<nowiki> </nowiki>|_}}" class="zone-section-header fishing-header">{{#if:{{{link|}}}|[[{{{link}}}{{!}}{{{text|{{{link}}}}}}]]|{{{text|[[Fishing]]}}}}}</div>


<!--| weather = <div id="weather"><div style="margin:0;background-color:#FFD86F;font-size:120%;font-weight:bold;border:1px solid #a0a0ff;text-align:left;color:#000;padding:0.2em 0.4em;">[[Weather]]</div></div>!-->
<!--| weather = <div id="weather"><div style="margin:0;background-color:#FFD86F;font-size:120%;font-weight:bold;border:1px solid #a0a0ff;text-align:left;color:#000;padding:0.2em 0.4em;">[[Weather]]</div></div>!-->


| weather = <div id="weather" class="zone-section-header" style="background-color:#FFD86F">{{{text|[[Weather]]}}}</div>
| weather = <div id="{{#replace:{{{text|{{{link|Weather}}}}}}|<nowiki> </nowiki>|_}}" class="zone-section-header" style="background-color:#FFD86F">{{#if:{{{link|}}}|[[{{{link}}}{{!}}{{{text|{{{link}}}}}}]]|{{{text|[[Weather]]}}}}}</div>


| schedule = <div id="schedule" class="zone-section-header"  style="background-color:#D87093">{{{text|[[Horizogenes|Daily Schedule (Vana'diel Time)]]}}}</div>
| schedule = <div id="{{#replace:{{{text|{{{link|schedule}}}}}}|<nowiki> </nowiki>|_}}" class="zone-section-header"  style="background-color:#D87093">{{#if:{{{link|}}}|[[{{{link}}}{{!}}{{{text|{{{link}}}}}}]]|{{{text|[[Horizogenes|Daily Schedule (Vana'diel Time)]]}}}}}</div>


| schedule2 = <div id="schedule2" class="zone-section-header"  style="background-color:#D87093;">{{{text|[[Horizogenes|Daily Schedule (Vana'diel Time / Earth Time)]]}}}</div>
| schedule2 = <div id="{{#replace:{{{text|{{{link|schedule2}}}}}}|<nowiki> </nowiki>|_}}" class="zone-section-header"  style="background-color:#D87093;">{{#if:{{{link|}}}|[[{{{link}}}{{!}}{{{text|{{{link}}}}}}]]|{{{text|[[Horizogenes|Daily Schedule (Vana'diel Time / Earth Time)]]}}}}}</div>


| treasure casket = <div id="Treasure Casket"><div style="width:100%; margin:0;background-color:#A58D63;border:1px solid #a0a0ff;text-align:left;color:#000;"><div style="width:47%; margin:0;background-color:#63C4DC;font-size:120%;font-weight:bold;border:0px solid #a0a0ff;text-align:left;color:#000;padding:0.2em 0.4em;">{{{text|[[Treasure Casket]]}}}</div></div></div>
| treasure casket = <div id="{{#replace:{{{text|{{{link|Treasure_Casket}}}}}}|<nowiki> </nowiki>|_}}"><div style="width:100%; margin:0;background-color:#A58D63;border:1px solid #a0a0ff;text-align:left;color:#000;"><div style="width:47%; margin:0;background-color:#63C4DC;font-size:120%;font-weight:bold;border:0px solid #a0a0ff;text-align:left;color:#000;padding:0.2em 0.4em;">{{#if:{{{link|}}}|[[{{{link}}}{{!}}{{{text|{{{link}}}}}}]]|{{{text|[[Teasure Casket]]}}}}}</div></div></div>


| field manual = <div id="Field Manual" class="zone-section-header" style="background-color:#D2BC86;">{{{text|[[Field Manual]]}}}</div>
| field manual = <div id="{{#replace:{{{text|{{{link|Field_Manual}}}}}}|<nowiki> </nowiki>|_}}" class="zone-section-header" style="background-color:#D2BC86;">{{#if:{{{link|}}}|[[{{{link}}}{{!}}{{{text|{{{link}}}}}}]]|{{{text|[[Field Manual]]}}}}}</div>


}}</onlyinclude></includeonly>
}}</onlyinclude></includeonly>
Line 34: Line 34:


==Usage==
==Usage==
For use in zone pages, e.g.:
For use in zone pages, e.g.:


<pre>{{Zone Section Header|Harvesting|text=}}
<pre>{{Zone Section Header|Harvesting|link=|text=}}
</pre>
</pre>


Where the parameter ''text'' is optional if the standard output is not desired.  
Where the parameters ''link'' and ''text'' are optional if the standard output is not desired.  


Here are the available headers:
Here are the available headers:

Latest revision as of 22:12, 11 October 2024


Usage

For use in zone pages, e.g.:

{{Zone Section Header|Harvesting|link=|text=}}

Where the parameters link and text are optional if the standard output is not desired.

Here are the available headers: