Difference between revisions of "Template:SemanticLink"

From GMOD
Jump to: navigation, search
m (Fixing template)
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the "SemanticLink" template.
+
This is the "SemanticLink" subobject template.
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>
 
<pre>
 
{{SemanticLink
 
{{SemanticLink
|linkurl=
+
|linkurl=   // Has URL
|linktopic=
+
|linktitle= // Has title
|linktype=
+
|linktype=   // Link type
|linkdesc=
+
|linkdesc=   // Has description
|linktitle=
+
|linktopic= // Has topic - set to {{PAGENAME}}
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>
+
</noinclude><includeonly>{{#set: Has URL={{{linkurl|}}} | Has title={{{linktitle|}}} | Link type={{{linktype|}}} | Has description={{{linkdesc|}}} | Has topic={{PAGENAME}} }}{{#subobject: {{{linkurl}}}
'''Link URL:''' [[Has URL::{{{linkurl|}}}]]
+
|linkurl={{{linkurl|}}}
 
+
|linktitle={{{linktitle|}}}  
'''Link subject:''' [[Subject::{{{linktopic|}}}]]
+
|linktype={{{linktype|}}}
 
+
|linkdesc={{{linkdesc|}}}  
'''Link type:''' {{#arraymap:{{{linktype|}}}|,|x|[[Link type::x]]}}
+
|linktopic={{PAGENAME}}
 
+
}}</includeonly>
'''Link description:''' [[Has description::{{{linkdesc|}}}]]
+
 
+
'''Title:''' [[Has title::{{{linktitle|}}}]]
+
  
 
[[Category:SemanticLink]]
 
[[Category:SemanticLink]]
</includeonly>
 

Latest revision as of 23:21, 1 October 2013

This is the "SemanticLink" subobject template. It should be called in the following format:

{{SemanticLink
|linkurl=    // Has URL
|linktitle=  // Has title
|linktype=   // Link type
|linkdesc=   // Has description
|linktopic=  // Has topic - set to {{PAGENAME}}
}}

Edit the page to see the template text.