Template: Propositions/Radiobuttons: Difference between revisions

From Psalms: Layer by Layer
Jump to: navigation, search
No edit summary
No edit summary
Line 5: Line 5:


</noinclude><includeonly>
</noinclude><includeonly>
{{#vardefine: first element
{{#arraymap: {{#ask: [[Category:Argument]]
    | {{#replace: @argument|{{#titleparts: {{FULLPAGENAME}} | 1 | 0 }}/Arguments|}}
}}{{#arraymap: {{#ask: [[Category:Argument]]
                     [[Chapter::{{#show: {{#titleparts: {{FULLPAGENAME}} | 1 | 0 }} | ? Chapter | link=none}}]]
                     [[Chapter::{{#show: {{#titleparts: {{FULLPAGENAME}} | 1 | 0 }} | ? Chapter | link=none}}]]
<!--                    [[Verse::{{{2|+}}}]] -->
<!--                    [[Verse::{{{2|+}}}]] -->
Line 18: Line 16:
   |<nowiki/>
   |<nowiki/>
{{!}} [[@argument| {{#show: @argument | ? Description}}]] [{{fullurl:@argument|action=delete}} (x)]
{{!}} [[@argument| {{#show: @argument | ? Description}}]] [{{fullurl:@argument|action=delete}} (x)]
{{!}} <nowiki>{{{field|</nowiki>{{#var: first element}}.{{#switch: {{{2|}}}
{{!}} <nowiki>{{{field|</nowiki>@argument.{{#switch: {{{2|}}}
                                             |Argument={{{1|}}}
                                             |Argument={{{1|}}}
                                             |#default={{Subobject Portion |{{{1|}}} }}
                                             |#default={{Subobject Portion |{{{1|}}} }}

Revision as of 10:00, 3 November 2020


This is a helper template for form Form:Evidence and Arguments. It is necessary because dynamic form fields must be done in a template, not directly in a form (or the variables will not be interpreted).