2014-06-12

‎Infobox code:

← Older revision

Revision as of 17:42, 12 June 2014

Line 8:

Line 8:

=== Infobox code ===

=== Infobox code ===

<pre>

<pre>



{{#switch: {{lc:{{{
availability
|{{#ifeq: {{{historical|n}}} | y | historical }}}}}}}

+

{{#switch: {{lc:{{{
status
|{{#ifeq: {{{historical|n}}} | y | historical }}}}}}}

| unimplemented = {{#set:Has availability=Unimplemented}} {{unimplemented content}} {{#set:Is historical=Y}}

| unimplemented = {{#set:Has availability=Unimplemented}} {{unimplemented content}} {{#set:Is historical=Y}}

| future        = {{#set:Has availability=Future}}        {{future content}}        {{#set:Is historical=Y}}

| future        = {{#set:Has availability=Future}}        {{future content}}        {{#set:Is historical=Y}}

Line 20:

Line 20:

<!--

<!--

AUTOCATEGORIZATION

AUTOCATEGORIZATION



-->{{#if: {{NAMESPACE}}{{#ifeq: {{{categorize|y}}} | n |
n
}}{{#
ifeq
: {{lc:{{{
historical
}}}}} |
y
|
+
| {{#
switch
: {{lc:{{{
availability|
}}}}} |
historical
|
unimplemented | future =
+ }}
}}

+

-->{{#if: {{NAMESPACE}}
<!-- no categories if outside of article namespace -->

+

{{#ifeq: {{{categorize|y}}} | n |
do not categorize | <!-- categorize -->
}}

+

{{#
switch
: {{lc:{{{
status|
}}}}} |
historical
|
unimplemented
|
future = do not categorize }}

+

{{#
ifeq
: {{lc:{{{
historical
}}}}} |
y
| + }}
<!-- legacy support -->

| <!-- Do not categorize --> |

| <!-- Do not categorize --> |

Line 28:

Line 31:

<pre>

<pre>

; categorize : Optional. ''n'' to skip auto-categorization. If the page is historical, use the <code>availability</code> parameter (below) instead.

; categorize : Optional. ''n'' to skip auto-categorization. If the page is historical, use the <code>availability</code> parameter (below) instead.



;
availability
: Optional. Status of content. Only set if not currently obtainable ingame. Options: "historical", "unimplemented", "future", "discontinued".

+

;
status
: Optional. Status of content. Only set if not currently obtainable ingame. Options: "historical", "unimplemented", "future", "discontinued".
(This parameter replaced "historical")



; historical : <s>Optional. ''y'' to flag the page as historical. Functionally identical to <code>categorize = n</code>, but it also adds [[:Category:Historical content]] and displays the {{tl|Historical content}} notice.</s> Deprecated. Use the <code>availability</code> parameter instead.

+

</pre>

</pre>

Show more