Difference between revisions of "Template:Database Relationship"

From Dreamwidth Notes
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{DISPLAYTITLE:Database Relationship: {{{From table}}}.{{{From field}}} {{{To table}}}.{{{To field}}}}}{{#set:From table={{{From table}}}|To table={{{To table}}}|from field={{{From field}}}|to field={{{To field}}}|relationship type={{{Type|Foreign key}}}|Kind=Database Relationship|From page=Database Table: {{{From table}}}|To page=Database Table: {{{To table}}}}}
 
<includeonly>{{DISPLAYTITLE:Database Relationship: {{{From table}}}.{{{From field}}} {{{To table}}}.{{{To field}}}}}{{#set:From table={{{From table}}}|To table={{{To table}}}|from field={{{From field}}}|to field={{{To field}}}|relationship type={{{Type|Foreign key}}}|Kind=Database Relationship|From page=Database Table: {{{From table}}}|To page=Database Table: {{{To table}}}}}
Relationship from {{DBField|{{{From table}}}|{{{From field}}}}} to {{DBField|{{{To table}}}|{{{To field}}}}} ( {{{Type|No Type}}} )[[Category:Database Relationships|{{{From table}}}.{{{From field}}} {{{To table}}}.{{{To field}}}]]
+
Relationship from {{DBField|{{{From table}}}|{{{From field}}}}} to {{DBField|{{{To table}}}|{{{To field}}}}} ( {{{Type|Foreign key}}} )[[Category:Database Relationships]]
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
If this is a relationship to a concept, use [[Template:Database_Relationship/Concept]]
 
If this is a relationship to a concept, use [[Template:Database_Relationship/Concept]]
 
</noinclude>
 
</noinclude>

Latest revision as of 15:29, 3 February 2010

If this is a relationship to a concept, use Template:Database_Relationship/Concept