Template:Zone Section Header: Difference between revisions

From HorizonXI Wiki
(used css classes for harvesting and clamming; removed a tier of divs)
(reframed additional parameters into link and text)
 
(10 intermediate revisions by 2 users 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">[[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"><div style="margin:0;background-color:#9F9B8B;font-size:120%;font-weight:bold;border:1px solid #a0a0ff;text-align:left;color:#000;padding:0.2em 0.4em;">[[Treasure Chest and Coffer Guide|Treasure Coffer]]</div></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"><div style="margin:0;background-color:#9F9B8B;font-size:120%;font-weight:bold;border:1px solid #a0a0ff;text-align:left;color:#000;padding:0.2em 0.4em;">[[Treasure Chest and Coffer Guide|Treasure Chest]]</div></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"><div style="margin:0;background-color:#A29F99;font-size:120%;font-weight:bold;border:1px solid #a0a0ff;text-align:left;color:#000;padding:0.2em 0.4em;">[[Mining]]</div></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"><div style="margin:0;background-color:#BA9D5B;font-size:120%;font-weight:bold;border:1px solid #a0a0ff;text-align:left;color:#000;padding:0.2em 0.4em;">[[Logging]]</div></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"><div style="margin:0;background-color:#8FBC8F;font-size:120%;font-weight:bold;border:1px solid #a0a0ff;text-align:left;color:#000;padding:0.2em 0.4em;">[[Chocobo Digging]]</div></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">[[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"><div style="margin:0;background-color:#8FA0AE;font-size:120%;font-weight:bold;border:1px solid #a0a0ff;text-align:left;color:#000;padding:0.2em 0.4em;">[[Excavation]]</div></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"><div style="margin:0;background-color:#53A0DF;font-size:120%;font-weight:bold;border:1px solid #a0a0ff;text-align:left;color:#000;padding:0.2em 0.4em;">[[Fishing]]</div></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"><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="{{#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"><div style="margin:0;background-color:#D87093;font-size:120%;font-weight:bold;border:1px solid #a0a0ff;text-align:left;color:#000;padding:0.2em 0.4em;">Daily Schedule (Vana'diel Time) </div></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>


| 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;">[[Treasure Casket]] </div></div></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>


| field manual = <div id="Field Manual"><div style="margin:0;background-color:#D2BC86;font-size:120%;font-weight:bold;border:1px solid #a0a0ff;text-align:left;color:#000;padding:0.2em 0.4em;">[[Field Manual]]</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="{{#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 32: Line 34:


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


<pre>{{Zone Section Header|Harvesting}}
<pre>{{Zone Section Header|Harvesting|link=|text=}}
</pre>
</pre>
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:


{{Zone Section Header|Harvesting}}
{{Zone Section Header|Harvesting}}
{{Zone Section Header|Coffer}}
{{Zone Section Header|Coffer}}
{{Zone Section Header|Chest}}
{{Zone Section Header|Chest}}
{{Zone Section Header|Mining}}
{{Zone Section Header|Mining}}
{{Zone Section Header|Logging}}
{{Zone Section Header|Logging}}
{{Zone Section Header|digging}}
{{Zone Section Header|digging}}
{{Zone Section Header|clamming}}
{{Zone Section Header|clamming}}
{{Zone Section Header|Excavation}}
{{Zone Section Header|Excavation}}
{{Zone Section Header|Fishing}}
{{Zone Section Header|Fishing}}
{{Zone Section Header|weather}}
{{Zone Section Header|weather}}
{{Zone Section Header|schedule}}
{{Zone Section Header|schedule}}
{{Zone Section Header|schedule2}}
{{Zone Section Header|treasure Casket}}
{{Zone Section Header|treasure Casket}}
{{Zone Section Header|field manual}}
{{Zone Section Header|field manual}}

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: