You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:TranscludeWithEditLink: Difference between revisions
Jump to navigation
Jump to search
(add a second argument) |
(allow an override for the second inner argument, too) |
||
Line 1: | Line 1: | ||
<code>{{{{{1}}}|{{{2|P1}}}|P2|P3|P4|P5|P6|P7|P8}}</code> ([{{fullurl:Template:{{{1}}}|action=edit}} edit]) | <code>{{{{{1}}}|{{{2|P1}}}|{{{3|P2}}}|P3|P4|P5|P6|P7|P8}}</code> ([{{fullurl:Template:{{{1}}}|action=edit}} edit]) | ||
<noinclude> | <noinclude> | ||
---- | ---- | ||
Line 9: | Line 9: | ||
This template shows the content of another template (using <code>P1</code> … <code>P8</code> as placeholders for parameters), and produces an "edit" link for that template. The purpose is to edit fragment templates that are used to generate pages like role PMs. | This template shows the content of another template (using <code>P1</code> … <code>P8</code> as placeholders for parameters), and produces an "edit" link for that template. The purpose is to edit fragment templates that are used to generate pages like role PMs. | ||
You can specify a second argument to override the first argument given to the other template. | You can specify a second argument to override the first argument given to the other template (and likewise, a third argument to override the second argument given to the other template). | ||
== Examples == | == Examples == |
Latest revision as of 05:40, 8 December 2018
{{{{{1}}}|P1|P2|P3|P4|P5|P6|P7|P8}}
([{{fullurl:Template:{{{1}}}|action=edit}} edit])
|
This template shows the content of another template (using P1
… P8
as placeholders for parameters), and produces an "edit" link for that template. The purpose is to edit fragment templates that are used to generate pages like role PMs.
You can specify a second argument to override the first argument given to the other template (and likewise, a third argument to override the second argument given to the other template).
Examples
- {{TranscludeWithEditLink|RoleFragment/t/Cop}}
you will learn whether that player wins with Town. (You will get "no result" if this action is blocked.)
(edit)
- {{TranscludeWithEditLink|ShowArgs}}
1=P1; 2=P2; 3=P3; 4=P4; 5=P5; 6=P6; 7=P7; 8=P8
(edit)