Difference between revisions of "Template:Infobox Tip"
From Paragon Wiki Archive
(Created page with "{{#ifeq:{{#if:{{{demo|}}}|Mission|{{NAMESPACE}}}}|Mission| {{Infobox |name = {{subst:PAGENAME}} |title = Tip Mission |header1 = |label1 = Type |data1 = {{ucfi...") |
(tweak header) |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
{{Infobox | {{Infobox | ||
|name = Infobox Tip | |name = Infobox Tip | ||
| − | | | + | |above = Tip Mission |
|header1 = | |header1 = | ||
| Line 11: | Line 11: | ||
|data2 = {{{place|}}} | |data2 = {{{place|}}} | ||
|header3 = | |header3 = | ||
| − | |label3 = Available to | + | |label3 = Available to |
|data3 = {{#switch:{{lc:{{{available|}}}}} | |data3 = {{#switch:{{lc:{{{available|}}}}} | ||
|hero=Heroes | |hero=Heroes | ||
| Line 19: | Line 19: | ||
|herovig=Heroes and Vigilantes | |herovig=Heroes and Vigilantes | ||
|villrog=Villains and Rogues | |villrog=Villains and Rogues | ||
| + | |herovigrog=Heroes, Vigilantes, and Rogues | ||
| + | |villrogvig=Villains, Rogues, and Vigilantes | ||
|all4=Heroes, Vigilantes, Villains, and Rogues | |all4=Heroes, Vigilantes, Villains, and Rogues | ||
|everyone=Everyone | |everyone=Everyone | ||
}} | }} | ||
|header4 = | |header4 = | ||
| − | |label4 = Level range | + | |label4 = Level range |
| − | |data4 = {{{ | + | |data4 = {{#if:{{{levelfrom|}}}|{{{levelfrom}}}|?}}–{{#if:{{{levelto|}}}|{{{levelto}}}|?}} |
|header5 = | |header5 = | ||
| − | |label5 = | + | |label5 = Choice |
|data5 = {{#switch:{{lc:{{{choice|}}}}} | |data5 = {{#switch:{{lc:{{{choice|}}}}} | ||
|hero=Hero | |hero=Hero | ||
| Line 34: | Line 36: | ||
|herovig=Hero or Vigilante | |herovig=Hero or Vigilante | ||
|villrog=Villain or Rogue | |villrog=Villain or Rogue | ||
| − | }} | + | }}{{#if:{{{demo|}}}||{{#switch:{{lc:{{{type|}}}}} |
| − | }} | + | |event=[[Category:Event Tip Missions|{{#sub:{{PAGENAME}}|6}}]] |
| − | }}<noinclude>{{documentation}}</noinclude> | + | |morality=[[Category:{{#switch:{{{choice}}}|hero=Hero|vill=Villain|rog=Rogue|vig=Vigilante}} Morality Missions|{{#sub:{{PAGENAME}}|6}}]] |
| + | |alignment=[[Category:{{{place}}} Alignment Missions for {{#switch:{{{available}}} | ||
| + | |herovig=Heroes and Vigilantes | ||
| + | |rog=Rogues | ||
| + | |villrog=Villains and Rogues | ||
| + | |vig=Vigilantes | ||
| + | }} {{#if:{{{levelfrom|}}}|Level {{{levelfrom}}} to {{{levelto|?}}}}}|{{#sub:{{PAGENAME}}|6}}]] | ||
| + | }}}} | ||
| + | }}}}<noinclude>{{documentation}}</noinclude> | ||
Latest revision as of 03:12, 23 December 2011
[edit] [] Documentation
Overview
This template is used to show an infobox at the top of a Tip mission article. In addition to showing the infobox, it also supplies the appropriate categories using a default sort key that strips off the first six characters (which should always be "Tip - "); thus, "Mission:Tip - Example" would sort under "E".
This template has special magic that ensures that it will only activate in the Mission: namespace. If an article in another namespace transcludes the article, the infobox and categories will automatically suppress. (Conversely, this means it can only be used in the Mission: namespace.)
Usage
Copy and paste to use:
{{Infobox Tip
|type=
|place=
|available=
|levelfrom=
|levelto=
|choice=
}}
Explanation of parameters:
- type=
- The type of tip mission. This must be one of the following:
- alignment, for an alignment mission
- morality, for a morality mission
- event, for an event mission
- place=
- The place where the tip drops. Possible options:
- Paragon City, required for alignment and morality missions in Paragon City
- Rogue Isles, required for alignment and morality missions in the Rogue Isles
- Anywhere, recommended for tips that can drop anywhere (such as event tips)
- available=
- Specifies who the tip is available to. That is, who the tip will drop for. This must be one of the following:
- hero, for Heroes
- vill, for Villains
- rog, for Rogues
- vig, for Vigilantes
- herovig, for Heroes and Vigilantes
- villrog, for Villains and Rogues
- herovigrog, for Heroes, Vigilantes, and Rogues
- villrogvig, for Villains, Rogues, and Vigilantes
- all4, for Heroes, Vigilantes, Villains, and Rogues
- everyone, for Everyone
- levelfrom=
- levelto=
- Together, these two parameters specify the level range, with levelfrom= being the lower bound and levelto= being the upper bound. If the levels aren't known, then leave these parameters blank and a question mark will automatically be supplied.
- choice=
- Specifies what alignment/morality choice is available in the mission. This must be one of the following:
- hero, for Heroes
- vill, for Villains
- rog, for Rogues
- vig, for Vigilantes
- herovig, for Heroes and Vigilantes
- villrog, for Villains and Rogues
- demo=
- (Not shown in the copy-and-paste above.) This enables demo mode. The Infobox will be forcibly shown. The categories will be forcibly suppressed.
Examples
| Tip Mission | |
|---|---|
| Level range | ?–? |
{{Infobox Tip
|type=
|place=
|available=
|levelfrom=
|levelto=
|choice=
}}
| Tip Mission | |
|---|---|
| Type | Alignment |
| Place | Paragon City |
| Available to | Heroes and Vigilantes |
| Level range | 20–29 |
| Choice | Hero or Vigilante |
{{Infobox Tip
|type=alignment
|place=Paragon City
|available=herovig
|levelfrom=20
|levelto=29
|choice=herovig
}}
| Tip Mission | |
|---|---|
| Type | Morality |
| Place | Rogue Isles |
| Available to | Heroes, Vigilantes, and Rogues |
| Level range | 40–50 |
| Choice | Hero |
{{Infobox Tip
|type=morality
|place=Rogue Isles
|available=herovigrog
|levelfrom=40
|levelto=50
|choice=hero
}}
| Tip Mission | |
|---|---|
| Type | Event |
| Place | Anywhere |
| Available to | Heroes, Vigilantes, Villains, and Rogues |
| Level range | 20–50 |
{{Infobox Tip
|type=event
|place=Anywhere
|available=all4
|levelfrom=20
|levelto=50
|choice=
}}