Template:Preview Only Infobox: Difference between revisions

From HorizonXI Wiki
(Created page with "<onlyinclude><includeonly>{{#if:{{REVISIONID}}||<div style="border: 4px #AA0000 solid;"><div style="margin: 4px; padding: 4px; text-align: center; font-weight: bold; color: #AA0000; font-size: 1.6em;">This Documentation is only visible in preview mode!</div>{{{1|}}}</div>}}</includeonly></onlyinclude> ==Usage== This Template will provide an infobox that is only visible in preview mode. Main usage is template documentation for very common templates with many options....")
 
(added option to disable the preview only infobox e.g. for examples)
Line 1: Line 1:
<onlyinclude><includeonly>{{#if:{{REVISIONID}}||<div style="border: 4px #AA0000 solid;"><div style="margin: 4px; padding: 4px; text-align: center; font-weight: bold; color: #AA0000; font-size: 1.6em;">This Documentation is only visible in preview mode!</div>{{{1|}}}</div>}}</includeonly></onlyinclude>
<onlyinclude><includeonly>{{#if:{{{disable|}}}||{{#if:{{REVISIONID}}||<div style="border: 4px #AA0000 solid;"><div style="margin: 4px; padding: 4px; text-align: center; font-weight: bold; color: #AA0000; font-size: 1.6em;">This Documentation is only visible in preview mode!</div>{{{1|}}}</div>}}}}</includeonly></onlyinclude>


==Usage==
==Usage==


This Template will provide an infobox that is only visible in preview mode. Main usage is template documentation for very common templates with many options.  
This Template will provide an infobox that is only visible in preview mode. Main usage is template documentation for very common templates with many options.  
''Note: The preview infobox can be disabled with the parameter "disable" e.g. when giving examples on other template pages. Disable can be set to anything, the infobox will only show if disable is empty.''


Example:  
Example:  

Revision as of 21:39, 3 December 2023


Usage

This Template will provide an infobox that is only visible in preview mode. Main usage is template documentation for very common templates with many options.

Note: The preview infobox can be disabled with the parameter "disable" e.g. when giving examples on other template pages. Disable can be set to anything, the infobox will only show if disable is empty.

Example:

{{Preview Only Infobox|<pre>
{{Mission Header
| Mission Name = {Name of the Mission}
| Expansion = {Series of the Missions}
| Start = {NPC name that starts the quest}
| Start Location = {Location template}
| Description = {Ingame Mission Description}
| Level = {Required Level to complete the Mission}
| Requirements = {Requirements to ACCEPT the Mission}
| Items Needed = {Items Needed to COMPLETE the Mission}
| Repeatable = {yes/no}
| Title = {Title(s) obtained thoughout the mission
| Rewards = {Rewards obtained for COMPLETING the Mission}
| Previous = {previous mission: link{{!}}name}
| Next = {next mission: link{{!}}name}
}}</ pre>