Difference between revisions of "Template:Database Table Footer"

From Dreamwidth Notes
Jump to: navigation, search
(Created page with '{{#show: {{PAGENAME}} | ?name | ?clustered | link=none | format=template | template=Database Table Footer Semantic }}')
 
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#show: {{PAGENAME}}
+
<includeonly>{{#if: {{{norels|}}}{{{removed|}}} | | = Relationships =
| ?name
+
{{#ask:[[Kind::Database Relationship]][[From page::{{PAGENAME}}]]
| ?clustered
+
|mainlabel=-
| link=none
+
|? To table
| format=template
+
|? From field
| template=Database Table Footer Semantic
+
|? To field
 +
|? Relationship type
 +
|? To page
 +
|link=none
 +
|sort = From field
 +
|order = asc
 +
|format=template
 +
|template=Database Table Relationship
 +
|intro=<h2>Outgoing</h2>
 +
|default={{#if: {{{no_out_rels|}}} | | [[Category:Database Table Needing Relationship Data]]}}
 
}}
 
}}
 +
{{#ask:[[Kind::Database Relationship]][[To page::{{PAGENAME}}]]
 +
|mainlabel=-
 +
|? From table
 +
|? To field
 +
|? From field
 +
|? Relationship type
 +
|sort = From table, From field
 +
|order = asc
 +
|link=none
 +
|format=template
 +
|template=Database Table Relationship
 +
|intro=<h2>Incoming</h2>
 +
|userparam=from
 +
}}}}</includeonly><noinclude>
 +
Print out a footer for database tables.
 +
Takes one option, norels, if specified and non-blank, the relationships (or the needs rel data category) will not be added.
 +
Removed acts like norels, also accepts "no_out_rels", To Flag that there are no outgoing relations, to not add this to the category.
 +
</noinclude>

Latest revision as of 15:34, 3 February 2010

Print out a footer for database tables. Takes one option, norels, if specified and non-blank, the relationships (or the needs rel data category) will not be added. Removed acts like norels, also accepts "no_out_rels", To Flag that there are no outgoing relations, to not add this to the category.