Template:GM: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
(Add detection & message for copy-mode if no GM data was available for target page.)
(GM name-restructure: Update Call-Names.)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<!--
<includeonly
#REDIRECT [[Template:Menu_usage_box]]
--><includeonly


>{{#if:{{{copy|}}}<!--
>{{#if:{{{copy|}}}<!--
Line 7: Line 5:
-->|{{#if:{{#show:{{{copy}}}|?Menu_usage_raw}}<!--
-->|{{#if:{{#show:{{{copy}}}|?Menu_usage_raw}}<!--


-->|{{Menu_usage_box-copy_sup|{{#ask:[[{{{copy}}}]]|?Menu_usage_raw|format=plainlist|limit=1|headers=hide|mainlabel=-|valuesep=•|searchlabel=}}}}<!--
-->|{{GM/copy|{{#ask:[[{{{copy}}}]]|?Menu_usage_raw|format=plainlist|limit=1|headers=hide|mainlabel=-|valuesep=•|searchlabel=}}}}<!--


-->|{{error|No GM data found for page|Menu_usage_box: | "{{{copy}}}".}}<!--
-->|{{error|No GM data found for page|GM/sub: | "{{{copy}}}".}}<!--


-->}}<!--
-->}}<!--
-->|{{Menu usage box<!--
-->|{{GM/sub<!--
-->|{{{1|}}}<!--
-->|{{#if:x|{{{1|}}}}}<!--
-->|{{{2|}}}<!--
-->|{{#if:x|{{{2|}}}}}<!--
-->|{{{3|}}}<!--
-->|{{#if:x|{{{3|}}}}}<!--
-->|{{{4|}}}<!--
-->|{{#if:x|{{{4|}}}}}<!--
-->|{{{5|}}}<!--
-->|{{#if:x|{{{5|}}}}}<!--
-->|{{{6|}}}<!--
-->|{{#if:x|{{{6|}}}}}<!--
-->|inline={{#ifeq:{{{inline|+}}}|{{{inline|-}}}|true}}<!--
-->}}<!--
-->}}<!--


-->}}</includeonly
-->}}</includeonly


><noinclude></noinclude>
><noinclude>{{Documentation}}</noinclude>

Latest revision as of 12:23, 12 September 2024

Template documentation (for the template shown above, sometimes hidden or invisible)
Purpose
Pre-processor of GM(Game Menu) data.
Intended shorter template calling name. Instead of "GM/sub" (initially).
Detects and processes "copy" cases.
Also trims used menu strings (general cleanup).
See Template:GM/sub for general GM documentation.

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