Jump to content

Template:Resource: Difference between revisions

From The Sovereign Games (MoA Lab)
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "Resource" template.
This is the "Resource" template.
 
Lightweight reference annotation. Title and URL are derived from the page it is placed on.
{{#cargo_declare:_table=Resources
{{#cargo_declare:_table=Resources
| Title = String
| URL = URL
| Description = Text
| Description = Text
| Category = String
| Category = String
| SourcePage = String
| SourcePage = String
| TargetPage = String
}}
}}
</noinclude>
</noinclude>
Line 14: Line 11:
<includeonly>
<includeonly>
{{#cargo_store:_table=Resources
{{#cargo_store:_table=Resources
| Title = {{#if: {{{Page|}}} | {{{Page}}} | {{{Title|}}} }}
| URL = {{#if: {{{Page|}}}
  | {{fullurl:{{{Page}}}}}
  | {{{URL|}}}
}}
| Description = {{{Description|}}}
| Description = {{{Description|}}}
| Category = {{{Category|}}}
| Category = {{{Category|}}}
| SourcePage = {{FULLPAGENAME}}
| SourcePage = {{FULLPAGENAME}}
| TargetPage = {{{Page|}}}
}}
}}


<div style="display:none;">
<div style="display:none;">
{| class="wikitable"
{| class="wikitable"
! Title
| {{#if: {{{Page|}}} | {{{Page}}} | {{{Title|}}} }}
|-
! URL
| {{#if: {{{Page|}}}
  | [{{fullurl:{{{Page}}}}} {{fullurl:{{{Page}}}}}]
  | [{{{URL|}}} {{{URL|}}}]
}}
|-
! Description
! Description
| {{{Description|}}}
| {{{Description|}}}

Revision as of 20:04, 9 July 2026

This is the "Resource" template. Lightweight reference annotation. Title and URL are derived from the page it is placed on. This template defines the table "Resources". View table.