Template:GM/prop: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
(Created page with "<includeonly >{{#if: {{{1|}}}| {{#if: {{{2|}}}|{{#set: Menu_Usage ={{#replace:{{{1}}}|$}} }} {{#if: {{{3|}}}|{{#set: Menu_Usage ={{#replace:{{{2}}}|$}} }} {{#if: {{{4|}}}|{{#...")
 
(mros)
Line 2: Line 2:


>{{#if: {{{1|}}}|
>{{#if: {{{1|}}}|
{{#if: {{{2|}}}|{{#set: Menu_Usage ={{#replace:{{{1}}}|$}} }}
{{#if: {{{2|}}}|{{#set: Menu_Usage ={{{1}}} }}
{{#if: {{{3|}}}|{{#set: Menu_Usage ={{#replace:{{{2}}}|$}} }}
{{#if: {{{3|}}}|{{#set: Menu_Usage ={{{2}}} }}
{{#if: {{{4|}}}|{{#set: Menu_Usage ={{#replace:{{{3}}}|$}} }}
{{#if: {{{4|}}}|{{#set: Menu_Usage ={{{3}}} }}
{{#if: {{{5|}}}|{{#set: Menu_Usage ={{#replace:{{{4}}}|$}} }}
{{#if: {{{5|}}}|{{#set: Menu_Usage ={{{4}}} }}
{{#if: {{{6|}}}|{{#set: Menu_Usage ={{#replace:{{{5}}}|$}} }}
{{#if: {{{6|}}}|{{#set: Menu_Usage ={{{5}}} }}
}}}}}}}}}}
}}}}}}}}}}
}}</includeonly
}}</includeonly

Revision as of 18:26, 10 July 2018

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

Info

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

Usage

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

Used By template

GM/sub



[Show/hide]

Def Remarks

Code/system notes:

OLD: The parameter-number offset, between the #set and its leading #if part, is intentionally.
     Effectively preventing setting the property on the last given GM-parameter (is object name ... makes no real sense for this property).

NEW: Menu-system seems to have changed (or potential is usage) in such a way that not including the last item makes no sense any more.
     Not having the last item is also troublesome when checking the GM used data for potential outdated and/or misfit entries.

     ISSUE: rethink if there is an other way to also store the last item(final-menu-items), including it with the others(sub-menu-items) bloats the "Unique data list" in such a way that it effectively becomes unusable. (storing last item is going to be reset in a day or two)

LATER1a: (on hold) Check if target property-name can be safely given as named-parameter here (probably. make sure).
LATER1b: (on hold) see about ditching separate legacy case of this template.

Visit Template:GM/prop/doc to edit this text! (How does this work?)