Template:GM/cat/legacy: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
m (... seems to work, almost.)
m (cleanup (working))
Line 1: Line 1:
<noinclude>
<includeonly
Self check:
:A:{{Menu_usage_scan}}:(empty)
:B:{{Menu_usage_scan|foo$bar1}}:(empty)
:C:{{Menu_usage_scan|foo$bar1|foo $bar2}}:(a)
:D:{{Menu_usage_scan|foo$bar1|foo $bar2|foobar3|foobar4}}:(abc)
:E:{{Menu_usage_scan|foo$bar1|foo $bar2|foobar3|||foobar6}}:(ab)
:x:{{#replace:foo $bar2|$}}:(foo bar2)
:y:{{#set: Menu_Usage = foo bar9 }}:(empty)
:z:[[ Menu_Usage :: foo bar8 ]]:(foo bar8)
</noinclude><includeonly


>{{#if: {{{1|}}}
>{{#if: {{{1|}}}
   |{{#if: {{{2|}}}
   |{{#if: {{{2|}}}
     |a{{#set: Menu_Usage = {{#replace:{{{1}}}|$}} }}{{
     |{{#set: Menu_Usage = {{#replace:{{{1}}}|$}} }}{{
     #if: {{{3|}}}
     #if: {{{3|}}}
       |b{{#set: Menu_Usage = {{#replace:{{{2}}}|$}} }}{{
       |{{#set: Menu_Usage = {{#replace:{{{2}}}|$}} }}{{
       #if: {{{4|}}}
       #if: {{{4|}}}
         |c{{#set: Menu_Usage = {{#replace:{{{3}}}|$}} }}{{
         |{{#set: Menu_Usage = {{#replace:{{{3}}}|$}} }}{{
         #if: {{{5|}}}
         #if: {{{5|}}}
           |d{{#set: Menu_Usage = {{#replace:{{{4}}}|$}} }}{{
           |{{#set: Menu_Usage = {{#replace:{{{4}}}|$}} }}{{
           #if: {{{6|}}}
           #if: {{{6|}}}
             |e{{#set: Menu_Usage = {{#replace:{{{5}}}|$}} }}
             |{{#set: Menu_Usage = {{#replace:{{{5}}}|$}} }}
           }}
           }}
         }}
         }}

Revision as of 16:45, 1 May 2015

Template documentation (for the template shown above, sometimes hidden or invisible)

Info

Game-Menu supplement template. (Legacy specific version)
Category assignment on specific menu's.
Currently supporting up to 6 parameters. (anonymous type)
(Only intended to be used from "GM/sub" template.)

Usage

{{GM/cat|Parm1|Parm2|..|Parm6}}

Used By template

GM/sub

Auto Categorising

(TODO-UPDATE)
Notes:
- Not all categories allowed for this.
- Most auto categorising is (should be?) managed by Infobox metaobj
- Case-sensitive.