Template:Zone Section Header: Difference between revisions
From HorizonXI Wiki
(Created page with "<noinclude>For use in zone pages</noinclude>{{#switch:{{{1|{{{hobby}}}}}} | harvesting = <div id="harvesting"><div style="margin:0;background-color:#7BDD67;font-size:120%;font-weight:bold;border:1px solid #a0a0ff;text-align:left;color:#000;padding:0.2em 0.4em;">Harvesting</div></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.4e...") Tag: visualeditor-wikitext |
(reframed additional parameters into link and text) |
||
(13 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
< | <includeonly><onlyinclude>{{#switch: {{lc:{{{1|{{{hobby}}}}}}}} | ||
| harvesting = <div id=" | | 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=" | | 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=" | | 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 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 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 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 = <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 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 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="{{#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="{{#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="{{#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="{{#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> | |||
[[Category:Templates|{{PAGENAME}}]] | |||
==Usage== | |||
For use in zone pages, e.g.: | |||
<pre>{{Zone Section Header|Harvesting|link=|text=}} | |||
</pre> | |||
Where the parameters ''link'' and ''text'' are optional if the standard output is not desired. | |||
Here are the available headers: | |||
{{Zone Section Header|Harvesting}} | |||
{{Zone Section Header|Coffer}} | |||
{{Zone Section Header|Chest}} | |||
{{Zone Section Header|Mining}} | |||
{{Zone Section Header|Logging}} | |||
{{Zone Section Header|digging}} | |||
{{Zone Section Header|clamming}} | |||
{{Zone Section Header|Excavation}} | |||
{{Zone Section Header|Fishing}} | |||
{{Zone Section Header|weather}} | |||
{{Zone Section Header|schedule}} | |||
{{Zone Section Header|schedule2}} | |||
{{Zone Section Header|treasure Casket}} | |||
{{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: