Template:Sandbox: Difference between revisions

From OnTrackNorthAmerica
No edit summary
No edit summary
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src = "Template:Sandbox/styles.css" />
{|class = "title"
|<h2>Resources</h2>
|}
{| class = "tmp-cnt"
|<i>{{{Source}}}</i> {{#if: {{{1}}} | by <b>{{{1}}}</b> |  }} {{#if: {{{2}}} | from {{{2}}}  }}
|}
<!--Having all Params be required makes it so broken syntax doesn't show up when using template-->
<noinclude>
<noinclude>
{{#expr: 1 + 1}}
<templatedata>
{
"params": {
"1": {
"description": "Name of Author",
"example": "Rick Riordan",
"type": "string",
"required": true
},
"2": {
"description": "Name of Company",
"example": "NASA; ",
"type": "string",
            "required": true
},
"Source": {
"description": "Link or Article",
"required": true
}
},
"description": "This is an example template for citations.",
"paramOrder": [
"Source",
"1",
"2"
]
}
</templatedata>
</noinclude>
</noinclude>
{{{Link}}} by {{{Name}}} {{#if:{{{Company}}}| |from {{{Company}}}}}

Latest revision as of 18:13, 26 April 2024

Resources

{{{Source}}} by {{{1}}} from {{{2}}}


This is an example template for citations.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
SourceSource

Link or Article

Unknownrequired
11

Name of Author

Example
Rick Riordan
Stringrequired
22

Name of Company

Example
NASA;
Stringrequired